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 the data node
##
check process ndbdmulti_1 with pidfile /data1/mysqlcluster//ndb_3.pid
   group database
   start program = "/etc/init.d/ndbdmulti_1 start"
   stop program = "/etc/init.d/ndbdmulti_1 stop"
   if 6 restarts within 6 cycles then timeout
   if changed pid then alert
   alert root@localhost only on { timeout, nonexist }

##
## change where the pid file is!
## it is written in the data directory of the data node
##
check process ndbdmulti_2 with pidfile /data1/mysqlcluster//ndb_7.pid
   group database
   start program = "/etc/init.d/ndbdmulti_2 start"
   stop program = "/etc/init.d/ndbdmulti_2 stop"
   if 6 restarts within 6 cycles then timeout
   if changed pid then alert
   alert root@localhost only on { timeout, nonexist }