# monit control file set logfile = syslog set statefile = /tmp/.monit.state set httpd port 2812 and use address localhost allow localhost # Change this password to something else. allow monit:secret # begin bind9 check file bind9.bin.named with path /usr/sbin/named if timestamp changed then exec "/etc/init.d/bind9 restart" check file bind9.etc.bind.named.conf with path /etc/bind/named.conf if timestamp changed then exec "/etc/init.d/bind9 reload" check file bind9.etc.bind.keys.conf with path /etc/bind/keys.conf if timestamp changed then exec "/etc/init.d/bind9 reload" check file bind9.etc.bind.master.conf with path /etc/bind/master.conf if timestamp changed then exec "/etc/init.d/bind9 reload" check file bind9.etc.bind.slave.conf with path /etc/bind/slave.conf if timestamp changed then exec "/etc/init.d/bind9 reload" check process bind9 with pidfile /srv/bind/chroot/var/run/bind/run/named.pid start program = "/etc/init.d/bind9 start" stop program = "/etc/init.d/bind9 stop" if failed port 53 use type udp then restart if 3 restarts within 5 cycles then timeout # end bind9 # begin monit check file monit.bin.monit with path /usr/sbin/monit if timestamp changed then exec "/etc/init.d/monit restart" check file monit.etc.monit.monitrc with path /etc/monit/monitrc if timestamp changed then exec "/etc/init.d/monit restart" # end monit # begin ntp-simple check file ntp-simple.usr.sbin.ntpd with path /usr/sbin/ntpd if timestamp changed then exec "/etc/init.d/ntp-simple restart" check file ntp-simple.etc.ntpd.conf with path /etc/ntp.conf if timestamp changed then exec "/etc/init.d/ntp-simple restart" # end ntp-simple