[icinga-checkins] icinga.org: icinga-core/master: fix service perfdata files re-opening twice , leaving open filehandle #1148

git at icinga.org git at icinga.org
Tue Jan 25 14:27:32 CET 2011


Module: icinga-core
Branch: master
Commit: 3541dd1aaed8d27feb38069e7766f75f682b9c03
URL:    https://git.icinga.org/?p=icinga-core.git;a=commit;h=3541dd1aaed8d27feb38069e7766f75f682b9c03

Author: Michael Friedrich <michael.friedrich at univie.ac.at>
Date:   Tue Jan 25 12:37:59 2011 +0100

fix service perfdata files re-opening twice, leaving open filehandle #1148

leaving the filehandle untouched, will result in
too many open files and the kernel bails out on
ulimit -n which defaults to 1024 on rhel/ubuntu.

refs #1148

---

 xdata/xpddefault.c |    3 ---
 1 files changed, 0 insertions(+), 3 deletions(-)

diff --git a/xdata/xpddefault.c b/xdata/xpddefault.c
index c042210..cf29464 100644
--- a/xdata/xpddefault.c
+++ b/xdata/xpddefault.c
@@ -882,9 +882,6 @@ int xpddefault_process_service_perfdata_file(void){
 	if(early_timeout==TRUE)
 		logit(NSLOG_RUNTIME_WARNING,TRUE,"Warning: Service performance data file processing command '%s' timed out after %d seconds\n",processed_command_line,xpddefault_perfdata_timeout);
 
-	/* re-open the performance data file */
-	xpddefault_open_service_perfdata_file();
-
 	/* free memory */
 	my_free(raw_command_line);
 	my_free(processed_command_line);





More information about the icinga-checkins mailing list