/[monit]/monit/web/doc/examples.php
ViewVC logotype

Diff of /monit/web/doc/examples.php

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.6 by martinp, Tue Mar 29 21:38:21 2005 UTC revision 1.7 by martinp, Wed Apr 13 07:41:06 2005 UTC
# Line 243  Add the following line after start of cr Line 243  Add the following line after start of cr
243   check process named with pidfile /var/named/chroot/var/run/named/named.pid   check process named with pidfile /var/named/chroot/var/run/named/named.pid
244     start program = "/etc/init.d/named start"     start program = "/etc/init.d/named start"
245     stop program = "/etc/init.d/named stop"     stop program = "/etc/init.d/named stop"
246     if failed host 127.0.0.1 port 53 type tcp then alert     if failed host 127.0.0.1 port 53 protocol dns type tcp then alert
247     if failed host 127.0.0.1 port 53 type udp then alert     if failed host 127.0.0.1 port 53 protocol dns type udp then alert
248     if 5 restarts within 5 cycles then timeout     if 5 restarts within 5 cycles then timeout
249  </pre>  </pre>
250    
# Line 643  check process mysql with pidfile /opt/my Line 643  check process mysql with pidfile /opt/my
643     group database     group database
644     start program = "/etc/init.d/mysql start"     start program = "/etc/init.d/mysql start"
645     stop program = "/etc/init.d/mysql stop"     stop program = "/etc/init.d/mysql stop"
646     if failed host 192.168.1.1 port 3306 then restart     if failed host 192.168.1.1 port 3306 protocol mysql then restart
647     if 5 restarts within 5 cycles then timeout     if 5 restarts within 5 cycles then timeout
648     alert foo@bar     alert foo@bar
649     alert 123456@sms on { timeout }     alert 123456@sms on { timeout }

Legend:
Removed from v.1.6  
changed lines
  Added in v.1.7

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26