The existing escalation_options directive in escalation definitions will likely get you this behavior without the need for a patch.<br><br><a href="http://nagios.sourceforge.net/docs/3_0/escalations.html">http://nagios.sourceforge.net/docs/3_0/escalations.html</a> - see the very bottom of this page as well as the object definition documentation for escalation_options.<br>
<br>Regards,<br>Martin Melin<br><br><div class="gmail_quote">On Fri, Nov 6, 2009 at 3:49 AM, Mark Gius <span dir="ltr"><<a href="mailto:mgius@createspace.com">mgius@createspace.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;">
Currently, service notifications contain "first/last_notification"<br>
directives, that specify the range of notifications that the escalation<br>
should apply to.  This method of escalation has a weakness however.<br>
<br>
At my work, we let warnings go to the default contact (which happens to<br>
be email), and escalate to a pager chain on critical.  However, if a<br>
service sits in WARNING for a length of time (which is likely to happen<br>
in the middle of the night), by the time the service enters a CRITICAL<br>
state the notification count exceeds our highest escalation, and our<br>
entire team gets paged immediately.<br>
<br>
What I'd like to see is the ability to distinguish between a WARNING<br>
notification and a CRITICAL notification in the escalation, and set up<br>
escalation chains that work based on the number of CRITICAL's that have<br>
been sent, as opposed to the total number of notifications.<br>
<br>
I am planning on patching nagios to support this behavior if there isn't<br>
a way to achieve this behavior with the current implementation.  My plan<br>
is to add a warning/critical count to service, add a first/last<br>
warning/critical state to service escalations, and add the directives<br>
"(first|last)_(warning|critical)_notification" to the service escalation<br>
configs.  The idea is also to keep the current behavior<br>
(notification_count and first/last_notification would still be present),<br>
but allow finer grained control over when escalations are sent out.<br>
This way if somebody didn't want to use the finer grained control their<br>
behavior would stay the same.  My current plan is to match the<br>
escalation if _any_ of the 3 notification ranges match<br>
(all/warning/critical).<br>
<br>
Any advice on making this behavior happen with Nagios as-is, or<br>
suggestions/advice on the implementation are welcome.<br>
<br>
-Gius<br>
<br>
------------------------------------------------------------------------------<br>
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day<br>
trial. Simplify your report design, integration and deployment - and focus on<br>
what you do best, core application coding. Discover what's new with<br>
Crystal Reports now.  <a href="http://p.sf.net/sfu/bobj-july" target="_blank">http://p.sf.net/sfu/bobj-july</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) and OS when reporting any issue.<br>
::: Messages without supporting info will risk being sent to /dev/null<br>
</blockquote></div><br>