97 |
# |
# |
98 |
# every -- Only check the program at every n cycles. Optional. |
# every -- Only check the program at every n cycles. Optional. |
99 |
# |
# |
100 |
# autostart -- Must be followed by the keywords yes or no. If yes |
# mode -- Must be followed either by the keyword active, passive |
101 |
# monit will restart the program if it is not running |
# or manual. If active, monit will restart the program |
102 |
# (this is the default behaviour). If no monit will not |
# if it is not running (this is the default behaviour). |
103 |
# (re)start the program if it is not running. It is |
# If passive, monit will only monitor and send alerts |
104 |
# recommended that you use yes or don't use this statement. |
# (resource related restart and stop options are ignored |
105 |
|
# in this mode also). If manual, monit will enter active |
106 |
|
# mode only if service was started under monit's control |
107 |
|
# otherwise the service isn't monitored. |
108 |
# |
# |
109 |
# cpuusage -- Must be followed by a compare operator, a floating |
# cpuusage -- Must be followed by a compare operator, a floating |
110 |
# point number, optionally a maximum number of cycles |
# point number, optionally a maximum number of cycles |
219 |
# check sybase with pidfile /var/run/sybase.pid |
# check sybase with pidfile /var/run/sybase.pid |
220 |
# start program = "/etc/init.d/sybase start" |
# start program = "/etc/init.d/sybase start" |
221 |
# stop program = "/etc/init.d/sybase stop" |
# stop program = "/etc/init.d/sybase stop" |
222 |
|
# mode passive |
223 |
# port 4001 |
# port 4001 |
224 |
# timeout if 2 restarts within 3 cycles |
# timeout if 2 restarts within 3 cycles |
225 |
# alert foo@bar |
# alert foo@bar |
|
# autostart no |
|
226 |
# group database |
# group database |
227 |
# depend apache |
# depend apache |