If you wish to manage monit services via a web interface, instead of command line, you must perform the following steps:
- Open /etc/monit.conf in an editor
- Add the following lines to the file:
set httpd port 2812 and
use address localhost # only accept connection from localhost
allow localhost # allow localhost to connect to the server and
allow monit:monit # require user 'monit' with password 'monit'
allow @monit # allow users of group 'monit' to connect (rw)
allow @users readonly # allow users of group 'users' to connect readonly
- Restart monit using sudo service monit restart
- Access your server running monit in a web browser on port 2182 (e.g. http://reporting.interset.com:2812/).