Hi Ethan, Hi List
If the host_perfdata_file_processing_command is executed, the filehandle fo=
r service_perfdata_file is also closed and reopened.
So the host_perfdata_file_processing_command also truncates the service_per=
fdata_file.
J=F6rg=20
=2D-- xpddefault.c.orig 2007-03-01 19:19:17.000000000 +0100
+++ xpddefault.c 2007-03-06 12:39:00.000000000 +0100
@@ -716,9 +716,8 @@
if(xpddefault_host_perfdata_file_processing_command=3D=3DNULL)
return OK;
=2D /* close the performance data files */
+ /* close the host performance data file */
xpddefault_close_host_perfdata_file();
=2D xpddefault_close_service_perfdata_file();
/* update macros */
clear_volatile_macros();
@@ -750,8 +749,7 @@
my_free((void **)&temp_buffer);
}
=2D /* re-open the performance data files */
=2D xpddefault_open_service_perfdata_file();
+ /* re-open the host performance data file */
xpddefault_open_host_perfdata_file();
return result;
@@ -772,8 +770,7 @@
if(xpddefault_service_perfdata_file_processing_command=3D=3DNULL)
return OK;
=2D /* close the performance data files */
=2D xpddefault_close_host_perfdata_file();
+ /* close the service performance data file */
xpddefault_close_service_perfdata_file();
/* update macros */
@@ -806,9 +803,8 @@
my_free((void **)&temp_buffer);
}
=2D /* re-open the performance data files */
+ /* re-open the service performance data file */
xpddefault_open_service_perfdata_file();
=2D xpddefault_open_host_perfdata_file();
return result;
}
This post was automatically imported from historical nagios-devel mailing list archives
Original poster: [email protected]