Performance Data not working since upgrade to 2.2. Please Help

John Stevens jstevensog at gmail.com
Thu May 11 01:14:09 CEST 2006


Hi All,
This is a resend of a mail, that appears not to have made it to the list.

I am have recently 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).
Also, I see the checks appear in the nagios log, as I have logging turned on
in nagios.

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, which is the
same as I had it in 1.3:
define command{
        command_name    process-service-perfdata
        command_line    /usr/lib/nagios/nagiosgraph/insert.pl
"$LASTSERVICECHECK$||$HOSTNAME$||$SERVICEDESC$||$SERVICEOUTPUT$||$SERVICEPERFDATA$"

        }

no rrds are updated, nothing appears in the nagiosgraph.log, and nothing
appears in the nagios log, but nagios still updates all the statuses.

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, or dying off and killing messages going into the nagios
log.

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


More information about the Users mailing list