monit-general
[Top][All Lists]
Advanced

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

Re: Multiple Conditions in a Given Test?


From: Martin Pala
Subject: Re: Multiple Conditions in a Given Test?
Date: Thu, 13 Oct 2011 12:00:08 +0200

Hi,

monit currently doesn't support such tests. You can use the new "check program" which allows to write custom check script and let monit do the action based on its return value.

Regards,
Martin


On Oct 12, 2011, at 11:29 PM, Christopher Opena wrote:

Hi folks,

Can Monit actually check *multiple*, non-related conditions before alerting?  I couldn't find anything related to this in the documentation at http://mmonit.com/monit/documentation/monit.html.

Basically, it would be super helpful if you could do something like:

check system memory
    if memory_usage > 80% for 5 cycles AND
        check file do_i_care with path /etc/do_i_care.txt
            if match
                "yes"
    then alert

Anyone know of a way to do this in Monit or have any ideas about how to hack that together if a way doesn't exist?

Thanks,
-C
--
To unsubscribe:
https://lists.nongnu.org/mailman/listinfo/monit-general


reply via email to

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