Monit allow you to monitor process. It can restart failed process or alert when server is overloaded.
On CentOS server, you need to enable EPEL repo to install monit.
1 |
yum install epel-release -y |
Install monit with
1 |
yum install monit -y |
Enable monit to auto start on boot
1 |
systemctl enable monit |
Start monit service
1 |
systemctl start monit |
On CentOS, monit configuration file located at
1 |
vi /etc/monitrc |
See monit