From: Torsten Schmidt Date: 2005-11-21T19:44:17+09:00 Subject: Re: url-monitoring script question ------=_Part_33875_2222726.1132569851404 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Thanks for the input so far. another possible solution come to my (ruby-beginner) mind instead of writin= g the status-code to a seperate file and parse it: some kind of deamon-process: what about to put something like 'sleep 300' in the script to make an indefinetly loop. so it's easier to store the exit-code of the http-requests and compare them= . with this it would be possible to send 5 error-emails (25 min) and after that, send another email when the url 'recovers'. What are your opinions for that solution? Torsten 2005/11/21, Heiko Leberer : > > If the number of sites is known, you could keep a file for all sites > and the related status (e.g. one line per site) > > mysite.mydomain.org : ok > could mean, last run the site could be accessed > mysite.mydomain.org : 2 > could mean, site not accesible for two consecutive tries > > Therefore, compare your findings against the file, send an email if 1<=3D > errcount<=3D3, and update the file afterwards (incrementing or resetting > the error count) > > > ------=_Part_33875_2222726.1132569851404--