Problem with Performance Graphs

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
jtata
Posts: 47
Joined: Thu Sep 02, 2010 12:27 pm

Problem with Performance Graphs

Post 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?
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Problem with Performance Graphs

Post 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...
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
jtata
Posts: 47
Joined: Thu Sep 02, 2010 12:27 pm

Re: Problem with Performance Graphs

Post 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.
mguthrie
Posts: 4380
Joined: Mon Jun 14, 2010 10:21 am

Re: Problem with Performance Graphs

Post 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?
jtata
Posts: 47
Joined: Thu Sep 02, 2010 12:27 pm

Re: Problem with Performance Graphs

Post 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).
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Problem with Performance Graphs

Post 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
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
jtata
Posts: 47
Joined: Thu Sep 02, 2010 12:27 pm

Re: Problem with Performance Graphs

Post 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.
mguthrie
Posts: 4380
Joined: Mon Jun 14, 2010 10:21 am

Re: Problem with Performance Graphs

Post 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.
jtata
Posts: 47
Joined: Thu Sep 02, 2010 12:27 pm

Re: Problem with Performance Graphs

Post by jtata »

Wow, that worked...I was sure I'd already tried all the permission things. Thanks.
Locked