Monit is an awesome small, free tool that can save you a lot of troubles by simply monitoring and eventually restarting a service. It’s simplicity and yet fairly large flexibility make it SysAdmins and DevOps best friend.
To setup monit you should start from installing it:
yum install monit
Once set up, you can configure the service to be monitored by adding configuration files for each service in the ‘/etc/monit.d/’ directory.
The service templates are pretty straight forward. You can find a plenty of example templates at:
Build your solid applications with monit and CloudBalkan