[Top][All Lists]

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

Re: check file content without alert if file does not exist

From: Ben Soot
Subject: Re: check file content without alert if file does not exist
Date: Wed, 07 Jan 2015 10:59:32 +0100
User-agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:31.0) Gecko/20100101 Thunderbird/31.3.0

Hi Martin,

Thanks for that. I do not have the "any" option in mmonit 3.1.2, however i found out using groups how to not get alerted by existence "errors".

Its still not optimal. The issue is that on the mmonit dashboard it looks like services failed - host status is organge - although all services are ok, just some that monitor error log files have status "Does not exist" - which is fine...

Any ideas?

Thanks Ben

On 05.01.2015 19:35, Martin Pala wrote:
Hi Ben,

you can filter out the "existence" event in M/Monit (all other events will be 


On 24 Dec 2014, at 15:29, Ben Soot <address@hidden <mailto:address@hidden>> 


I am using monit 5.4 - cannot upgrade b/c shared c compiler lib of debian 
wheezy (would have to
upgrade c compiler which i rather would not do b/c of side effects)

My issue:
I am checking several error log files and alert if certain patterns occur 
within (that indicate
serious errors i need to take action on).
I however do not want to be alerted when the file does not exist (i.e. there 
are no errors at all)

How do i do that?

I tried:

check file foo-err.log  with path /foo-err.log
  if match
       "^.*ACTION_REQUIRED.*$" then alert
   if does not exist for 64 cycles then exec "/bin/true"

(the last clause is to override the default action which is restart and also 
alerts me.)

I am customer of mmonit, so i configure alert settings there.

So i configured to be alerted by all events except execution. However I still 
get alerted when the
file does not exist.

Note also: I do not want to create an alert rule in mmonit for every service as 
i am monitoring a
lot of such error log files.

Any ideas?

Many thxs and merry x-mas!


To unsubscribe:

To unsubscribe:

reply via email to

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