198 |
# stop program = "/etc/init.d/httpd stop" |
# stop program = "/etc/init.d/httpd stop" |
199 |
# host www.tildeslash.com port 80 protocol http |
# host www.tildeslash.com port 80 protocol http |
200 |
# and request "/monit/next.html" |
# and request "/monit/next.html" |
201 |
# port 443 # default/no protocol test |
# # Testing a http ssl server requires that monit was compiled with openssl |
202 |
# unix /var/run/foosocket # default/no protocol test |
# port 443 type tcpssl proto http |
203 |
# checksum /usr/local/apache/bin/httpd |
# checksum /usr/local/apache/bin/httpd |
204 |
# and expect the sum 8f7f419955cefa0b33a2ba316cba3659 |
# and expect the sum 8f7f419955cefa0b33a2ba316cba3659 |
205 |
# alert security@foo.bar on { checksum } |
# alert security@foo.bar on { checksum } |
207 |
# alert sysadm@foo.bar on { timeout, restart } |
# alert sysadm@foo.bar on { timeout, restart } |
208 |
# timeout(3, 5) |
# timeout(3, 5) |
209 |
# group server |
# group server |
210 |
# cpuusage > 60.0 2 alert |
# if cpuusage is greater than 60.0 for 2 cycles then alert |
211 |
# cpuusage > 80.0 5 restart |
# if cpuusage > 80.0 5 restart |
212 |
# memkbyte > 100000.0 5 stop |
# if memkbyte > 100000.0 for 5 cycles then stop |
213 |
# if loadavg(5min) greater than 10 for 8 cycles then stop |
# if loadavg(5min) greater than 10 for 8 cycles then stop |
214 |
# |
# |
215 |
# |
# |