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
No bandwidth monitoring data
No bandwidth monitoring data
Last edited by WVUhealth on Tue Jul 12, 2016 9:44 am, edited 1 time in total.
Re: No bandwith monitoring data
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
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
Re: No bandwidth monitoring data
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?
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!
Re: No bandwidth monitoring data
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
[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
Re: No bandwidth monitoring data
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..
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..
Re: No bandwidth monitoring data
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.
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!
Re: No bandwidth monitoring data
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
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
Re: No bandwidth monitoring data
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
<option value="AES" ' . is_selected($snmpopts["v3_priv_proto"], "AES128") . '>AES</option>
Im hitting the door now .. will update when i get home
Re: No bandwidth monitoring data
Ok, we will wait for the update.
Be sure to check out our Knowledgebase for helpful articles and solutions!
Re: No bandwidth monitoring data
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
MRTG is now working after following your directions.. *i got my bandwidth warnings emails again *.
SNMPV3 is working