Thank you your guide helped<br><br><div class="gmail_quote">On Tue, Apr 6, 2010 at 4:31 PM, Giorgio Zarrelli <span dir="ltr"><<a href="mailto:zarrelli@linux.it">zarrelli@linux.it</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Hi,<br>
<br>
the workflow for check/notification/escalation is the following:<br>
<div><div></div><div class="h5"><br>
<br>
1. The service/host is checked in OK state with the check_interval<br>
timing;<br>
<br>
2. As the service/host goes into a NON OK state, but didn't reach the<br>
max_check_attempts, the service enters a SOFT NON OK state and the next<br>
check is scheduled with the retry_interval timing;<br>
<br>
3. As the service/host in NON OK state reaches the<br>
max_check_attempts_value, the service enters an HARD NON OK STATE and<br>
the next service/host check is scheduled with the check_interval timing;<br>
<br>
4. Now, if you set first_notification_delay, this can alter the timing<br>
for the first notification to be sent (0 means notifications to be sent<br>
immediately);<br>
<br>
5. If you didn't set the first_notification_delay, the first<br>
notification is immediately sent and the following will be scheduled<br>
with the notification_interval timing (0 means only the first<br>
notification will be sent, the other will not be sent);<br>
<br>
6. In your escalation, at the third notification (with the<br>
notification_interval taking place), the notification interval changes<br>
to 45 minutes, so the first notification will be sent after the<br>
max_check_attempts value will be reached (assuming you didn't put any<br>
delay), then the second after 10 time units, usually 10 minutes, the<br>
third 10 mins after the second, the fourth 45 mins after the third, the<br>
fifth 45 mins after the fourth, the sixth 45 mins after the fifth.<br>
<br>
<br>
7. From the sixth notification, the new escalation comes into play. The<br>
seventh notification will be sent after 60 minutes, and all the other<br>
notifications will be sent 60 mins after each other. Keep in mind that<br>
having used 0 as the last_notification value, you escalation will never<br>
end till your check will return an OK status.<br>
<br>
<br>
I do not know if I answered to your questions, I hope to have explained<br>
the notification/escalation timings in a correct and clear manner.<br>
<br>
On the Nagios wiki you will find a flowchart I wrote to clarify the<br>
logic dealing with the notification framework.<br>
<br>
Ciao,<br>
<br>
Giorgio<br>
<br>
<br>
<br>
Il giorno lun, 05/04/2010 alle 12.48 -0400, dOE ha scritto:<br>
> Thanks Giorgia,<br>
><br>
> Then for notification_interval for  production environment set to "10"<br>
> would process the escalation after 10 minutes of the alert NIT being<br>
> "ok"?, and subsequent notification_interval should be set to more than<br>
> "10" so that they would then be notified too?<br>
><br>
> Am I understanding this correctly?<br>
><br>
> On Mon, Apr 5, 2010 at 6:34 AM, Giorgio Zarrelli <<a href="mailto:zarrelli@linux.it">zarrelli@linux.it</a>><br>
> wrote:<br>
>         Hi,<br>
><br>
>         First, local definitions win over those written in templates,<br>
>         so if in the template you have a notification_interval value<br>
>         and in the escalation you have another, escalation wins and<br>
>         its value is adopted.<br>
><br>
>         Second, notification_interval il the interval between two<br>
>         consecutive notifications for a host or a service, after it<br>
>         enters a non ok status and has exceeded max_check_attempts<br>
>         value.<br>
><br>
>         Ciao,<br>
><br>
>         Giorgio<br>
><br>
>         Il giorno 05/apr/2010, alle ore 04.50, dOE <<a href="mailto:doepain@gmail.com">doepain@gmail.com</a>><br>
>         ha scritto:<br>
><br>
><br>
>                 I am having a difficulty getting escalations to work<br>
>                 on Nagios 3.0.3<br>
><br>
>                 The following is pulled from the documentation:<br>
><br>
>                 define serviceescalation{<br>
>                        host_name               webserver<br>
>                        service_description     HTTP<br>
>                        first_notification      3<br>
>                        last_notification       5<br>
>                        notification_interval   45<br>
>                        contact_groups          ITOps_Oncall,managers<br>
>                        }<br>
><br>
>                 define serviceescalation{<br>
>                        host_name               webserver<br>
>                        service_description     HTTP<br>
>                        first_notification      6<br>
>                        last_notification       0<br>
>                        notification_interval   60<br>
>                        contact_groups<br>
>                 ITOps_Oncall,managers,everyone<br>
>                        }<br>
><br>
>                 I have read the documentation, but I don't understand<br>
>                 what the "notification_interval" are based on, and<br>
>                 sine we have hosts inheriting from a "core" template<br>
>                 it is very difficult to test escalations.<br>
>                 We use OpCfg to do our Nagios configuration, but it<br>
>                 does not stop me from occasionally going into the<br>
>                 actual configuration files to make changes either.<br>
><br>
>                 If anyone has this working, and could shed some light<br>
>                 on how I can get this to work, or clarify the<br>
>                 documentation explanation of it.  Also, since I am<br>
>                 inheriting from a template I feel as though the<br>
>                 changes I make to a particular host (to test) is being<br>
>                 ignored or it maybe me not understanding what the<br>
>                 "notification_interval" are exactly.<br>
><br>
>                 Any advice is very much appreciated.<br>
><br>
>                 ------------------------------------------------------------------------------<br>
>                 Download Intel&#174; Parallel Studio Eval<br>
>                 Try the new software tools for yourself. Speed<br>
>                 compiling, find bugs<br>
>                 proactively, and fine-tune applications for parallel<br>
>                 performance.<br>
>                 See why Intel Parallel Studio got high marks during<br>
>                 beta.<br>
>                 <a href="http://p.sf.net/sfu/intel-sw-dev" target="_blank">http://p.sf.net/sfu/intel-sw-dev</a><br>
>                 _______________________________________________<br>
>                 Nagios-users mailing list<br>
>                 <a href="mailto:Nagios-users@lists.sourceforge.net">Nagios-users@lists.sourceforge.net</a><br>
>                 <a href="https://lists.sourceforge.net/lists/listinfo/nagios-users" target="_blank">https://lists.sourceforge.net/lists/listinfo/nagios-users</a><br>
>                 ::: Please include Nagios version, plugin version (-v)<br>
>                 and OS when reporting any issue.<br>
>                 ::: Messages without supporting info will risk being<br>
>                 sent to /dev/null<br>
><br>
><br>
<br>
<br>
<br>
</div></div></blockquote></div><br>