It’s monitoring tool.

Package Requirement:

Apache:- 2.2 or above

Step1. Install repository

rpm -ivh

Step2. Install packages

yum -y install monit httpd vim-enhanced

Step3. Enable and start service

systemctl enable httpd
systemctl start httpd

Step4. Check monit status

monit status

Step5. Add line in monitrc file

vim /etc/monitrc
set daemon  60            --- Increase the Service Interval
set logfile syslog        --- Configure the syslog
set httpd port 2812
use address
allow admin:monit

Step6. Restart the service

systemctl status  monit
systemctl restart monit
systemctl status  monit

Step7. Access via Browser.

Username : admin
Password : monit

Step8. Configure services

vim /etc/monit.d/sshdmonitor

check process sshd with pidfile /var/run/
start program  "/usr/bin/systemctl start sshd.service"
stop program  "/usr/bin/systemctl stop sshd.service"
if failed port 22 protocol ssh then restart

--Configure syslog service
vim /etc/monit.d/syslogmonitor

check process syslogd with pidfile /var/run/
start program = "/usr/bin/systemctl start rsyslog.service"
stop program = "/usr/bin/systemctl stop rsyslog.service"

--Configure the Apache Service
vim /etc/monit.d/httpdmonitor

check process httpd with pidfile /var/run/httpd/
start program "/usr/bin/systemctl start httpd.service"
stop program "/usr/bin/systemctl stop httpd.service"
if failed port 80 protocol http then restart

Step9. Check the Monit Service

monit reload

Step10. Reload the browser.

For Live Installation you may refer below youtube link:-


Please enter your comment!
Please enter your name here