timing of service checks .vs. notifications

Stefan Palme kleiner at hora-obscura.de
Wed Jan 16 16:30:16 CET 2008


Hi all,

I am just thinking about the correlation of "check_interval" and
"notification_interval" in service definitions. 

A understand their relation as following: When a service enters a 
hard non-ok state, a notification gets sent out. The next service
check is rescheduled at now+check_interval (under normal circumstances
without special configuration).

When this time has come, and the service is still in a hard non-ok
state, nagios checks whether the timestamp of the last sent
notification is more than notification_interval ago. If yes, a new
notification is sent out; if no, no notification will be sent.

The next service check will be rescheduled again for
now+check_interval...

The basic question is: only when a *service-check event* results 
in an hard state, the logic for deciding whether to sent a 
notification or not will be triggered. I.e. it does not make 
sense to set check_interval=15 minutes and notification_interval=5
minutes, because notifications will only be sent when CHECKS OCCUR, 
i.e. not more than one per 15 minutes (in normal circumstances).

Is this correct? Or is there a separate "scheduling line" only
for notifications which is independent of the service checks?

When I am right (and notifications will be sent only on service-
checks), than it would make sense to set notification_interval
to a multiple of check_interval. Setting check_interval to 5
minutes and notification_interval to 8 minutes would not make
much sense because this would be "automatically rounded up to
the next service check time" (dont know how to express this better):

0min     5min     10min    15min    20min
CHECK    CHECK    CHECK    CHECK    CHECK
NOTIFY         x  NOTIFY         x  NOTIFY

(CHECK and NOTIFY are the times when a service check occurs
and a notification gets send. The small "x" marks the time
when the next notification COULD be sent according to
notification_interval).

Am I right here, too? ;-)



And what happends with notification escalations? There you can modify
the notification_interval for certain notifications. But this modified
notification interval does not influence the check_interval for the
corresponding service, does it? So here the same as above applies:

Also the modified notification_intervals will be checked only when
a service check has been executed and nagios thinks a notification could
be sent... When the previous notification is "long enough ago" at the
time of the service check, the notification will be sent.

Right until here?


Thanks and best regards
-stefan-



-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. 
::: Messages without supporting info will risk being sent to /dev/null





More information about the Users mailing list