VMware ESX Network via SNMP v2

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
jdalrymple
Skynet Drone
Posts: 2620
Joined: Wed Feb 11, 2015 1:56 pm

Re: VMware ESX Network via SNMP v2

Post by jdalrymple »

OptimusB wrote:So doing a walk, it looks like it has an ifHCInOctet but not ifHCOutOctet....

Code: Select all

# snmpwalk -v 2c -c esx 10.242.13.1 | grep ifHCInOctets
IF-MIB::ifHCInOctets.1 = Counter64: 0
IF-MIB::ifHCInOctets.2 = Counter64: 0
IF-MIB::ifHCInOctets.3 = Counter64: 0
IF-MIB::ifHCInOctets.4 = Counter64: 0
IF-MIB::ifHCInOctets.5 = Counter64: 2798128280
IF-MIB::ifHCInOctets.6 = Counter64: 1464163212
IF-MIB::ifHCInOctets.7 = Counter64: 4046122006
IF-MIB::ifHCInOctets.8 = Counter64: 3197500063
IF-MIB::ifHCInOctets.9 = Counter64: 2549282990
IF-MIB::ifHCInOctets.10 = Counter64: 2549282990
IF-MIB::ifHCInOctets.11 = Counter64: 2549282990
IF-MIB::ifHCInOctets.12 = Counter64: 2549282990
IF-MIB::ifHCInOctets.13 = Counter64: 0
IF-MIB::ifHCInOctets.14 = Counter64: 0
IF-MIB::ifHCInOctets.15 = Counter64: 0
IF-MIB::ifHCInOctets.16 = Counter64: 0
IF-MIB::ifHCInOctets.17 = Counter64: 0
IF-MIB::ifHCInOctets.18 = Counter64: 0
# snmpwalk -v 2c -c esx 10.242.13.1 | grep ifHCOutOctets
#
I'm not sure - but I think that might just be a 32 bit rollover counter - maybe not though. I'd have to dig. Either way mine definitely behaves differently.

Code: Select all

[jdalrymple@localhost libexec]$ snmpwalk -v 2c -c <community> <ESXi IP> | grep if[IOH] | grep Octets
IF-MIB::ifInOctets.1 = Counter32: 1085664281
IF-MIB::ifInOctets.2 = Counter32: 0
IF-MIB::ifInOctets.3 = Counter32: 1085664281
IF-MIB::ifInOctets.4 = Counter32: 1085664281
IF-MIB::ifInOctets.5 = Counter32: 0
IF-MIB::ifInOctets.6 = Counter32: 0
IF-MIB::ifOutOctets.1 = Counter32: 1760919306
IF-MIB::ifOutOctets.2 = Counter32: 0
IF-MIB::ifOutOctets.3 = Counter32: 1760919306
IF-MIB::ifOutOctets.4 = Counter32: 1760919306
IF-MIB::ifOutOctets.5 = Counter32: 0
IF-MIB::ifOutOctets.6 = Counter32: 0
IF-MIB::ifHCInOctets.1 = Counter64: 1085664281
IF-MIB::ifHCInOctets.2 = Counter64: 0
IF-MIB::ifHCInOctets.3 = Counter64: 1085664281
IF-MIB::ifHCInOctets.4 = Counter64: 1085664281
IF-MIB::ifHCInOctets.5 = Counter64: 0
IF-MIB::ifHCInOctets.6 = Counter64: 0
IF-MIB::ifHCOutOctets.1 = Counter64: 1760919306
IF-MIB::ifHCOutOctets.2 = Counter64: 0
IF-MIB::ifHCOutOctets.3 = Counter64: 1760919306
IF-MIB::ifHCOutOctets.4 = Counter64: 1760919306
IF-MIB::ifHCOutOctets.5 = Counter64: 0
IF-MIB::ifHCOutOctets.6 = Counter64: 1753942047
Not really too sure what to think of it, but if v1 is an acceptable workaround I'd be happy to just say this problem is specific to your environment and move on with life until the next guy reports it?
User avatar
Box293
Too Basu
Posts: 5126
Joined: Sun Feb 07, 2010 10:55 pm
Location: Deniliquin, Australia
Contact:

Re: VMware ESX Network via SNMP v2

Post by Box293 »

I would check if the ESXi server is configured correctly:

https://pubs.vmware.com/vsphere-50/inde ... B6250.html
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Locked