## ## @l_prefix@/etc/monit/monitrc - monit control file ## # run as daemon with polling intervals of n seconds set daemon 120 # startup web interface set httpd port 99 address 127.0.0.1 allow 127.0.0.1 ssl disable # send alerts via following mail server set mailserver 127.0.0.1 set mail-format { from: monit@localhost } # log via syslog (OSSP fsl) by default set logfile syslog # example for MySQL 4, see also http://www.tildeslash.com/monit/examples.html #check mysql4 with pidfile @l_prefix@/var/mysql4/mysqld.pid # start program = "@l_prefix@/etc/rc.d/rc.mysql4 start" # stop program = "@l_prefix@/etc/rc.d/rc.mysql4 stop" # host 127.0.0.1 port 3306 # timeout(5, 5) # alert root@localhost