I just got perfdata working so I'm logging 3 server loads. The /var/service-perfdata file is looking good. I've changed the format around a little as well.
I've been having trouble trying to process the perfdata files. I've tried using process-service-perfdata-file-bulk and process-service-perfdata-file-pnp-bulk. No files seem to be stored in /var/spool/perfdata or /var/spool/xidpe. I changed the processing interval to 5 seconds, and I can see the file in spool/perfdata temporarily show up and then disappear. Regardless, the var/service-perfdata file grows continuously.
Also, my performance graphs on XI have stopped logging data. They started working last Friday for a couple of hours and have not logged data since. I'm not sure what is the cause. Are these two issues related? Any ideas on either of these issues?
Nagios.cfg performance data settings:
-----------------------------
Code: Select all
# PNP settings - bulk mode with NCPD
process_performance_data=1
# service performance data
service_perfdata_file=/usr/local/nagios/var/service-perfdata
service_perfdata_file_template=$SHORTDATETIME$\t$HOSTNAME$\$SERVICEDESC$\tData:$SERVICEPERFDATA$\nCommand:$SERVICECHECKCOMMAND$\tState:$HOSTSTATE$\tStateType:$HOSTSTATETYPE$\tServiceState:$SERVICESTATE$\tServiceStateType:$SERVICESTATETYPE$\tOutput:$SERVICEOUTPUT$\n
service_perfdata_file_mode=a
service_perfdata_file_processing_interval= 30
service_perfdata_file_processing_command= process-service-perfdata-file-pnp-bulk
#host performance data
host_perfdata_file=/usr/local/nagios/var/host-perfdata
host_perfdata_file_template=$SHORTDATETIME$\t$HOSTNAME$\tHostPerfData:$HOSTPERFDATA$\tCommand:$HOSTCHECKCOMMAND$\nState:$HOSTSTATE$\tStateType:$HOSTSTATETYPE$\tOutput:$HOSTOUTPUT$\n
host_perfdata_file_mode=a
host_perfdata_file_processing_interval= 30
host_perfdata_file_processing_command=process-host-perfdata-file-pnp-bulk