Forum Moderators: coopster

Message Too Old, No Replies

General question about script

         

andrewsmd

8:59 pm on Jun 30, 2010 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I have a script that runs something like this logic.

select a list of websites and corresponding text

for each website we open the page with curl and check the string to make sure the text is there

if the text is there go on

otherwise send an email through gmail's smtp servers saying the site is down

It is working fine but I'm wondering if our server goes down, then all of our 125 sites will go down. This script is hosted somewhere else so it will run. If all of our sites go down, will that script crash because it has to send an email for each site? Is there a better way logically that someone can think of to go about this? Thanks,

jatar_k

8:37 pm on Jul 2, 2010 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



yes, I would use nagios(nagios.org) or similar package that already exists for monitoring and not try and do it myself.

andrewsmd

8:51 pm on Jul 2, 2010 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



We use a third part to monitor ftp, telnet, etc. But I didn't want to have to buy a few hundred monitors considering the amount of websites we host. I just created a dedicated virtual machine with minimal specs to do this for me. 2 hours of work and we save money every month.