Re: finding ifHC* counters by ifName

Pavel Ruzicka <[email protected]>
Newsgroups gmane.network.mrtg.user
Message-ID <[email protected]>
Hello Adi,

it is not needed to specify ifHCInOctets and ifHCOutOctets.
If you specify SNMP version two with :::::2 on the end of target,
that MRTG automatically try to use 64bit counters.

You can check existence of these counters with snmpwalk.
Also check existence ifHighSpeed and ifSpeed which is used by cfgmaker
for maxbytes value.

You can automatically generate MRTG configuration for your host
with cfgmaker.

Best regards,

Pavel

> 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@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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.