Unable to fetch correct port speed through switch/router wiz

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
capgemtools
Posts: 56
Joined: Wed Aug 12, 2020 3:16 pm

Unable to fetch correct port speed through switch/router wiz

Post by capgemtools »

Hello Support,

We have observed that for one of the switch when added through switch/router wizard fetches incorrect port speed for selected ports which is default to 100mbps but actually those ports are 10gbps. Just wanted to understand how we can find out if Nagios is fetching correct port speed from the device.
Thanks,
Supriya
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: Unable to fetch correct port speed through switch/router

Post by ssax »

If your devices uses the standard OIDs for ifSpeed/ifHighSpeed you should be able to run this command to get the port ID:
- It's the .2 in the below output:

Code: Select all

[nagios@xid ~]# snmpwalk -v2c -c 'yourcommunity' X.X.X.X ifDesc
IF-MIB::ifDescr.1 = STRING: lo
IF-MIB::ifDescr.2 = STRING: ens160
Then check the ifSpeed and for ifHighSpeed OIDs by putting the number from the above output onto the end of ifSpeed/ifHighSpeed:

Code: Select all

[nagios@xid ~]# snmpwalk -v2c -c 'yourcommunity' X.X.X.X ifSpeed.2
IF-MIB::ifSpeed.2 = Gauge32: 4294967295

Code: Select all

[nagios@xid ~]# snmpwalk -v2c -c 'yourcommunity' X.X.X.X ifHighSpeed.2
IF-MIB::ifHighSpeed.2 = Gauge32: 10000
That will show you what the speed is showing as from the device.
If the bandwidth of the interface is greater than the maximum value
reportable by [ifSpeed] then this object should report its
maximum value (4,294,967,295) and ifHighSpeed must be used
to report the interace's speed. For a sub-layer which has
no concept of bandwidth, this object should be zero.
Taken from here:

https://oidref.com/1.3.6.1.2.1.2.2.1.5

Please PM me this file and let me know which port name/number you're referring to so that I can investigate what it shows:

Code: Select all

/usr/local/nagiosxi/tmp/mrtg-X.X.X.X
capgemtools
Posts: 56
Joined: Wed Aug 12, 2020 3:16 pm

Re: Unable to fetch correct port speed through switch/router

Post by capgemtools »

Hi ssax,

I have PM you the ouptut of the snmpwalk for those spesific ports.
Thanks,
Supriya
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: Unable to fetch correct port speed through switch/router

Post by ssax »

When you run through the wizard, does it show it as 100Mb? Try running through the wizard again and set the Default Port Speed to 10000 on the first page.

What is the output of this command?

Code: Select all

/usr/bin/cfgmaker -V
What make/model device is the switch?

Please PM me the top portion of the output of this command (the lines that show --snpd/--base:, I don't need the rest)
- Change YOURUSERNAME/authPass/privPass/X.X.X.X

Code: Select all

/usr/bin/cfgmaker --show-op-down --noreversedns --zero-speed 100000000 --enablesnmpv3 --snmp-options=:::::3 --username=YOURUSERNAME --authprotocol=sha --authpassword='authPass' --privprotocol=aes --privpassword='privPass' --contextengineid=0 X.X.X.X
Locked