No bandwidth monitoring data

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
WVUhealth
Posts: 78
Joined: Tue Apr 24, 2012 1:50 pm

No bandwidth monitoring data

Post by WVUhealth »

When creating new routers and switch objects Nagios will not gather interfaces bandwidth data . It will always show OK - Current BW in: 0Gbps Out: 0Gbps
even when there are Gb of traffic going over the link.. All systems that were already being graphed also show no traffic stats.
This has been tested with both snmpv2 and v3 .

We have cacti running and it shows bandwidth data just fine .




System:
Nagios XI Version : 5.2.9
Red Hat Enterprise Linux Server release 6.8 (Santiago)
Gnome Installed
Apache Information
PHP Version: 5.3.3
Agent: Mozilla/5.0 (X11; Fedora; Linux x86_64; rv:47.0) Gecko/20100101 Firefox/47.0
Server Port: 443
Last edited by WVUhealth on Tue Jul 12, 2016 9:44 am, edited 1 time in total.
WVUhealth
Posts: 78
Joined: Tue Apr 24, 2012 1:50 pm

Re: No bandwith monitoring data

Post by WVUhealth »

More trouble shooting.
When i create a device via snmpv3 , nagios status information on the interface check is UNKOWN- No info is being retrieved.
When i create a device via snmpv2 it just get status OK but still no bandwidth data.

I had an issues last week with nagiosxi and snmpv3 below is the post for that ..
https://support.nagios.com/forum/viewto ... 3&e=189013
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: No bandwidth monitoring data

Post by tgriep »

Can you login to the XI interface and click on Admin > Manage Config Wizards and update the Network Switch / Router wizard to the latest version?
Also, can you login to the XI server as root, run the following and post the output?

Code: Select all

LANG=C LC_ALL=C /usr/bin/mrtg
LANG=C LC_ALL=C /usr/bin/mrtg /etc/mrtg/mrtg.cfg
Be sure to check out our Knowledgebase for helpful articles and solutions!
WVUhealth
Posts: 78
Joined: Tue Apr 24, 2012 1:50 pm

Re: No bandwidth monitoring data

Post by WVUhealth »

Wizard was already up to date but good thinking 2.3.2 Up to date


[root@dragon libexec]# LANG=C LC_ALL=C /usr/bin/mrtg
Usage: mrtg <config-file>

mrtg-2.16.2 - Multi Router Traffic Grapher

Copyright 1995-2006 by Tobias Oetiker
Licensed under the Gnu GPL.

If you want to know more about this tool, you might want
to read the docs. You can find everything on the
mrtg website:

http://oss.oetiker.ch/mrtg/

[root@dragon libexec]# LANG=C LC_ALL=C /usr/bin/mrtg /etc/mrtg/mrtg.cfg
ERROR: unable to open include file: conf.d/*.cfg
[root@dragon libexec]# whereis mrtg
mrtg: /usr/bin/mrtg /etc/mrtg /usr/share/man/man1/mrtg.1 /usr/share/man/man1/mrtg.1.gz
[root@dragon libexec]# cat /etc/mrtg/
archive/ mrtg.cfg.bak.05-21-2013
conf.d/ mrtg.cfg.bak-07-26-2013
mrtg.cfg mrtg.cfg.bak-08-08-2013
mrtg.cfg~ mrtg.cfg.bak-5-1-2013
mrtg.cfg-backup-Jun-16-2014 mrtg.cfg.bak.jan29-2015
mrtg.cfg.bak.03-19-2014 mrtg.cfg_l
mrtg.cfg.bak-03-28-2013 mrtg.cfg-Mar-5-2013-backup
mrtg.cfg.bak.05-15-2013 mrtg.cfg.orig
mrtg.cfg.bak.05-20-2013 mrtg.ok
[root@dragon libexec]# cat /etc/mrtg/mrtg.cfg
######################################################################
# Multi Router Traffic Grapher -- Example Configuration File
######################################################################
# This file is for use with mrtg-2.0
#
# Note:
#
# * Keywords must start at the begin of a line.
#
# * Lines which follow a keyword line which do start
# with a blank are appended to the keyword line
#
# * Empty Lines are ignored
#
# * Lines starting with a # sign are comments.

# Where should the logfiles, and webpages be created?

# Minimal mrtg.cfg
#--------------------

HtmlDir: /var/www/mrtg
ImageDir: /var/www/mrtg
LogFormat: rrdtool
LogDir: /var/lib/mrtg
ThreshDir: /var/lib/mrtg
WorkDir: /var/lib/mrtg

Include: conf.d/*.cfg
Forks: 4
WVUhealth
Posts: 78
Joined: Tue Apr 24, 2012 1:50 pm

Re: No bandwidth monitoring data

Post by WVUhealth »

As for my snmpv3 quires not working ..
It would seems that is from when i updated the /usr/local/nagiosxi/html/includes/configwizards/switch/switch.inc.php via the instructions.
Now syntax is wrong when it builds the query -x AESCFB128
check_xi_service_ifoperstatusnag!31!-v3 -u SNMPV3USERNAME -A "AUTHPASS" -x AESCFB128 -X "SECRETPASS" -a SHA -l authPriv


if i manually fix it to use -x AES the interface goes from UKNOWN to OK but again still getting No vaild bandwidth data..
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: No bandwidth monitoring data

Post by tgriep »

The MRTG config files require the latest version of MRTG and the following link will upgrade your server's copy of MRTG.
https://support.nagios.com/kb/article.php?id=511

Try doing that, wait for about 20 minutes and see if the Bandwidth data starts to update, if not, run the commands from my previous post again and post that here.
Be sure to check out our Knowledgebase for helpful articles and solutions!
WVUhealth
Posts: 78
Joined: Tue Apr 24, 2012 1:50 pm

Re: No bandwidth monitoring data

Post by WVUhealth »

Did the wget and compile .. Will post results in about 1 hour *going home :)

any thoughts on my snmpv3 issue where the updated config file now post bad -x switch of
check_xi_service_ifoperstatusnag!31!-v3 -u SNMPV3USERNAME -A "AUTHPASS" -x AESCFB128 -X "SECRETPASS" -a SHA -l authPriv
WVUhealth
Posts: 78
Joined: Tue Apr 24, 2012 1:50 pm

Re: No bandwidth monitoring data

Post by WVUhealth »

think this may have fixed my snmpv3 issue..

<option value="AES" ' . is_selected($snmpopts["v3_priv_proto"], "AES128") . '>AES</option>


Im hitting the door now .. will update when i get home
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: No bandwidth monitoring data

Post by tgriep »

Ok, we will wait for the update.
Be sure to check out our Knowledgebase for helpful articles and solutions!
WVUhealth
Posts: 78
Joined: Tue Apr 24, 2012 1:50 pm

Re: No bandwidth monitoring data

Post by WVUhealth »

Sorry its been a DAY.. both the issues have been reolved..
MRTG is now working after following your directions.. *i got my bandwidth warnings emails again *.

SNMPV3 is working
Locked