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)
Perfdata
Re: Perfdata
Is there perfdata being returned by your ping plugin? Can you run the plugin with the exact flags Nagios is using to run it?
Nicholas Scott
Former Nagios employee
Former Nagios employee
-
pompelmoes
- Posts: 6
- Joined: Fri Aug 03, 2012 6:31 am
Re: Perfdata
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".
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".
-
pompelmoes
- Posts: 6
- Joined: Fri Aug 03, 2012 6:31 am
Re: Perfdata
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
nagios.cfg
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
}
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