Can you have two duration directives, like this? I've been looking for
a way to stop notifications after a period of time, is this the answer?
MAIL user-2bbc6c9d3dc1@xymon.invalid DURATION>10 DURATION<120
Thanks,
Michael
-----Original Message-----
From: Henrik Stoerner [mailto:user-ce4a2c883f75@xymon.invalid]
Sent: Wednesday, June 29, 2005 1:56 PM
To: user-ae9b8668bcde@xymon.invalid
Subject: Re: [hobbit] Alert rules
On Wed, Jun 29, 2005 at 01:27:45PM -0400, Killenbeck, Alan wrote:
I've been asked to try to make alerts only send 2 emals, at most, and
still send a RECOVERED message when things recover.
As a quick test, I set DURATION<30, and REPEAT=15, and after forcing a
service down, for over an hour, achieved the
two email alerts - but after bringing the service back up, did not get
sent a recovered message.
Hmm - hadn't thought about that. I'd say it ought to work, but looking
at the way recovery messages are handled it seems you're right - if the
max. duration has been reached, the recovery message is never sent.
It's a bug. Will fix.
Regards,
Henrik