Installing Monit to watch and restart Linux services on CentOS 7
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.
Installation:
To setup monit you should start from installing it:
yum install monit
Configuration:
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:
https://mmonit.com/wiki/Monit/ConfigurationExamples#apache
Build your solid applications with monit and CloudBalkan