/[monit]/monit/monitrc
ViewVC logotype

Diff of /monit/monitrc

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

revision 1.41 by martinp, Tue Aug 5 18:09:41 2003 UTC revision 1.42 by martinp, Wed Aug 6 19:19:06 2003 UTC
# Line 100  Line 100 
100  #                     poll-cycles. This statement is optional.  #                     poll-cycles. This statement is optional.
101  #  #
102  #   alert          -- Specifies an email address for notification if a  #   alert          -- Specifies an email address for notification if a
103  #                     service timed out or restarted. This statement is  #                     service produced timeout, start, restart, checksum,
104  #                     optional. More than one alert statement is allowed.  #                     resource, stop, connection, size, permission or
105    #                     timestamp event. This statement is optional. More
106    #                     than one alert statement is allowed.
107  #  #
108  #   checksum       -- Must be followed by a list of files with an absolute  #   checksum       -- This statement is optional. More than one checksum
109  #                     path. This statement is optional. More than one  #                     statement is allowed.
 #                     checksum statement is allowed.  
110  #    #  
111  #   expect         -- Specify a md5 string digest monit should expect when  #   expect         -- Specify a md5 string digest monit should expect when
112  #                     testing a particular file's checksum. This statement is  #                     testing a particular file's checksum. This statement is
113  #                     an optional part of the checksum statement.  #                     an optional part of the checksum statement.
114  #  #
115  #   timestamp      -- Must be followed by a file or directory with an  #   timestamp      -- Must be followed by compare operator, number, optional
116  #                     absolute path, compare operator, number, optional time  #                     time unit and action. This statement is optional. More
117  #                     unit and action. This statement is optional. More than  #                     than one timestamp statement is allowed.
 #                     one timestamp statement is allowed.  
118  #    #  
119  #   size           -- Must be followed by compare operator, number, optional  #   size           -- Must be followed by compare operator, number, optional
120  #                     size unit and action. This statement is optional. More  #                     size unit and action. This statement is optional. More
# Line 260  Line 260 
260  #        and request "/monit/next.html"  #        and request "/monit/next.html"
261  #    # Testing a http ssl server requires that monit was compiled with openssl  #    # Testing a http ssl server requires that monit was compiled with openssl
262  #    port 443 type tcpssl proto http  #    port 443 type tcpssl proto http
 #    checksum /usr/local/apache/bin/httpd  
 #      and expect the sum 8f7f419955cefa0b33a2ba316cba3659  
 #    alert security@foo.bar on { checksum }  
 #        with the mail-format { subject: Alarm! }  
263  #    alert sysadm@foo.bar  #    alert sysadm@foo.bar
264  #    timeout(3, 5)  #    timeout(3, 5)
265  #    group server  #    group server
# Line 271  Line 267 
267  #    if cpu > 80.0 % 5 restart  #    if cpu > 80.0 % 5 restart
268  #    if mem > 100.0 MB for 5 cycles then stop  #    if mem > 100.0 MB for 5 cycles then stop
269  #    if loadavg(5min) greater than 10 for 8 cycles then stop  #    if loadavg(5min) greater than 10 for 8 cycles then stop
270    #    depends on httpd_bin
271  #    depends on sybase  #    depends on sybase
272  #      #    
273    #    
274    #  check file httpd_bin with path /usr/local/apache/bin/httpd
275    #    checksum and expect the sum 8f7f419955cefa0b33a2ba316cba3659
276    #    permission 755
277    #    if size changed then alert
278    #    if timestamp changed then alert
279    #    alert sysadm@foo.bar
280    #    alert security@foo.bar on { checksum, permission, size, timestamp }
281    #        with the mail-format { subject: Alarm! }
282    #    group server
283  #  #
284    #    
285  #  check process sybase with pidfile /var/run/sybase.pid  #  check process sybase with pidfile /var/run/sybase.pid
286  #    start program = "/etc/init.d/sybase start"  #    start program = "/etc/init.d/sybase start"
287  #    stop program  = "/etc/init.d/sybase stop"  #    stop program  = "/etc/init.d/sybase stop"
# Line 282  Line 290 
290  #    timeout if 2 restarts within 3 cycles  #    timeout if 2 restarts within 3 cycles
291  #    alert foo@bar  #    alert foo@bar
292  #    depends on datafs  #    depends on datafs
293  #    group database  #    group server
294  #  #
295  #  #
296  #  check device datafs with path /dev/sdb1  #  check device datafs with path /dev/sdb1
# Line 294  Line 302 
302  #    if inode usage > 80 % then alert  #    if inode usage > 80 % then alert
303  #    if inode usage > 99 % then stop  #    if inode usage > 99 % then stop
304  #    alert root@localhost  #    alert root@localhost
305  #    group database  #    group server
306  #  #
307  #  #
308  #  check device rootfs with path /dev/sda1  #  check device rootfs with path /dev/sda1
# Line 305  Line 313 
313  #    alert root@localhost  #    alert root@localhost
314  #  #
315  #  #
 #  check file su with path /bin/su  
 #    permission 4755  
 #    if size changed then alert  
 #    if timestamp "/bin/su" changed then alert  
 #    checksum /bin/su and expect cd6ee4b7a38964be2f9a0f7f4c4a8301  
 #    alert root@localhost  
 #  
 #  
316  #  check file database with path /data/mydatabase.db  #  check file database with path /data/mydatabase.db
317  #    permission 700  #    permission 700
318  #    if size > 100 MB then alert  #    if size > 100 MB then alert
319  #    if timestamp "/data/database" > 15 minutes then alert  #    if timestamp > 15 minutes then alert
320  #    alert root@localhost  #    alert root@localhost
321  #  #
322  #  #

Legend:
Removed from v.1.41  
changed lines
  Added in v.1.42

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