Really simple monitoring script

Here is a small script that allows you to monitor the services on an Red Hat or CentOS EL6 box and send you an email when one of the services has stopped or is dead.

NB: do not forget to change the MAILFROM and MAILDEST email addresses.

Now add a crontab that will run the script above periodically. Here is an example where it runs every 5 minutes: