NAGIOSGRAPH not graphing

Eric Chatham echatham at broadvox.net
Tue Apr 14 20:16:59 CEST 2009


This seems to be the only fix that is working right now.  I still don't know why the graphs don't poll any data "like they should."  I have to setup a 5 min cronjob to do the insert.pl and I have to restart Nagios for the perfdata to regenerate new data to perfdata.log.  I hate to be a pest, but *someone* has to know how to fix this problem!

[root@ ~ nagiosgraph]# crontab -l
# Nagiosgraph
*/5 * * * * /usr/bin/perl /opt/nagios/nagiosgraph/lib/insert.pl; /etc/init.d/nagios restart > /dev/null 2>&1

-----Original Message-----
From: Cron Daemon [mailto:root@ ~ .net]
Sent: Tuesday, April 14, 2009 14:00
To: root@ ~ .net
Subject: Cron <root@ ~ > /usr/bin/perl /opt/nagios/nagiosgraph/lib/insert.pl; /etc/init.d/nagios restart

Use of uninitialized value in string eq at (eval 1) line 219.
Use of uninitialized value in string eq at (eval 1) line 219.
Use of uninitialized value in string eq at (eval 1) line 219.
Use of uninitialized value in string eq at (eval 1) line 219.
Use of uninitialized value in string eq at (eval 1) line 219.
Use of uninitialized value in string eq at (eval 1) line 219.
Use of uninitialized value in string eq at (eval 1) line 219.
Use of uninitialized value in string eq at (eval 1) line 219.
Use of uninitialized value in string eq at (eval 1) line 219.
Use of uninitialized value in string eq at (eval 1) line 219.
Use of uninitialized value in string eq at (eval 1) line 219.
Use of uninitialized value in string eq at (eval 1) line 219.
Use of uninitialized value in string eq at (eval 1) line 219.
Use of uninitialized value in string eq at (eval 1) line 219.
Use of uninitialized value in string eq at (eval 1) line 219.
Use of uninitialized value in string eq at (eval 1) line 219.
Use of uninitialized value in string eq at (eval 1) line 219.
Use of uninitialized value in string eq at (eval 1) line 219.
Use of uninitialized value in string eq at (eval 1) line 219.
Use of uninitialized value in string eq at (eval 1) line 219.
Use of uninitialized value in string eq at (eval 1) line 219.
Use of uninitialized value in string eq at (eval 1) line 219.
Use of uninitialized value in string eq at (eval 1) line 219.
Running configuration check...done.
Stopping nagios: done.
Starting nagios: done.

Eric Chatham

-----Original Message-----
From: Eric Chatham [mailto:echatham at broadvox.net]
Sent: Friday, March 20, 2009 18:14
To: Sergio Ariel; nagios-users
Subject: Re: [Nagios-users] NAGIOSGRAPH not graphing

I've done that too - with and without the perfdata in the command.  I also noticed that when I updated a host today, the graphs all had data for an instance and, then, nothing.  Unfortunately, I'm rather new to Linux and know nothing of perl and how this is constructed.  I've looked at the guts of this program over and over again to find my own f*** ups.

If I just run the insert.pl without the perfdata, I get the concatenation errors (probably since it's looking for the parameters like the one listed in commands.cfg - as in command_line of process-service-perfdata).  The perfdata file also gets wiped out if I run insert.pl naked.  I have to restart Nagios to renew the perfdata file:

When I include the parameters for insert.pl, I get the output below.

/usr/bin/perl /usr/local/lib/Nagios/insert.pl "1237580865 || reach_media || PING || 4.062 || 0.067 || PING OK - Packet loss = 0%, RTA = 46.26 ms"

The entire output:

flock() on unopened filehandle LOG at /etc/nagios/nagiosgraph/ngshared.pm line 81, <FH> line 13.
print() on unopened filehandle LOG at /etc/nagios/nagiosgraph/ngshared.pm line 82, <FH> line 13.
flock() on unopened filehandle LOG at /etc/nagios/nagiosgraph/ngshared.pm line 83, <FH> line 13.
flock() on unopened filehandle LOG at /etc/nagios/nagiosgraph/ngshared.pm line 81, <FH> line 37.
print() on unopened filehandle LOG at /etc/nagios/nagiosgraph/ngshared.pm line 82, <FH> line 37.
flock() on unopened filehandle LOG at /etc/nagios/nagiosgraph/ngshared.pm line 83, <FH> line 37.
flock() on unopened filehandle LOG at /etc/nagios/nagiosgraph/ngshared.pm line 81, <FH> line 40.
print() on unopened filehandle LOG at /etc/nagios/nagiosgraph/ngshared.pm line 82, <FH> line 40.
flock() on unopened filehandle LOG at /etc/nagios/nagiosgraph/ngshared.pm line 83, <FH> line 40.
flock() on unopened filehandle LOG at /etc/nagios/nagiosgraph/ngshared.pm line 81, <FH> line 43.
print() on unopened filehandle LOG at /etc/nagios/nagiosgraph/ngshared.pm line 82, <FH> line 43.
flock() on unopened filehandle LOG at /etc/nagios/nagiosgraph/ngshared.pm line 83, <FH> line 43.
flock() on unopened filehandle LOG at /etc/nagios/nagiosgraph/ngshared.pm line 81, <FH> line 46.
print() on unopened filehandle LOG at /etc/nagios/nagiosgraph/ngshared.pm line 82, <FH> line 46.
flock() on unopened filehandle LOG at /etc/nagios/nagiosgraph/ngshared.pm line 83, <FH> line 46.
flock() on unopened filehandle LOG at /etc/nagios/nagiosgraph/ngshared.pm line 81, <FH> line 52.
print() on unopened filehandle LOG at /etc/nagios/nagiosgraph/ngshared.pm line 82, <FH> line 52.
flock() on unopened filehandle LOG at /etc/nagios/nagiosgraph/ngshared.pm line 83, <FH> line 52.
flock() on unopened filehandle LOG at /etc/nagios/nagiosgraph/ngshared.pm line 81, <FH> line 55.
print() on unopened filehandle LOG at /etc/nagios/nagiosgraph/ngshared.pm line 82, <FH> line 55.
flock() on unopened filehandle LOG at /etc/nagios/nagiosgraph/ngshared.pm line 83, <FH> line 55.
flock() on unopened filehandle LOG at /etc/nagios/nagiosgraph/ngshared.pm line 81, <FH> line 62.
print() on unopened filehandle LOG at /etc/nagios/nagiosgraph/ngshared.pm line 82, <FH> line 62.
flock() on unopened filehandle LOG at /etc/nagios/nagiosgraph/ngshared.pm line 83, <FH> line 62.
flock() on unopened filehandle LOG at /etc/nagios/nagiosgraph/ngshared.pm line 81, <FH> line 70.
print() on unopened filehandle LOG at /etc/nagios/nagiosgraph/ngshared.pm line 82, <FH> line 70.
flock() on unopened filehandle LOG at /etc/nagios/nagiosgraph/ngshared.pm line 83, <FH> line 70.
flock() on unopened filehandle LOG at /etc/nagios/nagiosgraph/ngshared.pm line 81, <FH> line 73.
print() on unopened filehandle LOG at /etc/nagios/nagiosgraph/ngshared.pm line 82, <FH> line 73.
flock() on unopened filehandle LOG at /etc/nagios/nagiosgraph/ngshared.pm line 83, <FH> line 73.
flock() on unopened filehandle LOG at /etc/nagios/nagiosgraph/ngshared.pm line 81, <FH> line 85.
print() on unopened filehandle LOG at /etc/nagios/nagiosgraph/ngshared.pm line 82, <FH> line 85.
flock() on unopened filehandle LOG at /etc/nagios/nagiosgraph/ngshared.pm line 83, <FH> line 85.
flock() on unopened filehandle LOG at /etc/nagios/nagiosgraph/ngshared.pm line 81, <FH> line 86.
print() on unopened filehandle LOG at /etc/nagios/nagiosgraph/ngshared.pm line 82, <FH> line 86.
flock() on unopened filehandle LOG at /etc/nagios/nagiosgraph/ngshared.pm line 83, <FH> line 86.
flock() on unopened filehandle LOG at /etc/nagios/nagiosgraph/ngshared.pm line 81, <FH> line 89.
print() on unopened filehandle LOG at /etc/nagios/nagiosgraph/ngshared.pm line 82, <FH> line 89.
flock() on unopened filehandle LOG at /etc/nagios/nagiosgraph/ngshared.pm line 83, <FH> line 89.
flock() on unopened filehandle LOG at /etc/nagios/nagiosgraph/ngshared.pm line 81, <FH> line 90.
print() on unopened filehandle LOG at /etc/nagios/nagiosgraph/ngshared.pm line 82, <FH> line 90.
flock() on unopened filehandle LOG at /etc/nagios/nagiosgraph/ngshared.pm line 83, <FH> line 90.
flock() on unopened filehandle LOG at /etc/nagios/nagiosgraph/ngshared.pm line 81, <FH> line 101.
print() on unopened filehandle LOG at /etc/nagios/nagiosgraph/ngshared.pm line 82, <FH> line 101.
flock() on unopened filehandle LOG at /etc/nagios/nagiosgraph/ngshared.pm line 83, <FH> line 101.
flock() on unopened filehandle LOG at /etc/nagios/nagiosgraph/ngshared.pm line 81, <FH> line 104.
print() on unopened filehandle LOG at /etc/nagios/nagiosgraph/ngshared.pm line 82, <FH> line 104.
flock() on unopened filehandle LOG at /etc/nagios/nagiosgraph/ngshared.pm line 83, <FH> line 104.
flock() on unopened filehandle LOG at /etc/nagios/nagiosgraph/ngshared.pm line 81, <FH> line 108.
print() on unopened filehandle LOG at /etc/nagios/nagiosgraph/ngshared.pm line 82, <FH> line 108.
flock() on unopened filehandle LOG at /etc/nagios/nagiosgraph/ngshared.pm line 83, <FH> line 108.
flock() on unopened filehandle LOG at /etc/nagios/nagiosgraph/ngshared.pm line 81, <FH> line 112.
print() on unopened filehandle LOG at /etc/nagios/nagiosgraph/ngshared.pm line 82, <FH> line 112.
flock() on unopened filehandle LOG at /etc/nagios/nagiosgraph/ngshared.pm line 83, <FH> line 112.
flock() on unopened filehandle LOG at /etc/nagios/nagiosgraph/ngshared.pm line 81, <FH> line 117.
print() on unopened filehandle LOG at /etc/nagios/nagiosgraph/ngshared.pm line 82, <FH> line 117.
flock() on unopened filehandle LOG at /etc/nagios/nagiosgraph/ngshared.pm line 83, <FH> line 117.
flock() on unopened filehandle LOG at /etc/nagios/nagiosgraph/ngshared.pm line 81, <FH> line 138.
print() on unopened filehandle LOG at /etc/nagios/nagiosgraph/ngshared.pm line 82, <FH> line 138.
flock() on unopened filehandle LOG at /etc/nagios/nagiosgraph/ngshared.pm line 83, <FH> line 138.
flock() on unopened filehandle LOG at /etc/nagios/nagiosgraph/ngshared.pm line 81, <FH> line 139.
print() on unopened filehandle LOG at /etc/nagios/nagiosgraph/ngshared.pm line 82, <FH> line 139.
flock() on unopened filehandle LOG at /etc/nagios/nagiosgraph/ngshared.pm line 83, <FH> line 139.
flock() on unopened filehandle LOG at /etc/nagios/nagiosgraph/ngshared.pm line 81, <FH> line 140.
print() on unopened filehandle LOG at /etc/nagios/nagiosgraph/ngshared.pm line 82, <FH> line 140.
flock() on unopened filehandle LOG at /etc/nagios/nagiosgraph/ngshared.pm line 83, <FH> line 140.
flock() on unopened filehandle LOG at /etc/nagios/nagiosgraph/ngshared.pm line 81, <FH> line 141.
print() on unopened filehandle LOG at /etc/nagios/nagiosgraph/ngshared.pm line 82, <FH> line 141.
flock() on unopened filehandle LOG at /etc/nagios/nagiosgraph/ngshared.pm line 83, <FH> line 141.
flock() on unopened filehandle LOG at /etc/nagios/nagiosgraph/ngshared.pm line 81, <FH> line 144.
print() on unopened filehandle LOG at /etc/nagios/nagiosgraph/ngshared.pm line 82, <FH> line 144.
flock() on unopened filehandle LOG at /etc/nagios/nagiosgraph/ngshared.pm line 83, <FH> line 144.
flock() on unopened filehandle LOG at /etc/nagios/nagiosgraph/ngshared.pm line 81, <FH> line 145.
print() on unopened filehandle LOG at /etc/nagios/nagiosgraph/ngshared.pm line 82, <FH> line 145.
flock() on unopened filehandle LOG at /etc/nagios/nagiosgraph/ngshared.pm line 83, <FH> line 145.
flock() on unopened filehandle LOG at /etc/nagios/nagiosgraph/ngshared.pm line 81, <FH> line 146.
print() on unopened filehandle LOG at /etc/nagios/nagiosgraph/ngshared.pm line 82, <FH> line 146.
flock() on unopened filehandle LOG at /etc/nagios/nagiosgraph/ngshared.pm line 83, <FH> line 146.
flock() on unopened filehandle LOG at /etc/nagios/nagiosgraph/ngshared.pm line 81, <FH> line 147.
print() on unopened filehandle LOG at /etc/nagios/nagiosgraph/ngshared.pm line 82, <FH> line 147.
flock() on unopened filehandle LOG at /etc/nagios/nagiosgraph/ngshared.pm line 83, <FH> line 147.
flock() on unopened filehandle LOG at /etc/nagios/nagiosgraph/ngshared.pm line 81, <FH> line 150.
print() on unopened filehandle LOG at /etc/nagios/nagiosgraph/ngshared.pm line 82, <FH> line 150.
flock() on unopened filehandle LOG at /etc/nagios/nagiosgraph/ngshared.pm line 83, <FH> line 150.
flock() on unopened filehandle LOG at /etc/nagios/nagiosgraph/ngshared.pm line 81, <FH> line 151.
print() on unopened filehandle LOG at /etc/nagios/nagiosgraph/ngshared.pm line 82, <FH> line 151.
flock() on unopened filehandle LOG at /etc/nagios/nagiosgraph/ngshared.pm line 83, <FH> line 151.
flock() on unopened filehandle LOG at /etc/nagios/nagiosgraph/ngshared.pm line 81, <FH> line 152.
print() on unopened filehandle LOG at /etc/nagios/nagiosgraph/ngshared.pm line 82, <FH> line 152.
flock() on unopened filehandle LOG at /etc/nagios/nagiosgraph/ngshared.pm line 83, <FH> line 152.
flock() on unopened filehandle LOG at /etc/nagios/nagiosgraph/ngshared.pm line 81, <FH> line 153.
print() on unopened filehandle LOG at /etc/nagios/nagiosgraph/ngshared.pm line 82, <FH> line 153.
flock() on unopened filehandle LOG at /etc/nagios/nagiosgraph/ngshared.pm line 83, <FH> line 153.
flock() on unopened filehandle LOG at /etc/nagios/nagiosgraph/ngshared.pm line 81, <FH> line 154.
print() on unopened filehandle LOG at /etc/nagios/nagiosgraph/ngshared.pm line 82, <FH> line 154.
flock() on unopened filehandle LOG at /etc/nagios/nagiosgraph/ngshared.pm line 83, <FH> line 154.
flock() on unopened filehandle LOG at /etc/nagios/nagiosgraph/ngshared.pm line 81, <FH> line 155.
print() on unopened filehandle LOG at /etc/nagios/nagiosgraph/ngshared.pm line 82, <FH> line 155.
flock() on unopened filehandle LOG at /etc/nagios/nagiosgraph/ngshared.pm line 83, <FH> line 155.
flock() on unopened filehandle LOG at /etc/nagios/nagiosgraph/ngshared.pm line 81, <FH> line 156.
print() on unopened filehandle LOG at /etc/nagios/nagiosgraph/ngshared.pm line 82, <FH> line 156.
flock() on unopened filehandle LOG at /etc/nagios/nagiosgraph/ngshared.pm line 83, <FH> line 156.
flock() on unopened filehandle LOG at /etc/nagios/nagiosgraph/ngshared.pm line 81, <FH> line 157.
print() on unopened filehandle LOG at /etc/nagios/nagiosgraph/ngshared.pm line 82, <FH> line 157.
flock() on unopened filehandle LOG at /etc/nagios/nagiosgraph/ngshared.pm line 83, <FH> line 157.
flock() on unopened filehandle LOG at /etc/nagios/nagiosgraph/ngshared.pm line 81, <FH> line 158.
print() on unopened filehandle LOG at /etc/nagios/nagiosgraph/ngshared.pm line 82, <FH> line 158.
flock() on unopened filehandle LOG at /etc/nagios/nagiosgraph/ngshared.pm line 83, <FH> line 158.
flock() on unopened filehandle LOG at /etc/nagios/nagiosgraph/ngshared.pm line 81, <FH> line 162.
print() on unopened filehandle LOG at /etc/nagios/nagiosgraph/ngshared.pm line 82, <FH> line 162.
flock() on unopened filehandle LOG at /etc/nagios/nagiosgraph/ngshared.pm line 83, <FH> line 162.
flock() on unopened filehandle LOG at /etc/nagios/nagiosgraph/ngshared.pm line 81, <FH> line 163.
print() on unopened filehandle LOG at /etc/nagios/nagiosgraph/ngshared.pm line 82, <FH> line 163.
flock() on unopened filehandle LOG at /etc/nagios/nagiosgraph/ngshared.pm line 83, <FH> line 163.
flock() on unopened filehandle LOG at /etc/nagios/nagiosgraph/ngshared.pm line 81, <FH> line 166.
print() on unopened filehandle LOG at /etc/nagios/nagiosgraph/ngshared.pm line 82, <FH> line 166.
flock() on unopened filehandle LOG at /etc/nagios/nagiosgraph/ngshared.pm line 83, <FH> line 166.
flock() on unopened filehandle LOG at /etc/nagios/nagiosgraph/ngshared.pm line 81, <FH> line 167.
print() on unopened filehandle LOG at /etc/nagios/nagiosgraph/ngshared.pm line 82, <FH> line 167.
flock() on unopened filehandle LOG at /etc/nagios/nagiosgraph/ngshared.pm line 83, <FH> line 167.
flock() on unopened filehandle LOG at /etc/nagios/nagiosgraph/ngshared.pm line 81, <FH> line 168.
print() on unopened filehandle LOG at /etc/nagios/nagiosgraph/ngshared.pm line 82, <FH> line 168.
flock() on unopened filehandle LOG at /etc/nagios/nagiosgraph/ngshared.pm line 83, <FH> line 168.
flock() on unopened filehandle LOG at /etc/nagios/nagiosgraph/ngshared.pm line 81, <FH> line 169.
print() on unopened filehandle LOG at /etc/nagios/nagiosgraph/ngshared.pm line 82, <FH> line 169.
flock() on unopened filehandle LOG at /etc/nagios/nagiosgraph/ngshared.pm line 83, <FH> line 169.
flock() on unopened filehandle LOG at /etc/nagios/nagiosgraph/ngshared.pm line 81, <FH> line 170.
print() on unopened filehandle LOG at /etc/nagios/nagiosgraph/ngshared.pm line 82, <FH> line 170.
flock() on unopened filehandle LOG at /etc/nagios/nagiosgraph/ngshared.pm line 83, <FH> line 170.
flock() on unopened filehandle LOG at /etc/nagios/nagiosgraph/ngshared.pm line 81, <FH> line 171.
print() on unopened filehandle LOG at /etc/nagios/nagiosgraph/ngshared.pm line 82, <FH> line 171.
flock() on unopened filehandle LOG at /etc/nagios/nagiosgraph/ngshared.pm line 83, <FH> line 171.
flock() on unopened filehandle LOG at /etc/nagios/nagiosgraph/ngshared.pm line 81, <FH> line 172.
print() on unopened filehandle LOG at /etc/nagios/nagiosgraph/ngshared.pm line 82, <FH> line 172.
flock() on unopened filehandle LOG at /etc/nagios/nagiosgraph/ngshared.pm line 83, <FH> line 172.
flock() on unopened filehandle LOG at /etc/nagios/nagiosgraph/ngshared.pm line 81, <FH> line 173.
print() on unopened filehandle LOG at /etc/nagios/nagiosgraph/ngshared.pm line 82, <FH> line 173.
flock() on unopened filehandle LOG at /etc/nagios/nagiosgraph/ngshared.pm line 83, <FH> line 173.
flock() on unopened filehandle LOG at /etc/nagios/nagiosgraph/ngshared.pm line 81, <FH> line 174.
print() on unopened filehandle LOG at /etc/nagios/nagiosgraph/ngshared.pm line 82, <FH> line 174.
flock() on unopened filehandle LOG at /etc/nagios/nagiosgraph/ngshared.pm line 83, <FH> line 174.
flock() on unopened filehandle LOG at /etc/nagios/nagiosgraph/ngshared.pm line 81, <FH> line 175.
print() on unopened filehandle LOG at /etc/nagios/nagiosgraph/ngshared.pm line 82, <FH> line 175.
flock() on unopened filehandle LOG at /etc/nagios/nagiosgraph/ngshared.pm line 83, <FH> line 175.
flock() on unopened filehandle LOG at /etc/nagios/nagiosgraph/ngshared.pm line 81, <FH> line 176.
print() on unopened filehandle LOG at /etc/nagios/nagiosgraph/ngshared.pm line 82, <FH> line 176.
flock() on unopened filehandle LOG at /etc/nagios/nagiosgraph/ngshared.pm line 83, <FH> line 176.
flock() on unopened filehandle LOG at /etc/nagios/nagiosgraph/ngshared.pm line 81, <FH> line 177.
print() on unopened filehandle LOG at /etc/nagios/nagiosgraph/ngshared.pm line 82, <FH> line 177.
flock() on unopened filehandle LOG at /etc/nagios/nagiosgraph/ngshared.pm line 83, <FH> line 177.
flock() on unopened filehandle LOG at /etc/nagios/nagiosgraph/ngshared.pm line 81, <FH> line 178.
print() on unopened filehandle LOG at /etc/nagios/nagiosgraph/ngshared.pm line 82, <FH> line 178.
flock() on unopened filehandle LOG at /etc/nagios/nagiosgraph/ngshared.pm line 83, <FH> line 178.
flock() on unopened filehandle LOG at /etc/nagios/nagiosgraph/ngshared.pm line 81, <FH> line 179.
print() on unopened filehandle LOG at /etc/nagios/nagiosgraph/ngshared.pm line 82, <FH> line 179.
flock() on unopened filehandle LOG at /etc/nagios/nagiosgraph/ngshared.pm line 83, <FH> line 179.
flock() on unopened filehandle LOG at /etc/nagios/nagiosgraph/ngshared.pm line 81, <FH> line 180.
print() on unopened filehandle LOG at /etc/nagios/nagiosgraph/ngshared.pm line 82, <FH> line 180.
flock() on unopened filehandle LOG at /etc/nagios/nagiosgraph/ngshared.pm line 83, <FH> line 180.
flock() on unopened filehandle LOG at /etc/nagios/nagiosgraph/ngshared.pm line 81, <FH> line 181.
print() on unopened filehandle LOG at /etc/nagios/nagiosgraph/ngshared.pm line 82, <FH> line 181.
flock() on unopened filehandle LOG at /etc/nagios/nagiosgraph/ngshared.pm line 83, <FH> line 181.
flock() on unopened filehandle LOG at /etc/nagios/nagiosgraph/ngshared.pm line 81, <FH> line 184.
print() on unopened filehandle LOG at /etc/nagios/nagiosgraph/ngshared.pm line 82, <FH> line 184.
flock() on unopened filehandle LOG at /etc/nagios/nagiosgraph/ngshared.pm line 83, <FH> line 184.
flock() on unopened filehandle LOG at /etc/nagios/nagiosgraph/ngshared.pm line 81, <FH> line 185.
print() on unopened filehandle LOG at /etc/nagios/nagiosgraph/ngshared.pm line 82, <FH> line 185.
flock() on unopened filehandle LOG at /etc/nagios/nagiosgraph/ngshared.pm line 83, <FH> line 185.
flock() on unopened filehandle LOG at /etc/nagios/nagiosgraph/ngshared.pm line 81, <FH> line 188.
print() on unopened filehandle LOG at /etc/nagios/nagiosgraph/ngshared.pm line 82, <FH> line 188.
flock() on unopened filehandle LOG at /etc/nagios/nagiosgraph/ngshared.pm line 83, <FH> line 188.
flock() on unopened filehandle LOG at /etc/nagios/nagiosgraph/ngshared.pm line 81, <FH> line 189.
print() on unopened filehandle LOG at /etc/nagios/nagiosgraph/ngshared.pm line 82, <FH> line 189.
flock() on unopened filehandle LOG at /etc/nagios/nagiosgraph/ngshared.pm line 83, <FH> line 189.
flock() on unopened filehandle LOG at /etc/nagios/nagiosgraph/ngshared.pm line 81, <FH> line 190.
print() on unopened filehandle LOG at /etc/nagios/nagiosgraph/ngshared.pm line 82, <FH> line 190.
flock() on unopened filehandle LOG at /etc/nagios/nagiosgraph/ngshared.pm line 83, <FH> line 190.
flock() on unopened filehandle LOG at /etc/nagios/nagiosgraph/ngshared.pm line 81, <FH> line 191.
print() on unopened filehandle LOG at /etc/nagios/nagiosgraph/ngshared.pm line 82, <FH> line 191.
flock() on unopened filehandle LOG at /etc/nagios/nagiosgraph/ngshared.pm line 83, <FH> line 191.
flock() on unopened filehandle LOG at /etc/nagios/nagiosgraph/ngshared.pm line 81.
print() on unopened filehandle LOG at /etc/nagios/nagiosgraph/ngshared.pm line 82.
flock() on unopened filehandle LOG at /etc/nagios/nagiosgraph/ngshared.pm line 83.
flock() on unopened filehandle LOG at /etc/nagios/nagiosgraph/ngshared.pm line 81.
print() on unopened filehandle LOG at /etc/nagios/nagiosgraph/ngshared.pm line 82.
flock() on unopened filehandle LOG at /etc/nagios/nagiosgraph/ngshared.pm line 83.
flock() on unopened filehandle LOG at /etc/nagios/nagiosgraph/ngshared.pm line 81.
print() on unopened filehandle LOG at /etc/nagios/nagiosgraph/ngshared.pm line 82.
flock() on unopened filehandle LOG at /etc/nagios/nagiosgraph/ngshared.pm line 83.
flock() on unopened filehandle LOG at /etc/nagios/nagiosgraph/ngshared.pm line 81.
print() on unopened filehandle LOG at /etc/nagios/nagiosgraph/ngshared.pm line 82.
flock() on unopened filehandle LOG at /etc/nagios/nagiosgraph/ngshared.pm line 83.
flock() on unopened filehandle LOG at /etc/nagios/nagiosgraph/ngshared.pm line 81.
print() on unopened filehandle LOG at /etc/nagios/nagiosgraph/ngshared.pm line 82.
flock() on unopened filehandle LOG at /etc/nagios/nagiosgraph/ngshared.pm line 83.
flock() on unopened filehandle LOG at /etc/nagios/nagiosgraph/ngshared.pm line 81.
print() on unopened filehandle LOG at /etc/nagios/nagiosgraph/ngshared.pm line 82.
flock() on unopened filehandle LOG at /etc/nagios/nagiosgraph/ngshared.pm line 83.
flock() on unopened filehandle LOG at /etc/nagios/nagiosgraph/ngshared.pm line 81.
print() on unopened filehandle LOG at /etc/nagios/nagiosgraph/ngshared.pm line 82.
flock() on unopened filehandle LOG at /etc/nagios/nagiosgraph/ngshared.pm line 83.
flock() on unopened filehandle LOG at /etc/nagios/nagiosgraph/ngshared.pm line 81.
print() on unopened filehandle LOG at /etc/nagios/nagiosgraph/ngshared.pm line 82.
flock() on unopened filehandle LOG at /etc/nagios/nagiosgraph/ngshared.pm line 83.
Unquoted string "ping" may clash with future reserved word at (eval 1) line 35.
Unquoted string "losspct" may clash with future reserved word at (eval 1) line 36.
Unquoted string "rta" may clash with future reserved word at (eval 1) line 37.
Unquoted string "bytesfree" may clash with future reserved word at (eval 1) line 43.
Unquoted string "bytesmax" may clash with future reserved word at (eval 1) line 44.
Unquoted string "pctfree" may clash with future reserved word at (eval 1) line 45.
Unquoted string "free" may clash with future reserved word at (eval 1) line 57.
Unquoted string "user" may clash with future reserved word at (eval 1) line 58.
Unquoted string "root" may clash with future reserved word at (eval 1) line 59.
Unquoted string "max" may clash with future reserved word at (eval 1) line 60.
Unquoted string "blockpct" may clash with future reserved word at (eval 1) line 61.
Unquoted string "inodepct" may clash with future reserved word at (eval 1) line 62.
Unquoted string "dns" may clash with future reserved word at (eval 1) line 70.
Unquoted string "response" may clash with future reserved word at (eval 1) line 71.
Unquoted string "imap" may clash with future reserved word at (eval 1) line 76.
Unquoted string "response" may clash with future reserved word at (eval 1) line 77.
Unquoted string "ldap" may clash with future reserved word at (eval 1) line 83.
Unquoted string "response" may clash with future reserved word at (eval 1) line 84.
Unquoted string "load" may clash with future reserved word at (eval 1) line 90.
Unquoted string "mailq" may clash with future reserved word at (eval 1) line 99.
Unquoted string "qsize" may clash with future reserved word at (eval 1) line 100.
Unquoted string "qwarn" may clash with future reserved word at (eval 1) line 101.
Unquoted string "qcrit" may clash with future reserved word at (eval 1) line 102.
Unquoted string "udp" may clash with future reserved word at (eval 1) line 111.
Unquoted string "tcp" may clash with future reserved word at (eval 1) line 115.
Unquoted string "ntp" may clash with future reserved word at (eval 1) line 125.
Unquoted string "offset" may clash with future reserved word at (eval 1) line 126.
Unquoted string "jitter" may clash with future reserved word at (eval 1) line 127.
Unquoted string "stratum" may clash with future reserved word at (eval 1) line 128.
Unquoted string "response" may clash with future reserved word at (eval 1) line 134.
Unquoted string "procs" may clash with future reserved word at (eval 1) line 139.
Unquoted string "procs" may clash with future reserved word at (eval 1) line 140.
Unquoted string "smtp" may clash with future reserved word at (eval 1) line 145.
Unquoted string "response" may clash with future reserved word at (eval 1) line 146.
Unquoted string "swap" may clash with future reserved word at (eval 1) line 152.
Unquoted string "swapfree" may clash with future reserved word at (eval 1) line 153.
Unquoted string "swapwarn" may clash with future reserved word at (eval 1) line 154.
Unquoted string "swapcrit" may clash with future reserved word at (eval 1) line 155.
Unquoted string "swapmax" may clash with future reserved word at (eval 1) line 156.
Unquoted string "procs" may clash with future reserved word at (eval 1) line 162.
Unquoted string "users" may clash with future reserved word at (eval 1) line 163.
Unquoted string "uwarn" may clash with future reserved word at (eval 1) line 164.
Unquoted string "ucrit" may clash with future reserved word at (eval 1) line 165.
Unquoted string "zombie" may clash with future reserved word at (eval 1) line 170.
Unquoted string "zombies" may clash with future reserved word at (eval 1) line 171.
Unquoted string "bps" may clash with future reserved word at (eval 1) line 177.
Use of uninitialized value in string eq at (eval 1) line 191.
[root at dalimnag02 nagiosgraph]#

Eric Chatham
Broadvox MIS Department
(216) 373-4683
echatham at broadvox.net


-----Original Message-----
From: Sergio Ariel [mailto:sergio.ariel at iris.uh.cu]
Sent: Friday, March 20, 2009 09:40
To: Eric Chatham; nagios-users
Subject: Re: [Nagios-users] NAGIOSGRAPH not graphing

I have some similar problem, I have run insert.pl manually and ir return
this:

*readline() on closed filehandle PERFLOG at
/usr/local/nagios/etc/nagiosgraph/ngshared.pm line 797*

I went to /usr/local/nagios/etc/nagiosgraph/ngshared.pm line 797 and it
says:


788 sub inputdata () {
789         my @inputlines;
790         if ( $ARGV[0] ) {
791                 @inputlines = $ARGV[0];
792         } elsif ( defined $Config{perflog} ) {
793                 if (-s $Config{perflog}) {
794                         my $worklog = $Config{perflog} . ".nagiosgraph";
795                         rename($Config{perflog}, $worklog);
796                         open PERFLOG, $worklog;
797                         while (<PERFLOG>) {
798                                 push @inputlines, $_;
799                         }
800                         close PERFLOG;
801                         unlink($worklog);
802                 }

I'm sure I configure logs for perfdata correctly:
*service_perfdata_file* in nagios.cfg is the same file that
*perflog* in nagiosgraph.conf. And I'm sure I put all path correctly in
any file. I use nagiosgraph 1.2.1
--
Sergio Ariel de la Campa Saiz
    Administrador Red UH


Eric Chatham wrote:
> Hi Patrick,
>
> Here are my answers.  I hope they give some insight as to the problem.  Thank you.
>
>> Have you checked out the logs? Is there anything in them?
>
> Here is a sample of my /var/log/nagiosgraph.log file.  I had the debugging level at (4).  I don't see any INSERT into information though:
>
> Thu Mar 19 13:34:42 2009 insert.pl warn - perfdata not recognized:
> date||host||desc||out||data for:
> servicedescr: PING
> output: PING OK - Packet loss = 0%, RTA = 0.35 ms
> perfdata:
> Thu Mar 19 13:34:52 2009 insert.pl warn - perfdata not recognized:
> date||host||desc||out||data for:
> servicedescr: PING
> output: PING OK - Packet loss = 0%, RTA = 99.64 ms
> perfdata:
>
>> Have you tried running the insert command manually to see what happens?
>
> When I run the insert.pl command manually I get this.
>
> [root@ ~ sbin]# /usr/local/lib/nagios/insert.pl
> .
> .
> .
> .
> Unquoted string "procs" may clash with future reserved word at (eval 1) line 139.
> Unquoted string "procs" may clash with future reserved word at (eval 1) line 140.
> Unquoted string "smtp" may clash with future reserved word at (eval 1) line 145.
> Unquoted string "response" may clash with future reserved word at (eval 1) line 146.
> Unquoted string "swap" may clash with future reserved word at (eval 1) line 152.
> Unquoted string "swapfree" may clash with future reserved word at (eval 1) line 153.
> Unquoted string "swapwarn" may clash with future reserved word at (eval 1) line 154.
> Unquoted string "swapcrit" may clash with future reserved word at (eval 1) line 155.
> Unquoted string "swapmax" may clash with future reserved word at (eval 1) line 156.
> Unquoted string "procs" may clash with future reserved word at (eval 1) line 162.
> Unquoted string "users" may clash with future reserved word at (eval 1) line 163.
> Unquoted string "uwarn" may clash with future reserved word at (eval 1) line 164.
> Unquoted string "ucrit" may clash with future reserved word at (eval 1) line 165.
> Unquoted string "zombie" may clash with future reserved word at (eval 1) line 170.
> Unquoted string "zombies" may clash with future reserved word at (eval 1) line 171.
> Unquoted string "bps" may clash with future reserved word at (eval 1) line 177.
>
>> Is it creating RRD files where it's supposed to? Is there data in them?
> [root@ ~sbin]# ls -l /usr/local/nagios/nagiosgraph/rrd/
> total 80
> drwxrwxrwx 2 nagios nagios 4096 Mar 12 14:30  $
> drwxrwxrwx 2 nagios nagios 4096 Mar 12 14:39 ___
> drwxr-xr-x 2 apache apache 4096 Mar 13 15:48 host1
> drwxr-xr-x 2 apache apache 4096 Mar 13 15:48 host2
> drwxrwxrwx 2 nagios nagios 4096 Mar 12 15:08 localhost
> drwxr-xr-x 2 apache apache 4096 Mar 13 15:48 nagiosserver
> drwxrwxrwx 2 nagios nagios 4096 Mar 12 15:08 ny_sap01
> drwxrwxrwx 2 nagios nagios 4096 Mar 12 15:08 ny_sap02
> drwxrwxrwx 2 nagios nagios 4096 Mar 12 15:08 ny_transactional_DB
> drwxrwxrwx 2 nagios nagios 4096 Mar 12 15:08 reach_media
>
>
> [root@ ~ sbin]# ls -l /usr/local/nagios/nagiosgraph/rrd/reach_media/
> total 156
> -rwxrwxrwx 1 nagios nagios 47624 Mar 12 15:08 PING___ping.rrd
> -rwxrwxrwx 1 nagios nagios 47624 Mar 12 15:08 PING___ping.rrd_max
> -rwxrwxrwx 1 nagios nagios 47624 Mar 12 15:08 PING___ping.rrd_min
>
> The graph "template" displays on the page.  That's it though.  There is no data displaying.  According to the last modified date in "reach_media," the graph was last updated on the 12th, the day I installed the program.  Shouldn't the last modified date be now, since the graph continually is updated by insert.pl?
>
>
> Eric Chatham
>
> -----Original Message-----
> From: Patrick Morris [mailto:patrick.morris at hp.com]
> Sent: Thursday, March 19, 2009 14:42
> To: Eric Chatham
> Cc: Nagios Users Mailinglist
> Subject: Re: [Nagios-users] NAGIOSGRAPH not graphing
>
> Hi Eric!
>
> On Thu, 19 Mar 2009, Eric Chatham wrote:
>
>> Please, can someone help me with this?  I installed Nagios 3.0 and Nagiosgraph on a server with CentOS 5.1 i386 version installed.  I am the point now trying to get the graphs to poll PING data.  There is nothing on the graphs.  What is wrong?  I double checked the installation (which I followed the INSTALL instructions that came with the package).  I still can?t find the problem.  Please, help.
>
> Have you checked out the logs? Is there anything in them?
>
> Have you tried running the insert command manually to see what happens?
>
> Is it creating RRD files where it's supposed to? Is there data in them?
>
>
>
> CONFIDENTIAL.  This e-mail and any attached files are confidential and should be destroyed and/or returned if you are not the intended and proper recipient.
>
> ------------------------------------------------------------------------------
> Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are
> powering Web 2.0 with engaging, cross-platform capabilities. Quickly and
> easily build your RIAs with Flex Builder, the Eclipse(TM)based development
> software that enables intelligent coding and step-through debugging.
> Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-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
>

CONFIDENTIAL.  This e-mail and any attached files are confidential and should be destroyed and/or returned if you are not the intended and proper recipient.

------------------------------------------------------------------------------
Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are
powering Web 2.0 with engaging, cross-platform capabilities. Quickly and
easily build your RIAs with Flex Builder, the Eclipse(TM)based development
software that enables intelligent coding and step-through debugging.
Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-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

CONFIDENTIAL.  This e-mail and any attached files are confidential and should be destroyed and/or returned if you are not the intended and proper recipient.

------------------------------------------------------------------------------
This SF.net email is sponsored by:
High Quality Requirements in a Collaborative Environment.
Download a free trial of Rational Requirements Composer Now!
http://p.sf.net/sfu/www-ibm-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





More information about the Users mailing list