[mrtg] Problem with mrtg and snmp version 2

Håkan Lindholm halindholm at gmail.com
Fri Feb 20 15:24:10 CET 2009


Sorry for pulling up an old thread again..

2008/3/20 Daniel J McDonald <dan.mcdonald at austinenergy.com>:
>
> On Tue, 2008-03-18 at 16:37 -0600, Karina Gómez wrote:
>> ifInOctets.2&ifOutOctets.2:Canopy at 192.168.13.49:::::2
>>
>> isn't activated with that last 2 ?
>
> Yes, but until 2.15.2, if it detected from ifHighSpeed that the 64 bit
> counters were not used, then it would drop back to snmp V1 and use
> ifInOctets and ifOutOctets.
>
> In 2.15.2, I introduced a change to poll using snmp v2, but force the
> use of ifInOctets and ifOutOctets.  The change in behavior is signaled
> by the NoHC[] directive.  That was needed for snmp v3 boxes, since you
> can't just fall back from v3 to v1.  But it also works for snmp V2
> low-speed interfaces.

I have some Alcatel (Lucent?) OmniSwitch 6850. They have ifHC*Octets
for all interfaces, but 1gig ports have:

$> snmpwalk -v2c -c public kp-sw-01 ifSpeed.1001
IF-MIB::ifSpeed.1001 = Gauge32: 1000000000
$> snmpwalk -v2c -c public kp-sw-01 ifHighSpeed.1001
IF-MIB::ifHighSpeed.1001 = Gauge32: 0
$> snmpwalk -v2c -c public kp-sw-01 ifHCInOctets.1001
IF-MIB::ifHCInOctets.1001 = Counter64: 203087599517594
$> snmpwalk -v2c -c public kp-sw-01 ifHCInOctets.1001
IF-MIB::ifHCInOctets.1001 = Counter64: 203087630531445
$> snmpwalk -v2c -c public kp-sw-01 ifHCInOctets.1001
IF-MIB::ifHCInOctets.1001 = Counter64: 203087661917295

I want to use the ifHCInOctets because they are 64bit.
Too bad the ifHighSpeed is not set.
ifHCInOctets is obviously there.




Just to get the full picture, I include the values for 10gig ports as well:

$> snmpwalk -v2c -c public kp-sw-01 ifSpeed.1025
IF-MIB::ifSpeed.1025 = Gauge32: 4294967295
$> snmpwalk -v2c -c public kp-sw-01 ifHighSpeed.1025
IF-MIB::ifHighSpeed.1025 = Gauge32: 10000
$> snmpwalk -v2c -c public kp-sw-01 ifHCInOctets.1025
IF-MIB::ifHCInOctets.1025 = Counter64: 4832849933769282
$> snmpwalk -v2c -c public kp-sw-01 ifHCInOctets.1025
IF-MIB::ifHCInOctets.1025 = Counter64: 4832850414024483
$> snmpwalk -v2c -c public kp-sw-01 ifHCInOctets.1025
IF-MIB::ifHCInOctets.1025 = Counter64: 4832851374149276


Would it be able to make cfgmaker support this scenario as well?

Best regards
Hakan Lindholm



More information about the mrtg mailing list