Can't get process_performance_data working

h.baecker at ecofis.de h.baecker at ecofis.de
Thu Jul 1 12:04:21 CEST 2004


Hi,

if you have a file in /tmp called I-WAS-HERE it works as designed, but a 
little bit more efficent is perhaps something like this:

define command{
        command_name    process-host-perfdata
        command_line    /usr/bin/printf 
"$HOSTNAME$\t$HOSTSTATE$\t$HOSTATTEMPT$\t$STATETYPE$\t$EXECUTIONTIME$\t$PERFDATA$\n" 
>> /tmp/host-perfdata
        }
define command{
        command_name    process-service-perfdata
        command_line    /usr/bin/printf 
"$HOSTNAME$\t$SERVICEDESC$\t$SERVICESTATE$\t$SERVICEATTEMPT$\t$STATETYPE$\t-E-$EXECUTIONTIME$\t-L-$LATENCY$\t$PERFDATA
$\n" >> /tmp/service-perfdata
        }

I added some -E- and -L- in the printf's to see which is the execution and 
the latency time, do whatever you want to...

regards
Hendrik


Gebhardt Thomas <gebhardt at hrz.uni-marburg.de> 
Sent by: nagios-users-admin at lists.sourceforge.net
01.07.2004 11:42

To
nagios-users at lists.sourceforge.net
cc

Subject
[Nagios-users] Can't get process_performance_data working






Hi,

I've a problem getting process_performance_data working. Nagios
seems not to start the host_perfdata_command/service_perfdata_command
script.

I'm using nagios 1.2 from debian (also tried with a self compiled
version with --with-default-perfdata explicitely configured: still
does not work.)

My config:

process_performance_data=1
host_perfdata_command=process-host-perfdata
service_perfdata_command=process-service-perfdata
   in nagios.cfg

process_perf_data               1       ; Process performance data
  in the services.cfg template

and 

# 'process-service-perfdata' command definition
define command{
        command_name    process-service-perfdata
        command_line    /bin/touch /tmp/I_WAS_HERE
        }
in misccommand.cfg

Obviuosly I missed something. Any hints?

Thanks, Thomas


-------------------------------------------------------
This SF.Net email sponsored by Black Hat Briefings & Training.
Attend Black Hat Briefings & Training, Las Vegas July 24-29 - 
digital self defense, top technical experts, no vendor pitches, 
unmatched networking opportunities. Visit www.blackhat.com
_______________________________________________
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

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-lists.org/archive/users/attachments/20040701/7a7dc222/attachment.html>


More information about the Users mailing list