


#allow readonly # allow users of group 'users' to connect readonly #allow # allow users of group 'monit' to connect (rw) #allow admin:monit # require user 'admin' with password 'monit' #allow localhost # allow localhost to connect to the server and #use address localhost # only accept connection from localhost To enable web interface, find the following lines in the configuration file: /etc/monit/monitrc You can enable web interface and use it to view reports. Set the mail server and recipient address for notifications: /etc/monit/monitrc In daemon mode, Monit detaches from the console, puts itself in the background and runs continuously, monitoring each specified service and then goes to sleep for the given poll interval, wakes up and start monitoring again in an endless cycle.

You must specify a numeric argument which is a polling interval in seconds. Use the following command to specify Monit's poll cycle length and run Monit in daemon mode.

You can edit it with "vi" or any other text editor: $ sudo vi /etc/monit/monitrc The default configuration file is “ /etc/monit/monitrc”. Use the following command to enable the service autostart on boot: $ sudo systemctl enable monit Oct 28 15:38:02 iso-monit systemd: Started LSB: service and resource mon.n. Oct 28 15:22:31 iso-monit systemd: Started LSB: service and resource mon.n.
