/[monit]/monit/monitrc
ViewVC logotype

Diff of /monit/monitrc

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

revision 1.36 by chopp, Wed Jun 11 11:01:12 2003 UTC revision 1.37 by hauk, Mon Jun 16 22:06:15 2003 UTC
# Line 5  Line 5 
5  # insensitive. All path's MUST BE FULLY QUALIFIED, starting with '/'  # insensitive. All path's MUST BE FULLY QUALIFIED, starting with '/'
6  #  #
7  # Legal keywords are  # Legal keywords are
8  #   check          -- Must be followed by type of monitored service  #   check          -- Must be followed by the type of monitored service
9  #                     {device|directory|file|process} and descriptive  #                     {device|directory|file|process} and a descriptive
10  #                     name for the service.  #                     name for the service.
11  #  #
12  #   pidfile        -- Must be followed by a path to the process's pidfile.  #   pidfile        -- Must be followed by a path to a process pidfile.
13  #                     Such a file should contain only one entry, a number  #                     Such a file should contain only one entry, a number
14  #                     representing the process's pid. (See the apache pid  #                     representing the process pid. (See the apache pid
15  #                     file for an example).  #                     file for an example).
16  #  #
17  #   path           -- Must be followed by a path to the block special file  #   path           -- Must be followed by a path to the block special file
# Line 35  Line 35 
35  #                     quotes - like: "/local/bin/program -i stop".  #                     quotes - like: "/local/bin/program -i stop".
36  #                     This entry is optional.  #                     This entry is optional.
37  #  #
38    #   uid            -- Must be followed by a user (name or uid number). This
39    #                     statement is an optionally part of the start/stop
40    #                     statement described above. Makes monit start the
41    #                     program as the user given in the uid.
42    #
43    #   gid            -- Must be followed by a group (name or gid number). This
44    #                     statement is an optionally part of the start/stop
45    #                     statement described above. Makes monit start the
46    #                     program as the group given in the gid.
47    #
48  #   host           -- Specify a hostname or ip-address to test port  #   host           -- Specify a hostname or ip-address to test port
49  #                     connection at. This statement must be followed by a  #                     connection at. This statement must be followed by a
50  #                     port statement.  #                     port statement.
# Line 74  Line 84 
84  #   protocol       -- Must be followed by a protocol keyword. This keyword  #   protocol       -- Must be followed by a protocol keyword. This keyword
85  #                     specifies the type of service found at the port.  #                     specifies the type of service found at the port.
86  #                     monit knows at the moment how to speak HTTP, SMTP,  #                     monit knows at the moment how to speak HTTP, SMTP,
87  #                     FTP, POP, IMAP, NNTP, SSH, DWP, LDAP2 and LDAP3.  #                     FTP, POP, SSH, IMAP, NNTP, SSH, DWP, LDAP2 and LDAP3.
88  #                     You're welcome to write new protocol test modules. If  #                     You're welcome to write new protocol test modules. If
89  #                     no protocol is specified monit will use a default test  #                     no protocol is specified monit will use a default test
90  #                     which in most cases is good enough. This statement is  #                     which in most cases is good enough. This statement is
91  #                     optional.  #                     optional.
92  #  #
93  #   request        -- Must be followed by URI string specifying a document  #   request        -- Must be followed by an URI string specifying a document
94  #                     from the http server. Currently only the HTTP protocol  #                     from the http server. Currently only the HTTP protocol
95  #                     module supports the request statement, such as:  #                     module supports the request statement, such as:
96  #                     "/data/show.php?a=b&c=d"  #                     "/data/show.php?a=b&c=d"
# Line 122  Line 132 
132  #                     cycles and an action.  This statement is used to check  #                     cycles and an action.  This statement is used to check
133  #                     the cpu usage in percent of a process with it's children  #                     the cpu usage in percent of a process with it's children
134  #                     over a number of cycles.  If the compare expression  #                     over a number of cycles.  If the compare expression
135  #                     matches the action (restart, alert or stop) is used.  #                     matches then the action (restart, alert or stop) is
136    #                     executed.
137  #  #
138  #   mem            -- The equivalent to cpuusage for memory of a process  #   mem            -- The equivalent to cpu usage for memory of a process
139  #                     (w/o children!).  The syntax is equivilent to cpu,  #                     (w/o children!).  The syntax is equivilent to cpu,
140  #                     but additionally amount units are accepted, too  #                     but additionally amount units are accepted, expressed in
141  #                     {B|KB|MB|GB|%|byte|kilobyte|megabyte|gigabyte|  #                     {B|KB|MB|GB|%|byte|kilobyte|megabyte|gigabyte|
142  #                     percent}  #                     percent}
143  #    #  
144  #   children       -- Must be followed by a number with out unit. It  #   children       -- Must be followed by a number without unit. It
145  #                     represents number of child processes.  The syntax is  #                     represents number of child processes. The syntax is
146  #                     equivilent to cpu,  #                     equivilent to cpu,
147  #  #
148  #   totalmemusage  -- The equivalent to mem for memory of a process  #   totalmemusage  -- The equivalent to mem for memory of a process
# Line 141  Line 152 
152  #                     compare operator, a  number, optionally a  #                     compare operator, a  number, optionally a
153  #                     maximum number of cycles and an action.  This statement  #                     maximum number of cycles and an action.  This statement
154  #                     is used to check the system load average over a number  #                     is used to check the system load average over a number
155  #                     of cycles.  If the compare expression matches the action  #                     of cycles.  If the compare expression matches then the
156  #                     (restart, alert or stop) is used.  #                     action (restart, alert or stop) is executed.
157  #  #
158  #   space          -- Must be followed by a compare operator, number,  #   space          -- Must be followed by a compare operator, number,
159  #                     unit {B|KB|MB|GB|%|byte|kilobyte|megabyte|gigabyte|  #                     unit and action, where the unit is expressed in one of
160  #                     percent}  #                     {B|KB|MB|GB|%|byte|kilobyte|megabyte|gigabyte|percent}
 #                     and action.  
161  #    #  
162  #   inode(s)       -- Must be followed by a compare operator, integer number,  #   inode(s)       -- Must be followed by a compare operator, integer number,
163  #                     optionaly by percent sign (if not, the limit is absolute)  #                     optionaly by percent sign (if not, the limit is absolute)
164  #                     and action (required).  #                     and an action (required).
165  #  #
166  #   perm(ission)   -- Must be followed by an octal number describing  #   perm(ission)   -- Must be followed by an octal number describing
167  #                     permissions.  #                     the permissions.
168  #    #  
169  #   depends        -- Must be followed by the name of a service or a list of  #   depends        -- Must be followed by the name of a service or a list of
170  #                     services *this* service depends on to run  #                     services *this* service depends on to run
# Line 181  Line 191 
191  #   set pidfile    -- Must be followed by either a filename (full path is  #   set pidfile    -- Must be followed by either a filename (full path is
192  #                     required).  #                     required).
193  #  #
194    #   set statefile --  Must be followed by a filename (full path is
195    #                     required) spesifying where monit should store
196    #                     its state file. If not defined monit will use
197    #                     the file, $HOME/.monit.state
198    #
199  #   set mailserver -- Must be followed by a mailserver hostname. If the  #   set mailserver -- Must be followed by a mailserver hostname. If the
200  #                     mailserver is not defined, monit will try to use  #                     mailserver is not defined, monit will try to use
201  #                     'localhost' as the smtp-server for sending mail  #                     'localhost' as the smtp-server for sending mail

Legend:
Removed from v.1.36  
changed lines
  Added in v.1.37

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