Welcome to WebmasterWorld Guest from 54.224.253.195

Forum Moderators: phranque

Message Too Old, No Replies

More sophisticated website error monitoring?

     
1:49 pm on Jan 21, 2009 (gmt 0)

Junior Member

10+ Year Member

joined:Feb 8, 2003
posts: 161
votes: 0


I am looking for ways to track site errors via an external service, and receive an email notification when they occur.

I know there are monitoring services that simply visit a site from time to time, and send a notification when the site isn't available, or if the page can't be found. What I'm looking for though is a monitoring service that'll notify me e.g. in case of a mysql problem (but where the server still returns a "page found"). The most basic approach would be a notification if the page is smaller than a certain size, e.g. if the page size suddenly drops way below 10k then it's obvious that there's some problem (like the page only displaying a "couldn't connect to database" error). Of course, a more sophisticated version could also scan the page content for signs of an error.

Does anyone know if a service or script like that exists? Thanks!

3:40 pm on Jan 21, 2009 (gmt 0)

Preferred Member

10+ Year Member

joined:July 28, 2000
posts: 580
votes: 0


If you have access to the code it should be fairly straight forward to trap a database error and send an email with the details.

Alternatively you could use a perl script and LWP to retrieve the page yourself. You can then either check the length or scan the text.

I have just posted a related question which you might be interested in here [webmasterworld.com]