Perf Data Issue
Paul Wilson
paulalexwilson at gmail.com
Thu Jan 24 18:31:33 CET 2008
Hi All,
Firstly, thanks for everyone involved with Nagios, its a fantastic
piece of softwarel!
My problem is that I cannot enable performance data from my monitors.
I'm running the latest version of nagios2 which I downloaded a week
ago, and compiled it with the default perfdata setting.
I have also installed pnp successfully, however it tells me that there
are no valid rrdfiles in the given host's directory.
I've set up the follow configuration options in my nagios.cfg:
process_performance_data=1
host_perfdata_command=process-host-perfdata
service_perfdata_command=process-service-perfdata
And in my commands.cfg
define command {
command_name process-host-perfdata
# command_line /usr/bin/perl
/usr/local/nagios/libexec/process_perfdata.pl -d HOSTPERFDATA
command_line /bin/echo -e
"$LASTCHECK$\t$HOSTNAME$\t$HOSTSTATE$\t$HOSTATTEMPT$\t$STATETYPE$\t$EXECUTIONTIME$\t$OUTPUT$\t$PERFDATA$"
>> /usr/local/nagios/var/host-perfdata
Notice I've commented out the process_perfata.pl line in favour of a
simple echo to a file, just for testing.
I have also restarted the nagios process to take into account my changes.
I have a host set up to monitor with the check_icmp command:
-rwsr-xr-x 1 root root 30524 2007-10-22 15:17 check_icmp
A simple check determines that it's returning performance data:
./check_icmp -H 128.1.2.181
OK - 128.1.2.181: rta 0.451ms, lost
0%|rta=0.451ms;200.000;500.000;0; pl=0%;40;80;;
And the service command looks like:
define service{
use generic-service
host_name Virgin.Invader ; All our
boxes are named after trains
service_description ICMP Echo Stats
check_command check_icmp
}
Within Nagios I get the status printed without problems, but no
/usr/local/nagios/var/host-perfdata exists.
I've checked books and online articles for a solution but I guess I
must be doing something fundimentally wrong.
Any help would be massively appreciated!?
Thanks,
Paul
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
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