/[monit]/monit/monit.pod
ViewVC logotype

Diff of /monit/monit.pod

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

revision 1.165 by chopp, Fri Aug 5 09:38:09 2005 UTC revision 1.166 by martinp, Fri Aug 5 11:21:18 2005 UTC
# Line 1824  The full syntax for the ICMP Echo statem Line 1824  The full syntax for the ICMP Echo statem
1824  is as follows (keywords are in capital and optional statements in  is as follows (keywords are in capital and optional statements in
1825  [brackets]):  [brackets]):
1826    
1827    IF FAILED ICMP TYPE ECHO [WITH] [TIMEOUT number SECONDS]    IF FAILED ICMP TYPE ECHO
1828         [COUNT number] [WITH] [TIMEOUT number SECONDS]
1829       THEN action       THEN action
1830       [ELSE IF RECOVERED THEN action]       [ELSE IF RECOVERED THEN action]
1831    
1832  The rules for action and timeout are the same as those mentioned  The rules for action and timeout are the same as those mentioned
1833  above in the CONNECTION TESTING section. An icmp ping test is  above in the CONNECTION TESTING section. The count parameter
1834  useful for testing if a host is up, before testing ports at the  specifies how many consecutive echo requests will be send to the
1835  host. If an icmp ping test is used in a check host entry, this  host in one cycle. In the case that no reply came within timeout
1836  test is run first and if the ping test should fail we assume that  frame, monit reports error. When at least one reply was received,
1837  the connection to the host is down and monit does I<not> continue  the test will pass. Monit sends by default three echo requests in
1838  to test any ports. Here's an example:  one cycle to prevent the random packet loss from generating false
1839    alarm (i.e. up to 66% packet loss is tolerated). You can set the
1840    count option to different value, which can serve as error ratio.
1841    For example in the case that you require 100% ping success, you
1842    can set the count to 1 (i.e. just one attempt will be send, when
1843    the packet was lost, then error will be reported).
1844    
1845    An icmp ping test is useful for testing if a host is up, before
1846    testing ports at the host. If an icmp ping test is used in a check
1847    host entry, this test is run first and if the ping test should fail
1848    we assume that the connection to the host is down and monit does
1849    I<not> continue to test any ports. Here's an example:
1850    
1851   check host xyzzy with address xyzzy.org   check host xyzzy with address xyzzy.org
1852         if failed icmp type echo with timeout 15 seconds         if failed icmp type echo count 5 with timeout 15 seconds
1853            then alert            then alert
1854         if failed port 80 proto http then alert         if failed port 80 proto http then alert
1855         if failed port 443 type TCPSSL proto http then alert         if failed port 443 type TCPSSL proto http then alert
# Line 2738  Here's the complete list of reserved B<k Line 2750  Here's the complete list of reserved B<k
2750    
2751  I<if>, I<then>, I<else>, I<set>, I<daemon>, I<logfile>,  I<if>, I<then>, I<else>, I<set>, I<daemon>, I<logfile>,
2752  I<syslog>, I<address>, I<httpd>, I<ssl>, I<enable>, I<disable>,  I<syslog>, I<address>, I<httpd>, I<ssl>, I<enable>, I<disable>,
2753  I<pemfile>, I<allow>, I<read-only>, I<check>, I<init>,  I<pemfile>, I<allow>, I<read-only>, I<check>, I<init>, I<count>,
2754  I<pidfile>, I<statefile>, I<group>, I<start>, I<stop>, I<uid>,  I<pidfile>, I<statefile>, I<group>, I<start>, I<stop>, I<uid>,
2755  I<gid>, I<connection>, I<port(number)>, I<unix(socket)>, I<type>,  I<gid>, I<connection>, I<port(number)>, I<unix(socket)>, I<type>,
2756  I<proto(col)>, I<tcp>, I<tcpssl>, I<udp>, I<alert>,  I<proto(col)>, I<tcp>, I<tcpssl>, I<udp>, I<alert>, I<icmp>,
2757  I<mail-format>, I<restart>, I<timeout>, I<checksum>, I<resource>,  I<mail-format>, I<restart>, I<timeout>, I<checksum>, I<resource>,
2758  I<expect>, I<send>, I<mailserver>, I<every>, I<mode>, I<active>,  I<expect>, I<send>, I<mailserver>, I<every>, I<mode>, I<active>,
2759  I<passive>, I<manual>, I<depends>, I<host>, I<default>, I<http>,  I<passive>, I<manual>, I<depends>, I<host>, I<default>, I<http>,
# Line 2895  Here we use an icmp ping test to check i Line 2907  Here we use an icmp ping test to check i
2907  if not send an alert:  if not send an alert:
2908    
2909   check host www.tildeslash.com with address www.tildeslash.com   check host www.tildeslash.com with address www.tildeslash.com
2910         if failed icmp type echo with timeout 15 seconds         if failed icmp type echo count 5 with timeout 15 seconds
2911            then alert            then alert
2912         alert foo@bar.org         alert foo@bar.org
2913    

Legend:
Removed from v.1.165  
changed lines
  Added in v.1.166

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