[mrtg] Displaying VLAN traffic separately from a physical interface

Daniel J McDonald dan.mcdonald at austinenergy.com
Tue Feb 12 23:05:52 CET 2008


On Tue, 2008-02-12 at 13:38 -0700, Michael Silver wrote:
> Hello,
>  
> > if you snmpwalk ifInOctets and ifHCInOctets on the box, do you get
> > actual traffic numbers?  Do they appear to increment?

Ok, so it provides ifInOctets with snmp v2 but not ifInHCOctets.
It also appears that neither interface 5 or 6 is active.

If you are running 2.15.2 or later, you can use the nohc[] directive:

Target[vlan3]: 7:public at 10.107.1.129::::2
noHC[vlan3]: yes
MaxBytes[vlan3]: 1250000000
PageTop[vlan3]: <h3>Vlan 3</h3>


> 
> Yes - here's an snmpwalk from before lunch:
> 
> # snmpwalk -v2c -c public 10.108.1.129 ifInOctets
> IF-MIB::ifInOctets.1 = Counter32: 2986495148
> IF-MIB::ifInOctets.2 = Counter32: 2366540277
> IF-MIB::ifInOctets.3 = Counter32: 2234310737
> IF-MIB::ifInOctets.4 = Counter32: 326188573
> IF-MIB::ifInOctets.5 = Counter32: 2301367957
> IF-MIB::ifInOctets.6 = Counter32: 24264
> IF-MIB::ifInOctets.7 = Counter32: 237181484
> IF-MIB::ifInOctets.8 = Counter32: 3568795167
> 
> And after...
> 
> # snmpwalk -v2c -c public 10.108.1.129 ifInOctets
> IF-MIB::ifInOctets.1 = Counter32: 3006452896
> IF-MIB::ifInOctets.2 = Counter32: 2586809935
> IF-MIB::ifInOctets.3 = Counter32: 2234310737
> IF-MIB::ifInOctets.4 = Counter32: 457504738
> IF-MIB::ifInOctets.5 = Counter32: 2301367957
> IF-MIB::ifInOctets.6 = Counter32: 24264
> IF-MIB::ifInOctets.7 = Counter32: 309776314
> IF-MIB::ifInOctets.8 = Counter32: 3610608618
> 
> Thanks for your help - it's greatly appreciated!
> 
> Michael
> 
> Michael Silver, Network Administrator 
> Parkland Regional Library 
> 5404 56 Avenue Lacombe, AB T4L 1G1 
> Phone: 403.782.3850 msilver at prl.ab.ca
> Fax: 403.782.4650   http://www.prl.ab.ca/
> 
> 
> _______________________________________________
> mrtg mailing list
> mrtg at lists.oetiker.ch
> https://lists.oetiker.ch/cgi-bin/listinfo/mrtg
-- 
Daniel J McDonald, CCIE #2495, CISSP #78281, CNX
Austin Energy
http://www.austinenergy.com



More information about the mrtg mailing list