[Top][All Lists]

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

repeated file content match

From: Ben Soot
Subject: repeated file content match
Date: Mon, 20 Oct 2014 15:11:59 +0200
User-agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:24.0) Gecko/20100101 Thunderbird/24.6.0


What is the best way to get alerts of repeated file content matches?

I have 2 rules one for the same file so i can then distinguish in mmonit the service to send alerts to different mail addresses.

Somehow the alerts for the repeated rule are not triggered... Anybody done sth 
like this?
also i never got the service group

Im using monit 5.4 and mmonit 3.1.2

thanks Ben

set daemon  120

check file foo.log  with path /home/foo.log

    if match
          "^.*ACTION_REQUIRED.*$" then alert

check file foo_REPEATED.log  with path /home/foo.log
    group repeatedfailure
    if match
          "^.*ACTION_REQUIRED.*$" within 3 cycles then alert

reply via email to

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