[mrtg] finding ifHC* counters by ifName

Adi Fairbank adi at adiraj.org
Mon Sep 3 23:00:24 CEST 2012


Is it possible in the current version of MRTG to target the ifHC{In,Out}Octets by ifName?  I tried the following and it doesn't work:

Target[network_cume_bond0]: ifHCInOctets#bond0&ifHCOutOctets#bond0:public at localhost:::::2

The error it throws is:

2012-09-03 13:35:01 -- 2012-09-03 13:35:01: WARNING: could not match&get localhost/ifHCInOctets for Name 'bond0'

When I snmpwalk, the ifName for bond0 is clearly there:

IF-MIB::ifName.1 = STRING: lo
IF-MIB::ifName.2 = STRING: eth0
IF-MIB::ifName.3 = STRING: eth1
IF-MIB::ifName.4 = STRING: bond0

So why couldn't it find it?

Thanks,
Adi


More information about the mrtg mailing list