[Xymon] Behavior of RECOVERED in alerts.cfg

Raymond Lee raylee88 at gmail.com
Thu Jan 3 19:00:16 CET 2013


On Thu, Dec 20, 2012 at 8:23 AM, Mike Burger <mburger at bubbanfriends.org>wrote:

> > Hi all,
> >
> > Does anyone have an answer for this?
> >
> >> Is it possible to configure Xymon to send a recovered notification
> >> *only* if there was a
> >> corresponding notification that was sent for the initial red state?
> >
> > If it's not possible, can I make a feature request for a future release?
> >
> > Thanks,
> > Ray
> >
> >
> > On Wed, Dec 12, 2012 at 4:55 PM, Raymond Lee <raylee88 at gmail.com> wrote:
> >> I have a question about the RECOVERED flag in alerts.cfg.  Here's an
> >> example:
> >>
> >> PAGE=somepage COLOR=red
> >>         MAIL somebody at somewhere.com DURATION>7 RECOVERED REPEAT=1h
> >>
> >>
> >> The behavior I'm seeing is that if a test on PAGE=somepage turns red
> >> for less than 7 minutes and then turns green again, we'll get an email
> >> for the recovery but not the initial red state.  Is this the expected
> >> behavior of the RECOVERED flag?  Is it possible to configure Xymon to
> >> send a recovered notification *only* if there was a corresponding
> >> notification that was sent for the initial red state?
>
> That's interesting...I'm not seeing recovered emails for events that occur
> and then clear within the >X timeframe. However, if I recall what I read,
> correctly, from the documentation, the polling/reporting time frame is in
> increments of 5 minutes...what happens if you change <7 to <10?
>
>
Hi Mike,

That shouldn't make a difference.  Xymon's default polling frequency is 5
minutes, but we just happen to set ours to 7 minutes.  At any rate,
DURATION is just the length of time that the test was red, so it shouldn't
matter what the polling period is.  To confirm this, I tried changing it to
DURATION>10 and got the same results.

So if the intended behavior of the RECOVERED flag is to send notification
whenever a test changes from red/yellow/purple back to green, regardless of
how long the test was in the red/yellow/purple state, then it's working as
designed.  But if there's a way to make it notify only if the DURATION
criterion is satisfied, then I'd be interested in hearing about it.

Thanks,
Ray



> --
> Mike Burger
> http://www.bubbanfriends.org
>
> "It's always suicide-mission this, save-the-planet that. No one ever just
> stops by to say 'hi' anymore." --Colonel Jack O'Neill, SG1
>
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.xymon.com/pipermail/xymon/attachments/20130103/9e35399c/attachment.html>


More information about the Xymon mailing list