<div dir="ltr">Now i'm getting confused too 8|<br><br><div class="gmail_quote">On Mon, Sep 15, 2008 at 5:13 PM, Marcel <span dir="ltr"><<a href="mailto:webknowledge@gmail.com">webknowledge@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div dir="ltr"><br><div class="gmail_quote">On Sat, Sep 13, 2008 at 5:22 AM, Hendrik BŠäcker <span dir="ltr"><<a href="mailto:andurin@process-zero.de" target="_blank">andurin@process-zero.de</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Marcel schrieb:<br>
<div>>     If you have a service that would be checked every 10 seconds, and<br>
>     notification interval = 60, then you should get the warning message.<br>><br>
> I think a bit and that would not be the case, but instead, not 10<br>
> seconds, but like 300 (or five minutes if interval_length=1). Then the<br>
> warning is issued.<br><br>
</div>So, actual I'm a little bit confused about what is the fact.<br>
<br>
You have service object with check_interval = 300 (seconds, cause<br>
interval_length=1) and a notification_interval of 10 (seconds) or vice<br>
versa?</blockquote><div><br>No, i have notification_interval's default value of 60 (minutes if interval_length=60), but when using itnerval_length=1 and normal_check_interval of 300 (seconds), then the warning message saying that my notification interval is lower than my command_check_interval appears at nagios.log <br>

<br></div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
check_interval = 300 +<br>
notification_interval = 10<br>
The warning message is IMHO OK cause it's useless to resend notification<br>
cause of a service state that isn't able to change.</blockquote><div><br>That's what Nagios thinks aswell. <br><br></div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">


Please drop us a short note what you are doing exactly.<br></blockquote><div><br>Notification_interval never gets multiplied by interval_length (nor divided), so it assumes interval_length = 60.<br>
<br>
Documentation says notification_interval is "time units", but never
gets checked against interval_length, as command_check_interval is in
line:<br>
   1344                 command_check_interval*=interval_length;<br>
<br>
notification_interval never gets multiplied by interval_length, at
least at config.c, then when using the default notification_interval of
60, and setting a 300s normal_check_interval (five minutes, because
interval_length=1), then the sanity check at line 1878 prints the wrong
warning message.<br>
<br>
My solution was to multiply (not assigning
notification_interval*=interval_length), in config.c at check time, but
that is wrong because it did not assign
notification_interval*=interval_length, as command_check_interval is. <br>
<br>
Well, i did get rid of the wrong warning messages, but i think
notifications would be messed up (i did not get into notifications.c to
confirm anything). <br>
<br>
Anyone seeing messed up notifications with interval_length < 60 ?<br><br></div></div>Regards,<br>Marcel</div></blockquote><div><br>I've realized some mistakes when trying to understanding what I've said :) <br>

<br>
I was assuming a wrong premise of the notification_interval type. All
the time I was referring to notification_interval as not being
interval_length-based, but it is, so my whole assumption of the bug is
wrong. <br>
<br>
But, notification_interval did not gets multiplied by interval_length
as command_check_interval is. So, from that point, if
command_check_interval and notification_interval are all the same 'time
units', then i would expect notification_interval being assigned like
command_check_interval (command_check_interval*=interval_length).<br>
<br>Cheers,<br>Marcel<br></div></div><br></div>