perfdata problems

Vogel, Jochen (extern) jochen.vogel.extern at activest.de
Tue Jul 26 18:36:33 CEST 2005


hello,

i use nagios 1.x and try to use perfdata but it doesnt work.
i compiled nagios with --with-default-perfdata.

------------------
nagios.cfg

perfdata_timeout=5
process_performance_data=1
#host_perfdata_command=process-host-perfdata

service_perfdata_command=process-service-perfdata

--------------------
commands.cfg

define command{
        command_name    process-host-perfdata
        command_line    /bin/echo -e
"$LASTCHECK$\t$HOSTNAME$\t$HOSTSTATE$\t$HOSTATTEMPT$\t$STATETYPE$\t$EXEC
UTIONTIME$\t$OUTPUT$\t$PERFDATA$" >> /tmp/host-perfdata
        }

define command{
        command_name    process-service-perfdata
        command_line    /bin/echo -e
"$LASTCHECK$\t$HOSTNAME$\t$SERVICEDESC$\t$SERVICESTATE$\t$SERVICEATTEMPT
$\t$STATETYPE$\t$EXECUTIONTIME$\t$LATENCY$\t$OUTPUT$\t$PERFDATA$" >>
/tmp/service-perfdata
        }

------------------
[root at am02nag libexec]# ./check_ping -H 213.61.74.50 25 60 50.0 100.0 -p
5
PING OK - Packet loss = 0%, RTA = 0.86 ms

------------------
[root at am02nag libexec]# tail -5 /tmp/service-perfdata 
1122395658      am02taix4       PING    OK      1       HARD    4
0       PING OK - Packet loss = 0%, RTA = 0.32 ms
1122395658      amc211  PING    OK      1       HARD    4       0
PING OK - Packet loss = 0%, RTA = 0.16 ms
1122395662      prodwww3        HTTPD   OK      1       HARD    0
0       11 processes named httpd running
1122395658      viruswall       PING    OK      1       HARD    4
0       PING OK - Packet loss = 0%, RTA = 0.95 ms
1122395658      am01dat PING    OK      1       HARD    4       0
PING OK - Packet loss = 0%, RTA = 0.96 ms

any idea?
thanks for help
jochen


-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_idt77&alloc_id492&op=click
_______________________________________________
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