monit-general
[Top][All Lists]
Advanced

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

Multiple Conditions in a Given Test?


From: Christopher Opena
Subject: Multiple Conditions in a Given Test?
Date: Wed, 12 Oct 2011 14:29:49 -0700

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

reply via email to

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