[Top][All Lists]

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

Re: [monit] Having two "if changed" statements

From: MosheC
Subject: Re: [monit] Having two "if changed" statements
Date: Thu, 6 Dec 2007 14:45:39 -0800 (PST)

I got no response to this one for a couple of weeks.
If this could be commented on I would appreciate it

MosheC wrote:
> Hi,
> Below is a monitrc excerpt.
> The intention was that if xxx.log changed once in a while I should just
> get
> an alert, but if it changes too often (3 in 5) the check should be
> unmonitored in order to stop
> endless alerts, under the assumption that such frequent changes point to a
> recurring problem, which is tru in my case.
> It does not work.
> Effectively, only the 2nd line takes effect and I only get the message
> about
> unmonitoring. If I have changes once in a while, I get no alerts at all.
> Without the 2nd line, I do get an alert on each change.
> How do I make both lines work?
> check file xxx.log with path /home/mm/logs/xxx.log
>         if changed timestamp then alert
>         if changed timestamp for 3 times within 5 cycles then unmonitor
> Moshe
> --
> To unsubscribe:

View this message in context:
Sent from the monit-general mailing list archive at

reply via email to

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