[Nagios-devel] Problem with Acknowledgements

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

[Nagios-devel] Problem with Acknowledgements

Post by Guest »

When acknowledging a host or service event, the settings of the contacts'
host_notification_options and service_notification_options are ignored (the
acknowlegements get sent to everyone). This patch makes acknowlegements
honor the same settings.

--- base/notifications.c.Org Sun Jun 30 15:58:34 2002
+++ base/notifications.c Mon Aug 19 11:07:25 2002
@@ -492,7 +492,7 @@
}

/* check viability of notifying this user */
- if(ack_data==NULL &&
check_contact_service_notification_viability(cntct,svc)==ERROR)
+ if(check_contact_service_notification_viability(cntct,svc)==ERROR)
return OK;

/* process all the notification commands this user has */
@@ -1086,7 +1086,7 @@
}

/* check viability of notifying this user about the host */
- if(ack_data==NULL &&
check_contact_host_notification_viability(cntct,hst,state)==ERROR)
+
if(check_contact_host_notification_viability(cntct,hst,state)==ERROR)
return OK;

/* process all the notification commands this user has */
--
Tom Bertelson "Any sufficiently advanced technology
GE Card Services is indistinguishable from magic."
Tom.Bertelson@gecapital.com -- Arthur C. Clarke






This post was automatically imported from historical nagios-devel mailing list archives
Original poster: Tom.Bertelson@gecapital.com
Locked