It’s monitoring tool.

https://www.youtube.com/watch?v=KMY_yQ2xi6s

Package Requirement:

Apache:- 2.2 or above

Step1. Install repository

rpm -ivh https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm

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
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 192.168.72.133
allow 0.0.0.0/0.0.0.0
allow admin:monit

Step6. Restart the service

systemctl status  monit
systemctl restart monit
systemctl status  monit

Step7. Access via Browser.

http://192.168.72.133:2812

Username : admin
Password : monit

Step8. Configure services

vim /etc/monit.d/sshdmonitor

check process sshd with pidfile /var/run/sshd.pid
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/syslogd.pid
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/httpd.pid
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
monit reload

Step10. Reload the browser.

http://192.168.72.133:2812

For Live Installation you may refer below youtube link:-

https://www.youtube.com/watch?v=KMY_yQ2xi6s

LEAVE A REPLY

Please enter your comment!
Please enter your name here