195 |
# [NB! Check and edit for your system and uncomment below] |
# [NB! Check and edit for your system and uncomment below] |
196 |
# |
# |
197 |
# set daemon 120 # Poll at 2-minute intervals |
# set daemon 120 # Poll at 2-minute intervals |
|
# set init # Run monit in "init" mode (non-backgrounded) |
|
198 |
# set logfile syslog # Set syslog as the logfile |
# set logfile syslog # Set syslog as the logfile |
|
# set pidfile /var/run/monit.pid # Change the default pidfile location |
|
199 |
# set mailserver localhost # Use localhost as the smtp server |
# set mailserver localhost # Use localhost as the smtp server |
200 |
# set mail-format # Set a default mail from address for |
# set mail-format # Set a default mail from address for |
201 |
# { from: monit@foo.bar } # all alert messages emitted by monit |
# { from: monit@foo.bar } # all alert messages emitted by monit |
215 |
# and expect the sum 8f7f419955cefa0b33a2ba316cba3659 |
# and expect the sum 8f7f419955cefa0b33a2ba316cba3659 |
216 |
# alert security@foo.bar on { checksum } |
# alert security@foo.bar on { checksum } |
217 |
# with the mail-format { subject: Alarm! } |
# with the mail-format { subject: Alarm! } |
218 |
# alert sysadm@foo.bar on { timeout, restart } |
# alert sysadm@foo.bar |
219 |
# timeout(3, 5) |
# timeout(3, 5) |
220 |
# group server |
# group server |
221 |
# if cpuusage is greater than 60.0 for 2 cycles then alert |
# if cpuusage is greater than 60.0 for 2 cycles then alert |
222 |
# if cpuusage > 80.0 5 restart |
# if cpuusage > 80.0 5 restart |
223 |
# if memkbyte > 100000.0 for 5 cycles then stop |
# if memkbyte > 100000.0 for 5 cycles then stop |
224 |
# if loadavg(5min) greater than 10 for 8 cycles then stop |
# if loadavg(5min) greater than 10 for 8 cycles then stop |
225 |
|
# depends on sybase |
226 |
# |
# |
227 |
# |
# |
228 |
# check sybase with pidfile /var/run/sybase.pid |
# check sybase with pidfile /var/run/sybase.pid |
233 |
# timeout if 2 restarts within 3 cycles |
# timeout if 2 restarts within 3 cycles |
234 |
# alert foo@bar |
# alert foo@bar |
235 |
# group database |
# group database |
|
# depends on apache |
|