Page 1 of 1

Problem with Performance Graphs

Posted: Sun Mar 25, 2012 2:02 pm
by jtata
On Fri I discovered a problem with my Nagios XI install missing performance graph data. When i attempt to view graphs I either get a "no image" icon in the space where the graph should be, or in some cases a blank graph. I have run through the following as described in the faq:

-Reset permissions script
-Checked permissions on /usr/local/nagios/share/perfdata/
-Checked existence of and permissions on /var/lib/mrtg

None fix the issue. In doing some more digging today I found that my root user's mail account is flooded with messages like this:

Code: Select all

>From root@REDACTED Tue Mar 20 17:40:03 2012
Date: Tue, 20 Mar 2012 17:40:01 -0400
From: root@REDACTED (Cron Daemon)
To: root@REDACTED
Subject: Cron <root@REDACTED> /usr/bin/mrtg /etc/mrtg/mrtg.cfg
Content-Type: text/plain; charset=UTF-8
Auto-Submitted: auto-generated
X-Cron-Env: <SHELL=/bin/sh>
X-Cron-Env: <HOME=/root>
X-Cron-Env: <PATH=/usr/bin:/bin>
X-Cron-Env: <LOGNAME=root>
X-Cron-Env: <USER=root>

SNMP Error:
Received SNMP response with error code
  error status: noSuchName
  index 1 (OID: 1.3.6.1.2.1.2.2.1.10.116)
SNMPv1_Session (remote host: "10.20.1.1" [10.20.1.1].161)
                  community: "nagios"
                 request ID: 516953362
                PDU bufsize: 8000 bytes
                    timeout: 2s
                    retries: 5
                    backoff: 1)
 at /usr/bin/../lib/mrtg2/SNMP_util.pm line 492
SNMPGET Problem for ifInOctets.116 ifOutOctets.116 on [email protected]::::::v4only
 at /usr/bin/mrtg line 2242
2012-03-20 17:40:01: ERROR: Target[10.20.1.1_116][_IN_] ' $target->[49]{$mode} ' did not eval into defined data
2012-03-20 17:40:01: ERROR: Target[10.20.1.1_116][_OUT_] ' $target->[49]{$mode} ' did not eval into defined data

These occur approximately every 5 minutes and all appear to be identical as far as I can tell. The weird part is I'm not actually monitoring 10.20.1.1. I monitor that device (a Catalyst switch) but not on that IP. I can't find any reference to the 10.20.1.1 ip anywhere in my CCM or config files.

Any idea what gives here?

Re: Problem with Performance Graphs

Posted: Mon Mar 26, 2012 8:49 am
by scottwilkerson
It must have been setup at one point and added to the MRTG config.

You can look through /etc/mrtg/mrtg.cfg and remove the devices that don't exist. Be careful in what you remove and I would definitely make a backup of that file before making any changes...

Re: Problem with Performance Graphs

Posted: Mon Mar 26, 2012 4:41 pm
by jtata
I've edited the /etc/mrtg/mrtg.conf file as instructed. No more emails are being generated but I still have no graphs.

Re: Problem with Performance Graphs

Posted: Mon Mar 26, 2012 4:58 pm
by mguthrie
What version of Nagios XI are you on? Are the missing graphs specific to switch and router graphs, or does it affect all graphs?

Re: Problem with Performance Graphs

Posted: Mon Mar 26, 2012 7:33 pm
by jtata
I am running 2011R1.8, I will be updating to the most recent version shortly. The problem affects all graphs as far as I can tell and began quite suddenly (they didn't work last friday, the week before that they were working).

Re: Problem with Performance Graphs

Posted: Tue Mar 27, 2012 8:34 am
by scottwilkerson
This could be a permissions issue, could you follow this document to try to fix global permissiong
http://library.nagios.com/library/produ ... -nagios-xi

Re: Problem with Performance Graphs

Posted: Tue Mar 27, 2012 10:22 am
by jtata
Done, no dice. All performance graphs render as a broken image icon, like the path to the image file is incorrect or the image isn't being generated.

Re: Problem with Performance Graphs

Posted: Tue Mar 27, 2012 10:35 am
by mguthrie
Lets start with the following just to be safe:

Code: Select all

chmod -R +x /usr/local/nagios/share/perfdata
chown -R nagios.nagios /usr/local/nagios/share/perfdata
Also, select the 4 hour timeperiod on your graph display.

We did add some bug fixes in the 1.9 release to fix a potential problem with performance graphs, although I don't remember what is was exactly. I just saw it in my notes from the Changelog.

Re: Problem with Performance Graphs

Posted: Thu Mar 29, 2012 4:32 pm
by jtata
Wow, that worked...I was sure I'd already tried all the permission things. Thanks.