monit-general
[Top][All Lists]
Advanced

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

Re: Using timeouts when monitoring disk space usage


From: Jan-Henrik Haukeland
Subject: Re: Using timeouts when monitoring disk space usage
Date: Fri, 7 Jan 2005 19:13:06 +0100

I think you use and older version of monit. This is fixed in the latest releases. That is, you only get one alert for the same problem. Please download and try the latest monit version from http://www.tildeslash.com/monit/download/ and let us know if the problem goes away.

On Jan 7, 2005, at 17:54, Aaron Dummer wrote:

Currently I'm using monit to alert me when disk space usage reaches 80%.

check device rootfs with path /dev/hda1
        if space usage > 80% then alert
        mode passive

When space usage reaches the alert level, monit keeps reminding me until I bring it back below 80%. I'd like it to send one alert, then timeout, like it can with processes. Otherwise I keep getting alerts until I can
login to the box and clean up old files, etc.

check process apache with pidfile /var/run/apache.pid
        start program = "/etc/init.d/apache start"
        stop program = "/etc/init.d/apache stop"
        if 2 restarts within 3 cycles then timeout
        mode active

I've searched the manual and Google'd it, to no avail.  It appears that
timeouts only apply processes. Is there another way to limit the number
of alerts for disk space usage and the like?

--
Jan-Henrik Haukeland
Mobil +47 97141255





reply via email to

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