pp_watchdog is a Perl script which monitors configured URLs, and searches for specified content in the response. If the content is not provided or the request times out, then a state in a statefile is incremented and a corresponding recovery-script is called. This script can be an individual recovery-script for the monitored Web server. An example is provided. The watchdog also sends an email notification to the admin. The script is safe to run as a cronjob if timeouts are used for the monitoring and a lockfile is used to prevent multiple instances. After a 4 unsucsessfull recover attempts, the script stops trying to respond to the broken server to prevent overloading the machine.
Release Notes: This release is a complete rewrite, incorporating an individual response time limit and grace time for the server to recover, smarter self monitoring, and two debug modes.