Trouble logging performance data
Matija Grabnar
matija.grabnar at arnes.si
Wed Dec 21 10:43:03 CET 2005
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?
Oh, yeah, the commands are defined:
define command{
command_name process-host-perfdata
command_line /usr/bin/printf "%b"
"$LASTCHECK$\t$HOSTNAME$\t$HOSTSTATE$\t$HOSTATTEMPT$\t$STATETYPE$\t$EXECUTIONTIME$\t$OUTPUT$\t$PERFDATA$"
>> /opt/nagios/var/host-perfdata.out_nag
}
# 'process-service-perfdata' command definition
define command{
command_name process-service-perfdata
command_line /usr/bin/printf "%b"
"$LASTCHECK$\t$HOSTNAME$\t$SERVICEDESC$\t$SERVICESTATE$\t$SERVICEATTEMPT$\t$STATETYPE$\t$EXECUTIONTIME$\t$LATENCY$\t$OUTPUT$\t$PERFDATA$"
>> /opt/nagios/var/service-perfdata.out_nag
}
The file permissions appear correct. I'm out of ideas.
-------------------------------------------------------
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_id=7637&alloc_id=16865&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