Page 1 of 1

Re: [Nagios-devel] Bug - host_notifications_enabled/service_notif

Posted: Tue Jun 17, 2008 4:37 pm
by Guest
This is a multi-part message in MIME format.
--------------010507080606060505090709
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit

I did some debug on my end and find out that no contact status is
restored upon Nagios restart. In fact, the first contact is restored
over and over again in place of all contacts.

There was a copy/paste error (again) in ./xdata/xrddefault.c

Attached is a patch that fixes this problem.

--
Mathieu

--------------010507080606060505090709
Content-Type: text/plain;
name="contact-stateretention.patch"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
filename="contact-stateretention.patch"

diff -Naur nagios-3.0.2-original/xdata/xrddefault.c nagios-3.0.2/xdata/xrddefault.c
--- nagios-3.0.2-original/xdata/xrddefault.c 2008-02-23 16:12:11.000000000 -0500
+++ nagios-3.0.2/xdata/xrddefault.c 2008-06-17 20:26:50.000000000 -0400
@@ -871,7 +871,7 @@
}

my_free(contact_name);
- temp_host=NULL;
+ temp_contact=NULL;
break;

case XRDDEFAULT_HOSTCOMMENT_DATA:

--------------010507080606060505090709--





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