set daemon 5
set logfile syslog facility log_daemon
set mailserver localhost
set mail-format { from: monit@server1.example.com }
set alert root@localhost
set httpd port 2812 allow admin:test

##
## change where the pid file is!
## it is written in the data directory of mysql server
## unless you have specified something else!
##

check process mysqld with pidfile /data1/mysql/ps-ndb01.pid
   group database
   start program = "/etc/init.d/mysqld start"
   stop program = "/etc/init.d/mysqld stop"
   if 6 restarts within 6 cycles then timeout
   if changed pid then alert
   alert root@localhost only on { timeout, nonexist }