How to monitor services with Monit on CentOS 7 / RHEL 7 and automatically restart a service on failure or crash

If you’re experiencing¬†issues such as MariaDB/Apache/SSH or other services crashing and not restarting after the failure, and require time to investigate the issue, Monit is perhaps the best way to monitor and restart services in case they fail. This guide is to¬†walk you through the process of installing and configuring Monit on CentOS 7 / RHEL 7. [Read more…]