/[monit]/monit/monitrc
ViewVC logotype

Diff of /monit/monitrc

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

revision 1.48 by hauk, Fri Aug 22 13:57:42 2003 UTC revision 1.49 by martinp, Wed Aug 27 23:36:43 2003 UTC
# Line 119  Line 119 
119  #                     If passive, monit will only monitor and send alerts  #                     If passive, monit will only monitor and send alerts
120  #                     (resource related restart and stop options are ignored  #                     (resource related restart and stop options are ignored
121  #                     in this mode also). If manual, monit will enter active  #                     in this mode also). If manual, monit will enter active
122  #                     mode only if service was started under monit's control  #                     mode only if service was brough under monit's control
123  #                     otherwise the service isn't monitored.  #                     otherwise the service isn't monitored.
124  #  #
125  #   cpu            -- Must be followed by a compare operator, a number with  #   cpu            -- Must be followed by a compare operator, a number with
# Line 147  Line 147 
147  #                     maximum number of cycles and an action.  This statement  #                     maximum number of cycles and an action.  This statement
148  #                     is used to check the system load average over a number  #                     is used to check the system load average over a number
149  #                     of cycles.  If the compare expression matches then the  #                     of cycles.  If the compare expression matches then the
150  #                     action (restart, alert, exec or stop) is executed.  #                     action (restart, alert, exec, stop or unmonitor) is
151    #                     executed.
152  #  #
153  #   space          -- Must be followed by a compare operator, number,  #   space          -- Must be followed by a compare operator, number,
154  #                     unit and action, where the unit is expressed in one of  #                     unit and action, where the unit is expressed in one of
# Line 264  Line 265 
265  #      #    
266  #  check file apache_bin with path /usr/local/apache/bin/httpd  #  check file apache_bin with path /usr/local/apache/bin/httpd
267  #    if failed checksum and  #    if failed checksum and
268  #       expect the sum 8f7f419955cefa0b33a2ba316cba3659 then alert  #       expect the sum 8f7f419955cefa0b33a2ba316cba3659 then unmonitor
269  #    if failed permission 755 then alert  #    if failed permission 755 then unmonitor
270    #    if failed uid root then unmonitor
271    #    if failed gid root then unmonitor
272  #    alert sysadm@foo.bar  #    alert sysadm@foo.bar
273  #    alert security@foo.bar on {  #    alert security@foo.bar on {
274  #           checksum, permission  #           checksum, permission, uid, gid, unmonitor
275  #        } with the mail-format { subject: Alarm! }  #        } with the mail-format { subject: Alarm! }
276  #    group server  #    group server
277  #  #
# Line 287  Line 290 
290  #  check device datafs with path /dev/sdb1  #  check device datafs with path /dev/sdb1
291  #    start program  = "/bin/mount /data"  #    start program  = "/bin/mount /data"
292  #    stop program  = "/bin/umount /data"  #    stop program  = "/bin/umount /data"
293  #    if failed permission 660 then stop  #    if failed permission 660 then unmonitor
294  #    if failed uid root then stop  #    if failed uid root then unmonitor
295  #    if failed gid disk then stop  #    if failed gid disk then unmonitor
296  #    if space usage > 80% then alert  #    if space usage > 80% then alert
297  #    if space usage > 99% then stop  #    if space usage > 99% then stop
298  #    if inode usage > 80% then alert  #    if inode usage > 80% then alert
# Line 299  Line 302 
302  #  #
303  #  #
304  #  check device rootfs with path /dev/sda1  #  check device rootfs with path /dev/sda1
305  #    if failed permission 660 then alert  #    if failed permission 660 then unmonitor
306  #    if failed uid root then alert  #    if failed uid root then unmonitor
307  #    if failed gid disk then alert  #    if failed gid disk then unmonitor
308  #    if space usage > 3 GB then alert  #    if space usage > 3 GB then alert
309  #    if inode usage > 30000 then alert  #    if inode usage > 30000 then alert
310  #    alert root@localhost  #    alert root@localhost
# Line 318  Line 321 
321  #  #
322  #  #
323  #  check directory bin with path /bin  #  check directory bin with path /bin
324  #    if failed permission 755 then alert  #    if failed permission 755 then unmonitor
325  #    if failed uid 0 then alert  #    if failed uid 0 then unmonitor
326  #    if failed gid 0 then alert  #    if failed gid 0 then unmonitor
327  #    alert root@localhost  #    alert root@localhost

Legend:
Removed from v.1.48  
changed lines
  Added in v.1.49

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