- Global section
- Start monit in background (run as daemon) and check the services at 2-minute
- intervals.
set daemon 120
- Set syslog logging with the ‘daemon’ facility. If the FACILITY option is
- omited, monit will use ‘user’ facility by default. You can specify the
- path to the file for monit native logging.
set logfile syslog facility log_daemon
-
- Monit has an embedded webserver, which can be used to view the
- configuration, actual services parameters or manage the services using the
- web interface.
set httpd port 2812 and use the address 127.0.0.1
allow 127.0.0.1
- Services
check process openser with pidfile /var/run/openser.pid
group openser
start program = “/etc/init.d/openser openserstart”
stop program = “/etc/init.d/openser openserstop”
if 2 restarts within 3 cycles then timeout