monit-general
[Top][All Lists]
Advanced

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

behavior when content match status changes?


From: Yvonne Lam
Subject: behavior when content match status changes?
Date: Wed, 20 Jul 2011 16:20:29 -0700

I am running into an issue where monit alerts correctly on a content match, but I don't receive an alert when the status of the content match changes.  I had the impression from the documentation that it was supposed to, but perhaps I am misinterpreting something.

My setup is

monit 5.2.5

snippet of monit config:
check file logfile with path /path/to/logfile
    if match
        "FAIL"
    then alert

logfile:
|Wed Jul 20 21:49:47 UTC 2011|PASS|204|Service1|
|Wed Jul 20 21:49:47 UTC 2011|FAIL|204|Service2 |
|Wed Jul 20 21:49:47 UTC 2011|PASS|200|Service3|
|Wed Jul 20 21:49:47 UTC 2011|PASS|200|Service4|
|Wed Jul 20 21:49:47 UTC 2011|PASS|200|Service5|
...
(new text is appended to the logfile via echo:  echo "string" >> logfile)

I receive an alert when the string "FAIL" shows up, and I was expecting that when the status changed back to "PASS" that I would be alerted again, but that is not the case.  Is there a way to fix my config so that I get alerts when the status of the content match changes?

thanks

Yvonne     


reply via email to

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