Having issue with process-service-perfdata running too long

Frost, Mark {PBG} mark.frost1 at pepsi.com
Thu Apr 12 16:30:29 CEST 2007


I hadn't really had to pay attention to the perfdata file before.  From
looking at the contents of my perfdata file, it looks like it would
normally be cleared or truncated or whatever Nagios does on its own
perhaps daily.  The old data in the file was only about 24 hours old.
Looking at the file today, I see it's still growing.
 
Now that someone else is reporting this problem after going to 2.9, I'm
suspicious of a bug in 2.9.   The only thing I saw in the changelog
relating to this file was:
 
*	Fix for incorrect performance data file write/append mode
options
 
Perhaps there's a relationship.
 
Mark
 


________________________________

	From: Einar Indridason [mailto:einar.indrida at gmail.com] 
	Sent: Thursday, April 12, 2007 9:31 AM
	To: Frost, Mark {PBG}
	Cc: nagios-users at lists.sourceforge.net
	Subject: Re: [Nagios-users] Having issue with
process-service-perfdata running too long
	
	

	On 4/11/07, Frost, Mark {PBG} <mark.frost1 at pepsi.com> wrote: 


		Hello.  I'm running Nagios 2.9 with Nagiosgraph 0.8.2.
This combination
		has worked well for us for a while now.
		
		My perdata file has grown rather large:
		
		$ wc -l perfdata.log
		817880 perfdata.log 
		

	 

		I like keeping the historical data, but I guess that
would mean my 
		perdata file would grow infinitely large.  I don't see
any option in
		nagios.cfg that controls how much data stays in the
perfdata.log file
		(i.e. a retention interval for data contained therein).
Maybe I missed 
		it somewhere.
		
		So it's starting to seem like I should trim this file
somehow myself,
		but I'm not sure how to go about that.
		
		What's odd is that Nagios did this processing for me
fine up until 
		yesterday.  I have not added any new hosts since
yesterday.  I can't
		imagine that this ran anywhere near 5 seconds prior to
yesterday but it
		still worked.  My config file is the same.  However, I
did upgrade to 
		Nagios 2.9 yesterday.



	I have the same, or similar report.  I was (and currently am)
running Nagios 2.8, and the services-perf log file is created, added to,
and eventually sent to a "process the perf data" (nagiosgraph 0.7 with
some local add-ons).  
	Then, I updated nagios to 2.9, and suddenly the perf-log file
just got bigger, and bigger, and bigger, and bigger... and no
services-performance processing was done, until the available diskspace
(20MB all in all - stored on a ramdisk) was full, Nagios 2.9 then kept
on running, but didn't have any meaningful informations available
through the cgi's... (as the status.dat file is also stored on that
ramdisk).
	
	Cheers,
	--
	EinarI
	
	ps: my current perf settings (both for 2.8, which worked, and
for 2.9, which didn't) are:
	
	perfdata_timeout=60
	process_performance_data=1
	
host_perfdata_file=/usr/local/nagios/var/status.dir/host_perfdata.log
	
service_perfdata_file=/usr/local/nagios/var/status.dir/service_perfdata.
log 
	
host_perfdata_file_template=[HOSTPERFDATA]\t$TIMET$\t$HOSTNAME$\t$HOSTEX
ECUTIONTIME$\t$HOSTOUTPUT$\t$HOSTPERFDATA$
	
service_perfdata_file_template=$LASTSERVICECHECK$||$HOSTNAME$||$SERVICED
ESC$||$SERVICEOUTPUT$||$SERVICEPERFDATA$ 
	host_perfdata_file_mode=a
	service_perfdata_file_mode=a
	host_perfdata_file_processing_interval=0
	service_perfdata_file_processing_interval=300
	
service_perfdata_file_processing_command=process-service-perfdata 
	
	

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-lists.org/archive/users/attachments/20070412/9b53b6cc/attachment.html>
-------------- next part --------------
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
-------------- next part --------------
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. 
::: Messages without supporting info will risk being sent to /dev/null


More information about the Users mailing list