Switch wizard pre-populates wrong data

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
tbmay
Posts: 67
Joined: Wed Jan 22, 2014 6:23 pm

Switch wizard pre-populates wrong data

Post by tbmay »

Good morning,

Installed Version: 2014R2.5
CentOS 6.6 on the metal

We're monitoring a number of HP switches for port bandwidth, primarily to keep the historical graphs. I simply run the wizard and pretty much just take what it finds. I seems to have found lots of ports incorrectly because it sees Gig ports as 100 meg ports and populates the thresholds with values that are WAY too low. Do you have any suggestions about how to deal with this particular issue.
jolson
Attack Rabbit
Posts: 2560
Joined: Thu Feb 12, 2015 12:40 pm

Re: Switch wizard pre-populates wrong data

Post by jolson »

Good morning,

To clarify, you ran the 'Network Switch / Router Monitoring Wizard' to detect your HP switch? Do any of the ports detect properly? Which version of SNMP did you use?

Please answer the above questions. Once finished, I'd like you to run an snmpwalk on your switch and return the output here. The command for SNMPwalk is as follows:

Code: Select all

snmpwalk -c <communitystring> -v<version> <ipaddress>
Feel free to cut out the private bits of information - what I'm interested in is what your problem switches report for their interface speed.
Twits Blog
Show me a man who lives alone and has a perpetually clean kitchen, and 8 times out of 9 I'll show you a man with detestable spiritual qualities.
tbmay
Posts: 67
Joined: Wed Jan 22, 2014 6:23 pm

Re: Switch wizard pre-populates wrong data

Post by tbmay »

SNMP is version 2. Some ports appear correct but many don't. I'm seeing ports that are gigabit apparently being seen as less than 10 megs...100 megs...no real consistency. I'm attaching an snmpwalk from a switch that's firing alerts on port 23 that seem wrong, but we have numerous switches and most of them have some anomalies.
You do not have the required permissions to view the files attached to this post.
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: Switch wizard pre-populates wrong data

Post by tmcdonald »

Does the SNMP Walk wizard exhibit the same behavior against that device?
Former Nagios employee
cmerchant
Posts: 546
Joined: Wed Sep 24, 2014 11:19 am

Re: Switch wizard pre-populates wrong data

Post by cmerchant »

Are you sure there isn't a bit of auto-negotiate going on with the switch.

Is there a way you can confirm what the switch might think the port speeds are negotiated at: (from your switch)

Code: Select all

show interfaces brief <port-list> 
tbmay
Posts: 67
Joined: Wed Jan 22, 2014 6:23 pm

Re: Switch wizard pre-populates wrong data

Post by tbmay »

I'm not the switch guy here but there probably is auto-negotiating going on. Thanks for that heads up.
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: Switch wizard pre-populates wrong data

Post by abrist »

The switch and router wizard will first try to use the bandwidth statement oid, then the link speed oid, and then the port speed oid, and then finally the wizard default. The first value in this precedence to exist is used. I bet cmerchant in correct and this is the auto-negotiated (link) speed.
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
tbmay
Posts: 67
Joined: Wed Jan 22, 2014 6:23 pm

Re: Switch wizard pre-populates wrong data

Post by tbmay »

Thank you. Is there a way to override and just take the port speed from the Wizard?

Here is the output from the switch I just sent the snmpwalk from for the show interfaces command.

Code: Select all

ME_HP2910al_AsstPrin# show interfaces brief

 Status and Counters - Port Status

                  | Intrusion                           MDI   Flow  Bcast
  Port  Type      | Alert     Enabled Status Mode       Mode  Ctrl  Limit
  ----- --------- + --------- ------- ------ ---------- ----- ----- ------
  1     100/1000T | No        Yes     Down   1000FDx    Auto  off   0
  2     100/1000T | No        Yes     Up     100FDx     MDIX  off   0
  3     100/1000T | No        Yes     Down   1000FDx    Auto  off   0
  4     100/1000T | No        Yes     Down   1000FDx    Auto  off   0
  5     100/1000T | No        Yes     Down   1000FDx    Auto  off   0
  6     100/1000T | No        Yes     Down   1000FDx    Auto  off   0
  7     100/1000T | No        Yes     Up     1000FDx    MDI   off   0
  8     100/1000T | No        Yes     Down   1000FDx    Auto  off   0
  9     100/1000T | No        Yes     Up     1000FDx    MDIX  off   0
  10    100/1000T | No        Yes     Down   1000FDx    Auto  off   0
  11    100/1000T | No        Yes     Up     1000FDx    MDI   off   0
  12    100/1000T | No        Yes     Down   1000FDx    Auto  off   0
  13    100/1000T | No        Yes     Down   1000FDx    MDIX  off   0
  14    100/1000T | No        Yes     Up     1000FDx    MDI   off   0
  15    100/1000T | No        Yes     Down   1000FDx    Auto  off   0
  16    100/1000T | No        Yes     Down   1000FDx    Auto  off   0
  17    100/1000T | No        Yes     Down   1000FDx    Auto  off   0
  18    100/1000T | No        Yes     Down   1000FDx    Auto  off   0
  19    100/1000T | No        Yes     Down   1000FDx    Auto  off   0
  20    100/1000T | No        Yes     Down   1000FDx    Auto  off   0
  21    100/1000T | No        Yes     Down   1000FDx    Auto  off   0
  22    100/1000T | No        Yes     Down   1000FDx    Auto  off   0
  23    100/1000T | No        Yes     Up     100FDx     MDI   off   0
  24    100/1000T | No        Yes     Down   1000FDx    Auto  off   0
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: Switch wizard pre-populates wrong data

Post by abrist »

How many ports are wrong on this switch? I see only 2 ports that have the state of "100FDx".
EDIT:
tbmay wrote:Thank you. Is there a way to override and just take the port speed from the Wizard?
Not really, though it would be a good feature request.
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
cmerchant
Posts: 546
Joined: Wed Sep 24, 2014 11:19 am

Re: Switch wizard pre-populates wrong data

Post by cmerchant »

It may be worthwhile to open a feature request at http://tracker.nagios.com for the ability to alter the default speeds on the second page of the switch/router wizard.

fwiw, There was a lengthy discussion of the incorrect ifSpeed for Cisco gear in this forum post as well:

http://support.nagios.com/forum/viewtop ... 2&start=10
Locked