#
# monitoring mysql
#

# monitor service
check process mysql with pidfile /var/run/mysqld/mysqld.pid
	start program = "/usr/sbin/service mysql start" with timeout 20 seconds
	stop program  = "/usr/sbin/service mysql stop"
	if 3 restarts within 5 cycles then exec "/opt/bertin/mediacentric/bin/monit_alert_restart.sh mysqld" repeat every 1 cycle