Simple escalations
Ton Voon
ton.voon at altinity.com
Thu Sep 14 18:25:17 CEST 2006
Hi Ethan,
We've published a patch to Nagios 2.5 where we add a feature for
contacts. You can now set a notification_level and contacts will not
get alerted until the notification number reaches their level.
Details here: http://altinity.blogs.com/dotorg/2006/09/
simple_escalati.html
One problem we've found is that if all contacts fail to get notified
due to their configuration filters, then the notification number is
decremented back to the original. But that means a manager with
notification_level 2 would never get alerted.
Would it make sense for a notification number to still increase if
contact filters fail? If the service filters fail, the notification
number should return back, but if contacts have been defined to
ignore them, then I think the "clock should keep ticking" - ie, the
notification number (the seriousness), keeps increasing.
If so, I think this is the change to notifications.c:
--- notifications.c.original 2006-09-14 17:19:08.918201189 +0100
+++ notifications.c 2006-09-14 17:21:52.813500174 +0100
@@ -213,9 +213,10 @@
svc->notified_on_critical=TRUE;
}
- /* we didn't end up notifying anyone, so
adjust current notification number */
- else
+ /* we didn't end up notifying anyone because
of various contact filters, but the seriousness should keep
increasing */
+ /* else
svc->current_notification_number--;
+ */
}
#ifdef DEBUG4
printf("\tAPPROPRIATE CONTACTS HAVE BEEN NOTIFIED\n");
@@ -1012,9 +1013,10 @@
hst-
>notified_on_unreachable=TRUE;
}
- /* we didn't end up notifying anyone, so
adjust current notification number */
- else
+ /* we didn't end up notifying anyone because
of various contact filters, but the seriousness should keep
increasing */
+ /* else
hst->current_notification_number--;
+ */
}
#ifdef DEBUG4
Ton
http://www.altinity.com
T: +44 (0)870 787 9243
F: +44 (0)845 280 1725
Skype: tonvoon
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-lists.org/archive/developers/attachments/20060914/34fb9a37/attachment.html>
-------------- next part --------------
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
-------------- next part --------------
_______________________________________________
Nagios-devel mailing list
Nagios-devel at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-devel
More information about the Developers
mailing list