Re: [Nagios-devel] Custom Notifications during Downtimes

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
Guest

Re: [Nagios-devel] Custom Notifications during Downtimes

Post by Guest »

This is a multi-part message in MIME format.
--------------010106080204020505050207
Content-Type: text/plain; charset=ISO-8859-15
Content-Transfer-Encoding: 7bit

On 03/23/2010 04:01 PM, Andreas Ericsson wrote:
>
> Either you supplied a patch created in reverse, or you just removed
> the check you claim to have added.
>
> I'm confused. Care to re-send a proper patch?
>
>

Argh, you're right. Mixed up old and new. Here is the proper patch.

Sorry

--
Sven Nierlein [email protected]
ConSol* GmbH http://www.consol.de
Franziskanerstrasse 38 Tel.:089/45841-439
81669 Muenchen Fax.:089/45841-115


--------------010106080204020505050207
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-23mar10 2010-03-23 12:55:56.000000000 +0100
+++ ./base/notifications.c 2010-03-23 13:03:21.000000000 +0100
@@ -360,8 +360,14 @@
/*********************************************/

/* custom notifications are good to go at this point... */
- if(type==NOTIFICATION_CUSTOM)
- return OK;
+ 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;
+ }
+


/****************************************/

--------------010106080204020505050207--





This post was automatically imported from historical nagios-devel mailing list archives
Original poster: [email protected]
Locked