This combination of scripts monitors the services on an linux system, if a service is down it writes a log and sends a push notification via pushover (http://pushover.net). After all tests it flushes the mailq.
monitor_services.sh - Monitors the services and writes the log entry if one is down
bo.sh - small api implementation for pushover push notification service