This is a multi-part message in MIME format.
--------------020701000101090701070000
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 7bit
Hi List,
i was wondering why i receive notifications for hosts / services which
are in a scheduled downtime.
The notifications are sent by an eventhandler which trys to restart our
services and if that fails,
send a custom notification with an external command (without the force
option).
The notification logic sends custom notifications even during downtimes,
which i think is wrong.
Thats why there is a force option.
I patched the base/notifications.c, so custom notifications will only be
send if the host or service is not
in a scheduled downtime. (can still be overriden by the force option)
Any suggestions on that patch? Is there a chance to include this patch
in future versions or is this the expected
behaviour?
Regards,
Sven
--
Sven Nierlein [email protected]
ConSol* GmbH http://www.consol.de
Franziskanerstrasse 38 Tel.:089/45841-439
81669 Muenchen Fax.:089/45841-115
--------------020701000101090701070000
Content-Type: text/x-patch;
name="no_custom_notifications_during_downtimes.patch"
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment;
filename="no_custom_notifications_during_downtimes.patch"
--- ./base/notifications.c 2010-03-23 13:03:21.000000000 +0100
+++ ./base/notifications.c-23mar10 2010-03-23 12:55:56.000000000 +0100
@@ -360,14 +360,8 @@
/*********************************************/
/* custom notifications are good to go at this point... */
- if(type==NOTIFICATION_CUSTOM) {
- if(svc->scheduled_downtime_depth>0 || temp_host->scheduled_downtime_depth>0){
- log_debug_info(DEBUGL_NOTIFICATIONS,1,"We shouldn't send custom notification during scheduled downtime.\n");
- return ERROR;
- }
- return OK;
- }
-
+ if(type==NOTIFICATION_CUSTOM)
+ return OK;
/****************************************/
--------------020701000101090701070000--
This post was automatically imported from historical nagios-devel mailing list archives
Original poster: [email protected]