Page 3 of 4

Re: Bandwith Graphs show 0/0 in all network hosts.

Posted: Tue Jan 29, 2019 11:45 am
by psasines
Hello,

After delete the .rrd files for the host 10.250.99.10, the files are recreated. However, the graahs continue no showing data on bandwith values.

Re: Bandwith Graphs show 0/0 in all network hosts.

Posted: Tue Jan 29, 2019 3:13 pm
by tgriep
Can you login to the XI GUI and go to the Admin > Manage Config Wizards, check for updates and update the Network Switch / Router wizard.

Then, delete the /etc/mrtg/conf.d/10.250.99.10.cfg file from the system and the rrd files from the /var/lib/mrtg folder.

Then run the Network Switch / Router wizard again.
When you run the wizard, make sure you check the Scan Interfaces box and you put in 1000000000 for the Default Port Speed. (1 Gig)
Click on the Next button and verify that the settings for that device are correct, name, speed, description, etc.

Let the system run for 15 to 20 minutes to gather information and then view the Bandwidth to see if it is correct.

Re: Bandwith Graphs show 0/0 in all network hosts.

Posted: Wed Jan 30, 2019 10:26 am
by psasines
Hello,

I did exactly what you said but unfortunately the results are the same. All interfaces show 0/0MB (in and out) on bandwith graphs.

Please note that is the second time we try this last 3 steps with no results.

Thank you.

Re: Bandwith Graphs show 0/0 in all network hosts.

Posted: Wed Jan 30, 2019 4:14 pm
by tgriep
Can you post this file from the server here?

Code: Select all

/etc/mrtg/conf.d/10.250.99.10.cfg
Also, go to the /var/lib/mrtg folder and zip up all of the rrd files that start with 10.250.99.10 and upload them to the ticket.

Can you run the following commands as root and post the the /tmp/mrtg.txt file here?

Code: Select all

LANG=C LC_ALL=C /usr/bin/mrtg /etc/mrtg/mrtg.cfg -debug=cfg,base,log &> /tmp/mrtg.txt
LANG=C LC_ALL=C /usr/bin/mrtg &>> /tmp/mrtg.txt
The part that is puzzling is that the data received from the working systems, that are running snmpv2 is the same as the data for the devices using snmpv3.
If you like, re-run the wizard and use SNMPv2 instead and see if that works.

Re: Bandwith Graphs show 0/0 in all network hosts.

Posted: Thu Jan 31, 2019 10:24 am
by psasines
HI

In atach follow the required files.

I used the same wizard in a new equipment and i used SNMPv2. It works correctly.
What could be the difference between the two versions?


Thank you

Re: Bandwith Graphs show 0/0 in all network hosts.

Posted: Thu Jan 31, 2019 3:30 pm
by tgriep
That is the difficult thing, the debug file, mrtg.txt file show that both the devices using SNMPv2 and SNMPv3 are returning data and it looks valid.
It is just not putting the data in to the RRD files. Maybe there is another perl module installed on you system that is causing the data to not get put in the rrd files as SNMPv3.

Run this command on the server and post the output here.

Code: Select all

cpan -l |grep -i rrd
cpan -l |grep -i snmp
The device that works using SNMPv2. It is the same make and model of the non-working one?
Can you post the cfg file for it from the /etc/mrtg/conf.d folder and one of it's rrd file so I can compare it?

Re: Bandwith Graphs show 0/0 in all network hosts.

Posted: Thu Jan 31, 2019 3:48 pm
by tgriep
I have a couple of more commands for you to run and post the output here.

Code: Select all

find / -name Net_SNMP_util.pm
yum provides */Net_SNMP_util.pm
Thanks

Re: Bandwith Graphs show 0/0 in all network hosts.

Posted: Fri Feb 01, 2019 5:45 am
by psasines
Hi,

They are the same make but not the same model.


[root@localhost ~]# cpan -l | grep -i rrd
Unknown option: l
Nothing to install!
[root@localhost ~]# cpan -l | grep -i snmp
Unknown option: l
Nothing to install!


[root@localhost ~]# find / -name Net_SNMP_util.pm
/tmp/nagiosxi/subcomponents/mrtg/mrtg-2.17.4/lib/mrtg2/Net_SNMP_util.pm

Re: Bandwith Graphs show 0/0 in all network hosts.

Posted: Fri Feb 01, 2019 6:51 am
by psasines
Hi,

I have been investigate and i noted that graphs stoped workin at 1 de December 2018, see the attachment image.

This Can help us with troubleshhoting.

Re: Bandwith Graphs show 0/0 in all network hosts.

Posted: Fri Feb 01, 2019 9:39 am
by tgriep
I would guess some how the MRTG processes was reverted to a different package as the files are not quite lining up correctly.

These steps will install MRTG to the correct version that comes with Nagios XI.

Establish an SSH session to your Nagios XI server and execute the following commands:

Code: Select all

cd /tmp
rm -rf nagiosxi xi*.tar.gz
wget http://assets.nagios.com/downloads/nagiosxi/xi-latest.tar.gz
tar xzf xi-latest.tar.gz
cd /tmp/nagiosxi/subcomponents/mrtg/
tar xzf mrtg*.tar.gz
cd mrtg*
./configure --prefix='/usr'
make all
make install
It will take at least 15 minutes for the bandwidth graphs to start showing data so let us know how it works out.