monit-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[monit-dev] [monit] r229 committed - Lift up documentation for the every


From: monit
Subject: [monit-dev] [monit] r229 committed - Lift up documentation for the every statement
Date: Tue, 31 Aug 2010 20:49:15 +0000

Revision: 229
Author: janhenrik.haukeland
Date: Tue Aug 31 13:48:21 2010
Log: Lift up documentation for the every statement
http://code.google.com/p/monit/source/detail?r=229

Modified:
 /trunk/monit.pod

=======================================
--- /trunk/monit.pod    Wed Aug 18 07:12:59 2010
+++ /trunk/monit.pod    Tue Aug 31 13:48:21 2010
@@ -2468,6 +2468,33 @@
        if 5 restarts within 5 cycles then timeout


+=head1 SERVICE POLL TIME
+
+Each service is polled in sequence as they are written in
+I<.monitrc> file, unless they are part of a dependecy chain.
+However, each service may have its individual poll time set.
+Meaning that instead of checking the service on each poll cycle,
+the cycle check can be specified individually per service using
+the I<every> statement. The syntax of which is:
+
+=over 4
+
+=item EVERY [number] CYCLES
+
+=back
+
+Example:
+
+ check process nginx with pidfile /var/run/nginx.pid every 2 cycles
+ start program = "/etc/init.d/nginx start"
+ stop program  = "/etc/init.d/nginx stop"
+ [...]
+
+In the above example, if the global poll time set by I<set
+daemon> is 20 seconds, then the nginx process will be checked
+every 40 second. This is because the every statement specify that
+this process should only be checked every other cycle
+
 =head1 MONIT HTTPD

 If specified in the control file, Monit will start a Monit daemon
@@ -2879,7 +2906,7 @@
 Otherwise the file consists of a series of service entries or
 global option statements in a free-format, token-oriented syntax.

-There are three kinds of tokens: grammar keywords, numbers (i.e.
+There are three kinds of tokens: grammar  , numbers (i.e.
 decimal digit sequences) and strings. Strings can be either
 quoted or unquoted. A quoted string is bounded by double quotes
 and may contain whitespace (and quoted digits are treated as a
@@ -3268,7 +3295,6 @@
  stop="/bin/bash -c 'kill -s SIGTERM `cat pidfile`'"


-
 =head2 CONFIGURATION EXAMPLES

 The simplest form is just the check statement. In this example we



reply via email to

[Prev in Thread] Current Thread [Next in Thread]