set daemon 5 # Poll at 5 seconds intervals set logfile syslog facility log_daemon set alert address@hidden set httpd port 2812 and use address 192.168.13.55 allow 192.168.7.51 allow 192.168.1.114 # Allow localhost to connect allow admin:monit # Allow Basic Auth check process mysql with pidfile /var/lib/mysql/manage.pid start program = "/etc/ha.d/resource.d/sqld start" stop program = "/etc/ha.d/resource.d/sqld stop" if changed pid then EXEC "/etc/test.sh" if failed host 127.0.0.1 port 3306 protocol mysql then EXEC "/etc/test.sh"