1 ###############################################################################
3 ###############################################################################
5 ## Comments begin with a '#' and extend through the end of the line. Keywords
6 ## are case insensitive. All path's MUST BE FULLY QUALIFIED, starting with '/'.
9 include /etc/monit/*.monitrc
11 ###############################################################################
13 ###############################################################################
16 ## Set list of mailservers for alert delivery. Multiple servers may be
17 ## specified using comma separator. By default monit uses port 25 - it is
18 ## possible to override it with the PORT option.
20 set mailserver localhost # primary mailserver
22 ## You can set the alert recipients here, which will receive the alert for
23 ## each service. The event alerts may be restricted using the list.
25 set alert root@localhost # receive all alerts
27 ## Monit has an embedded webserver, which can be used to view the
28 ## configuration, actual services parameters or manage the services using the
31 set httpd port 2812 and
32 use address localhost # only accept connection from localhost
33 allow localhost # allow localhost to connect to the server and
34 allow admin:monit # require user 'admin' with password 'monit'