Trouble logging performance data

Raphaël 'SurcouF' Bordet surcouf at debianfr.net
Wed Dec 21 14:49:15 CET 2005


Le mercredi 21 décembre 2005 à 10:43 +0100, Matija Grabnar a écrit :
> I can't seem to get nagios to log performance data.
> I tried compiling nagios with --with-default-perfdata and 
> --with-file-perfdata
> separately and together.
> 
> My nagios.cfg file contains the statements:
> 
> process_performance_data=1
> 
> host_perfdata_command=process-host-perfdata
> 
> service_perfdata_command=process-service-perfdata
> 
> and
> xpdfile_host_perfdata_template=$TIMET$\t$HOSTNAME$\t$OUTPUT$\t$PERFDATA$\t$EXECUTIONTIME$
> 
> xpdfile_service_perfdata_template=$TIMET$\t$HOSTNAME$\t$SERVICEDESC$\t$OUTPUT$\t$PERFDATA$\t$EXECUTIONTIME$
> 
> xpdfile_host_perfdata_file=/opt/nagios/var/hostperf.log
> xpdfile_service_perfdata_file=/opt/nagios/var/serviceperf.log
> 
> The files got created, but nothing ever gets written there. I MUST be 
> missing something basic.
> What do I need to do to get performance data written somewhere?

Do you have defined any "process_perf_data" option to "1" for your
services, by using template or not ?
You must define this option for each service or host you want to process
performance datas.
You've also defined somes "xpdfile_*" options, so I expect you've
recompiled nagios with --with-file-perfdata support option.

Regards,

-- 
Raphaël 'SurcouF' Bordet 
http://debianfr.net/ | JID: surcouf at debianfr dot net

-- 
Raphaël 'SurcouF' Bordet 
http://debianfr.net/ | JID: surcouf at debianfr dot net

-- 
Raphaël 'SurcouF' Bordet 
http://debianfr.net/ | JID: surcouf at debianfr dot net




-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_idv37&alloc_id865&op=click
_______________________________________________
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