1 # mysql monit-cn template
3 check process mysql with pidfile "/var/run/mysqld/mysqld.pid"
4 start program = "/etc/init.d/mysql start"
5 stop program = "/etc/init.d/mysql stop"
6 if failed host 127.0.0.1 port 3306 protocol mysql
7 with timeout 10 seconds