1. What is Monit and M/Monit?
Monit does not require any license.
3. Admin login to M/Monit
4. M/Monit install location
# yum install monit
For CentOS 6.x, please see /etc/monit.conf for an example.
For CentOS 7.x, please see /etc/monitrc an example.
## Monit has an embedded HTTP interface which can be used to view status of ## services monitored and manage services from a web interface. The HTTP ## interface is also required if you want to issue Monit commands from the ## command line, such as 'monit status' or 'monit restart service' The reason ## for this is that the Monit client uses the HTTP interface to send these ## commands to a running Monit daemon. See the Monit Wiki if you want to ## enable SSL for the HTTP interface. # set httpd port 2812 and use address localhost # only accept connection from localhost allow localhost # allow localhost to connect to the server and allow admin:monit # require user 'admin' with password 'monit' allow @users readonly
6. Allowing monit and M/Monit through the firewall
Example rules for CentOS 6.x:
# Allow all traffic to and from monit iptables -A INPUT -p tcp -s 192.168.0.9 -j ACCEPT iptables -A OUTPUT -p tcp -d 192.168.0.9 -j ACCEPT
Example rules for CentOS 7.x:
# firewall-cmd --add-port=2812/tcp --permanent
7. Restarting daemons after editing iptables and monit
Do not forget to save and restart the daemons after each re-configuration!
For CentOS 6.x:
# service iptables restart # service monit restart
For CentOS 7.x:
# systemctl restart firewalld # systemctl enable monit #Ensures that the monit daemon autostarts after reboot # systemctl restart monit
The M/Monit daemon is started and stopped using the below commands on cyndane2.
# Latest is a symbolic link pointing to the latest installed actual version of M/Monit. /usr/local/mmonit/latest/bin >> /usr/local/mmonit/mmonit-3.7.1
# /usr/local/mmonit/latest/bin/mmonit start # /usr/local/mmonit/latest/bin/mmonit stop
8. M/Monit database
M/Monit is using SQLite as the database for saving clients, groups and other settings.
It is located in /usr/local/mmonit/.
9. M/Monit documentation
M/Monit documentation is available on https://mmonit.com/documentation/.