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.
Unable to fetch correct port speed through switch/router wiz
-
capgemtools
- Posts: 56
- Joined: Wed Aug 12, 2020 3:16 pm
Unable to fetch correct port speed through switch/router wiz
Thanks,
Supriya
Supriya
Re: Unable to fetch correct port speed through switch/router
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:
Then check the ifSpeed and for ifHighSpeed OIDs by putting the number from the above output onto the end of ifSpeed/ifHighSpeed:
That will show you what the speed is showing as from the device.
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:
- 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: ens160Code: Select all
[nagios@xid ~]# snmpwalk -v2c -c 'yourcommunity' X.X.X.X ifSpeed.2
IF-MIB::ifSpeed.2 = Gauge32: 4294967295Code: Select all
[nagios@xid ~]# snmpwalk -v2c -c 'yourcommunity' X.X.X.X ifHighSpeed.2
IF-MIB::ifHighSpeed.2 = Gauge32: 10000Taken from here: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.
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
Hi ssax,
I have PM you the ouptut of the snmpwalk for those spesific ports.
I have PM you the ouptut of the snmpwalk for those spesific ports.
Thanks,
Supriya
Supriya
Re: Unable to fetch correct port speed through switch/router
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?
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
What is the output of this command?
Code: Select all
/usr/bin/cfgmaker -VPlease 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