Page 1 of 1

Perfdata

Posted: Fri Aug 03, 2012 6:36 am
by pompelmoes
Dear Nagios Users

I recently imigrated a nagios server to a newer version on an other machine.
I took over all config files and everything runs fine.

However I see that there is no perfdata being created from my windows servers (only ping) while every service uses the template generic-service (I enabled the perf data = 1 here).

So for some reason im not getting Perfdata of all my services ? (It looks like I only get perfdata from services where I create graphs from)

Re: Perfdata

Posted: Fri Aug 03, 2012 9:31 am
by nscott
Is there perfdata being returned by your ping plugin? Can you run the plugin with the exact flags Nagios is using to run it?

Re: Perfdata

Posted: Sat Aug 04, 2012 3:12 am
by pompelmoes
Yes there is being ping perfdata being returned by my plugins.
The weird thing is I only get perfdata information from things where I want to create graphs from.
So all the rest isnt showing up in the perfdata-file. Although every service has the generic-service template where I have put the Perfdata on 1.

Is there any other way to create perfdata except using the "perfdata 1" method in the generic template?
I have tried to put in my service an extra setting "perfdata 1".

Re: Perfdata

Posted: Mon Aug 06, 2012 6:14 am
by pompelmoes
Hi

Well every check works fine. It is just that only my linux template services are returning perf data. The windows template services only show their ping and http requests.
Both templates use generic template (I put the process perf data on 1).

I thought Nagios would put every single service performance data to the perfdata.log file but he doens't. For some reason it won't show other perfdata. (I feel like it is only showing everything that is getting graphed)

Is there any filter option that you can configure why nagios won't show data into perfdata.log ?
I just want every single service getting logged in the perfdata.log, how come it doens't ? :(

command.cfg

Code: Select all

define command {
        command_name                    process-host-perfdata
        command_line                    /bin/echo "$LASTHOSTCHECK$\t$HOSTNAME$\t$HOSTSTATE$\t$HOSTATTEMPT$\t$HOSTST$
        register                        1
}

define command {
        command_name                    process-service-perfdata
        command_line                    /usr/bin/perl $USER1$/insert.pl
        register                        1
}

nagios.cfg

Code: Select all

[bart@VMMON01 nagios]$ grep perf nagios.cfg | grep -v ^#
perfdata_timeout=5
process_performance_data=1
service_perfdata_file=/var/log/nagios/perfdata.log
service_perfdata_file_template=$LASTSERVICECHECK$||$HOSTNAME$||$SERVICEDESC$||$SERVICEOUTPUT$||$SERVICEPERFDATA$
service_perfdata_file_mode=a
service_perfdata_file_processing_interval=30
service_perfdata_file_processing_command=process-service-perfdata