Problem with Performance data since upgrade to Nagois 2

John Stevens jstevensog at gmail.com
Thu May 4 15:56:59 CEST 2006


Hi All,
I am have rcently upgraded my nagios from 1.3 to 2.2, and am having trouble
with nagiosgraph's insert.pl ever since.  If I set up my
process-service-perfdata command like so:
define command{
        command_name    process-service-perfdata
        command_line    /usr/bin/printf "%b\n"
"$LASTSERVICECHECK$||$HOSTNAME$||$SERVICEDESC$||$SERVICEOUTPUT$||$SERVICEPERFDATA$"
>>/var/log/nagios/service-perfdata.out
        }

I get lovely lines of perfomance data, and can run these lines as a
parameter to the insert.pl script like so and it logs the data in the
appropriate rrd, and nagiosgraph.log (logging is turned on in the script).
sudo -u nagios /path/to/insert.pl "1146750185||printer||PING||OK -
192.168.0.200: rta 27.302ms, lost 0%||rta=27.302ms;100.000;500.000;0;
pl=0%;20;60;;"

or
su - nagios
/path/to/insert.pl "1146750185||printer||PING||OK - 192.168.0.200: rta
27.302ms, lost 0%||rta=27.302ms;100.000;500.000;0; pl=0%;20;60;;"

However, with my process-service-perfdata command set to this:
define command{
        command_name    process-service-perfdata
        command_line    /usr/lib/nagios/nagiosgraph/insert.pl
"$LASTSERVICECHECK$||$HOSTNAME$||$SERVICEDESC$||$SERVICEOUTPUT$||$SERVICEPERFDATA$"
        }

no rrds are updated, and nothing appears in the nagiosgraph.log.

Firstly, has anyone had a similar problem with performance data in general,
and secondly, can anyone see anything obviously wrong in what I have done?
Googling has gotten me nowhere, the manual has put me on the right track in
a lot of ways, but I can't fathom why the script is, apparently, not being
run by the daemon.

Thanks in advance.
John
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-lists.org/archive/users/attachments/20060504/abf7f67f/attachment.html>


More information about the Users mailing list