[Nagios-devel] Problem with Acknowledgements
Posted: Mon Aug 19, 2002 9:37 am
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."
[email protected] -- Arthur C. Clarke
This post was automatically imported from historical nagios-devel mailing list archives
Original poster: [email protected]
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."
[email protected] -- Arthur C. Clarke
This post was automatically imported from historical nagios-devel mailing list archives
Original poster: [email protected]