Performance data.
Pierre Wallemacq
pierrew at belnet.be
Thu Oct 30 11:16:33 CET 2003
I am trying to use nagios to gather performance data. Therefore I updated some
plugins to collect perfomance data.
For example:
./check_juniper_env -c community_string --temp 50:80 --load 50:80 router
Problems with:<BR>Temperature: MCS 0 : 50 °C<BR> | Temp: min (9.2.0,28)#av
(41.5813953488372)#max (12.1.0,50);CPU: SFM 1 SPP : 30# SFM 1 SPR Internet
Processor II : 30# SFM 3 SPR Internet Processor II : 32# Routing Engine 0 :
19# SFM 0 SPR Internet Processor II : 27# SFM 2 SPP : 18# SFM 0 SPP : 27# SFM
3 SPP : 32# SFM 2 SPR Internet Processor II : 18# Routing Engine 1 : 19
I also recompiled nagios with the --with-file-perfdata file.
I also modified nagios.cfg as follows :
process_performance_data=1
xpdfile_host_perfdata_file=/var/log/nagios/hostperf.log
xpdfile_host_perfdata_template=$TIMET$\t$HOSTNAME$\t$OUTPUT$\t$PERFDATA$
xpdfile_service_perfdata_file=/var/log/nagios/serviceperf.log
xpdfile_service_perfdata_template=$TIMET$\t$HOSTNAME$\t$SERVICEDESC$\t$OUTPUT$\t$PERFDATA$
I also changed my templates to set :
process_perf_data 1
But when I restart nagios the log files are indeed created but
in hostperf.log I see things like:
1067506384 Interxion.bnix.net PING OK - Packet loss = 0%, RTA = 0.78
ms
but the other file remains empty ?
How can I be sure that indeed nagios is compiled to use --with-file-perfdata?
How can check what's hapening, and why no perfomance data are logged?
Using the web interface, I see in the process information :
Process Performance Data = yes for the services.
and on the process page:
Performance Data Being Processed? Yes
Thank you,
Pierre
-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive? Does it
help you create better code? SHARE THE LOVE, and help us help
YOU! Click Here: http://sourceforge.net/donate/
_______________________________________________
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