Page 1 of 1

[Nagios-devel] Nagios 3.0a5 bug - check_result_path

Posted: Tue Jul 03, 2007 11:35 pm
by Guest
Hello,

After trying to run multiple instances of Nagios on the same machine I
noticed that the check_result_path entry in the nagios.cfg file is
ignored.

I had to patch config.c with the following code to fix this (diff is
against the latest CVS copy):

--- oldconfig.c 2007-07-04 14:04:26.000000000 +0800
+++ config.c 2007-06-29 15:59:12.000000000 +0800
@@ -441,6 +441,9 @@
=
if(temp_path[strlen(temp_path)-1]=3D=3D'/')
=20
temp_path[strlen(temp_path)-1]=3D'\x0';
}
+
+ my_free((void **)&check_result_path);
+ check_result_path=3D(char *)strdup(temp_path);
}

else if(!strcmp(variable,"max_check_result_file_age"))


Cheers,
Scott La Vertu [email protected]
Network Architect Phone: +61 8 9326 2495
Public Transport Authority Fax: +61 8 9326 2676
Perth, Western Australia Mobile: 0417 174 659







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