Page 1 of 1

Aruba switch monitoring - bandwidth in rrd says NaN

Posted: Wed Feb 21, 2024 4:41 am
by jacek
Hi,

recently we added a Aruba switch to our monitoring using the switch wizard, but the bandwidth graphs are flat (0).
I checked the mrtg config, which seems to be ok comparing to other vendor switches.
One thing I noticed is that the rrd file has NaN in the values when I dump the file and the wizard detects port speeds in kbps.
Not sure where to look for the root cause.

A mrtg config for that switch created using cfgmaker seems to be fine.
Zabbix has no issues with that device and is drawing graphs without any issues.
Running a snmpget towards 1.3.6.1.2.1.31.1.1.1.6.47 from nagios gives ok looking results.

Re: Aruba switch monitoring - bandwidth in rrd says NaN

Posted: Thu Feb 22, 2024 4:04 pm
by bbahn
Hello @jacek,

Sorry to hear you're encountering this issue. I suggest you go to your CCM from Configuration->Core Config Manager, then find your host/services related to your Aruba switch. Using the Run Check Command, you can see if Nagios XI is receiving the data properly. If not, you can copy the command from the output into a terminal on your XI server and see if the plugin is working properly.

Re: Aruba switch monitoring - bandwidth in rrd says NaN

Posted: Fri Feb 23, 2024 5:45 am
by jacek
Hi,

I already tested that, if you read my initial post you can see that I already went a few steps ahead than this basic test (result attached on the bottom of this message).
If I run the rrddump tool against the rrd files I get NaN in the results, so something is wrong with the mrtg query.
I also posted this message on the customer board but got no response there. (https://nagiosenterprises.my.site.com/s ... d-says-nan).

I checked also the troubleshooting guide, but no luck: https://support.nagios.com/kb/article/n ... hs-29.html

Code: Select all

[nagios@host ~]$ /usr/local/nagios/libexec/check_rrdtraf -f /var/lib/mrtg/192.168.200.18_47.rrd -w 500,500 -c 800,800 -l M
OK - Current BW in: 0Mbps Out: 0Mbps|in=0Mb/s;500;800 out=0Mb/s;500;800

Re: Aruba switch monitoring - bandwidth in rrd says NaN

Posted: Wed Mar 27, 2024 4:56 am
by jacek
Bump?

Re: Aruba switch monitoring - bandwidth in rrd says NaN

Posted: Wed Mar 27, 2024 9:44 am
by jsimon
Hi @jacek,

I think the next step here is to look at the root mailbox, as this is where MRTG should be logging to if it has issues collecting data from a device. Try running this command in a terminal on the XI server that is having this problem:

Code: Select all

LANG=C LC_ALL=C /usr/bin/mrtg /etc/mrtg/mrtg.cfg
If there are ports MRTG is struggling with, this should be how we'll know which ones they are. The next step may be to go into the MRTG config and comment out the ports that are causing issues, especially if those aren't the ports you're trying to collect data on. Let us know what you get from the output of this command so we have an idea what the issue might be.

Re: Aruba switch monitoring - bandwidth in rrd says NaN

Posted: Thu Mar 28, 2024 2:53 am
by jacek
I already ran that command, in my initial investigation.
Now I even removed the host, services and the mrtg related config file.
I'm now on Nagios XI 2024R1.1 and ran the switch/router wizard, afterwards I ran your command again and there are no warnings/errors with the host IP in it.

Re: Aruba switch monitoring - bandwidth in rrd says NaN

Posted: Thu Mar 28, 2024 9:37 am
by jsimon
I would recommend removing the rrd and xml files for the bandwidth service. Nagios should regenerate them, and they may be recreated without those NaN values.

Re: Aruba switch monitoring - bandwidth in rrd says NaN

Posted: Fri Mar 29, 2024 5:58 am
by jacek
Deleted, files got recreated, but no change.

Re: Aruba switch monitoring - bandwidth in rrd says NaN

Posted: Thu May 09, 2024 4:50 am
by jacek
bump?