Xymon Mailing List Archive search

"Stop after" not shown in the Info-Page

list Alexander Bech
Mon, 17 Nov 2008 23:36:07 +0100
Message-Id: <user-fd2b6eefe806@xymon.invalid>

Alexander Bech schrieb:
Hi,

i have configured alerts in hobbit-alerts.cfg:

HOST=%.*
     MAIL user-88549a31d887@xymon.invalid DURATION>3 DURATION<10 REPEAT=1

This works fine.
Hobbit sent me 7 mails after 3 minutes each minute and after that no more.

But i can't see anything in the "Stop after" column in the info-page.

I have found the bug (?) in loadalerts.c in the line 1081 (-less than/+greater than):
-               if (recip->criteria && recip->criteria->maxduration && (recip->criteria->maxduration < maxdur)) ...
+               if (recip->criteria && recip->criteria->maxduration && (recip->criteria->maxduration > maxdur)) ...

This works:
info

Alex