[hobbit] "Stop after" not shown in the Info-Page

Henrik =?unknown-8bit?Q?St=C3=B8rner?= henrik at hswn.dk
Thu Dec 4 14:07:11 CET 2008


On Mon, Nov 17, 2008 at 11:36:07PM +0100, Alexander Bech wrote:
> Alexander Bech schrieb:
>> Hi,
>>
>> i have configured alerts in hobbit-alerts.cfg:
>>
>> HOST=%.*
>>      MAIL recipient (at) company.examle 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)) ...


I'm afraid that was not the correct solution. This fails if you have
DURATION settings on the HOST entry as well as the MAIL entry. The
correct solution is quite different - patch attached, this is also
going into the 4.2.2 version.


Regards,
Henrik

-------------- next part --------------
A non-text attachment was scrubbed...
Name: durationprint.patch
Type: text/x-diff
Size: 1527 bytes
Desc: not available
URL: <http://lists.xymon.com/pipermail/xymon/attachments/20081204/4d282a64/attachment.patch>


More information about the Xymon mailing list