1 check process mysql with pidfile /var/lib/mysql/mysql.pid
3 start program = "/etc/init.d/mysql restart"
4 stop program = "/etc/init.d/mysql stop"
5 if failed unix /var/lib/mysql/mysql.sock then restart
6 if 5 restarts within 5 cycles then timeout
10 check file mysql_bin with path /usr/sbin/mysqld
12 if failed checksum then unmonitor
13 if failed permission 755 then unmonitor
14 if failed uid root then unmonitor
15 if failed gid root then unmonitor
17 check file mysql_rc with path /etc/init.d/mysql
19 if failed checksum then unmonitor
20 if failed permission 754 then unmonitor
21 if failed uid root then unmonitor
22 if failed gid root then unmonitor