Remote HTTP response alive tester and monitor
Friday, November 2nd, 2007I couldn’t find a good and simple http monitoring script so I made one in Perl.
- Makes a HTTP GET request to a list of URLS or just one
- Sends an email if a URL can not be accessed with the error details in the email
- Outputs status of URL to terminal
- 4 lines to configure it
- Doesn’t use any weird Perl modules
I don’t usually write stuff in Perl so go easy.
Download/View it. httpcheck.txt
I have mine installed:
# m h dom mon dow command
30 * * * * /home/michael/alivecheck.pl >> /home/michael/alivecheck.log
checking every 30 mins of every day
enjoy.