Scripts
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsWeb Site ManagementScripts

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old February 11th, 2005, 09:46 PM
WebVandals WebVandals is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Apr 2003
Location: Osaka, Japan
Posts: 17 WebVandals User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 35 m 2 sec
Reputation Power: 0
1,000s of cron jobs okay? Better way?

I want to make a free website monitoring service that pings 100s or 1,000s of web servers all day long. Which of these approaches is most sensible and efficient for my server:

1) 1 script for each server monitor called by a cron every n minutes

2) 1 script for each server monitor which runs continuously and sleeps for n minutes

3) 1 script for ALL server monitors which is somehow able to ping 100s or thousands of servers simultaneously even though any down servers will have to wait for a ping timeout.

Any other ideas? I've got a working prototype written in PHP-CLI (command line php) but I doubt that PHP-CLI is gonna be most efficient -- should I dive into C++? Would Bash or Perl or Python be any better?

Any tips or thoughts would be greatly appreciated.

Reply With Quote
  #2  
Old March 5th, 2005, 05:07 PM
WebVandals WebVandals is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Apr 2003
Location: Osaka, Japan
Posts: 17 WebVandals User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 35 m 2 sec
Reputation Power: 0
Bump. Any thoughts at all?

Reply With Quote
  #3  
Old March 6th, 2005, 11:14 AM
christo's Avatar
christo christo is offline
Introspective
Dev Shed Loyal (3000 - 3499 posts)
 
Join Date: Nov 2001
Location: London, UK
Posts: 3,296 christo User rank is Second Lieutenant (5000 - 10000 Reputation Level)christo User rank is Second Lieutenant (5000 - 10000 Reputation Level)christo User rank is Second Lieutenant (5000 - 10000 Reputation Level)christo User rank is Second Lieutenant (5000 - 10000 Reputation Level)christo User rank is Second Lieutenant (5000 - 10000 Reputation Level)christo User rank is Second Lieutenant (5000 - 10000 Reputation Level)christo User rank is Second Lieutenant (5000 - 10000 Reputation Level) 
Time spent in forums: 3 Days 1 h 6 m 2 sec
Reputation Power: 101
Send a message via ICQ to christo Send a message via Yahoo to christo
option 3.

register all the sites in a database and write a perl script using Net::Ping or somesuch to do the grunt on a single cron.


christo

Reply With Quote
Reply

Viewing: Dev Shed ForumsWeb Site ManagementScripts > 1,000s of cron jobs okay? Better way?


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 2 hosted by Hostway