[mrtg] snmp v2 revision of question

Mike Bernhardt mbernhardt at arsin.com
Mon Feb 26 19:28:30 MET 2001


I've come up with that using snmpv2, Cisco has a different mib for octets in
and out than for v1, namely ifHCInOctets and ifHCOutOctets. So, I tried to
use those mibs to take advantage of 64 bit counters. Here's what happened.
I'm leaving out all but the Target info for my cfg configs, because using my
current config and polling snmp v1 mibs works fine. I originally tried to do
this to use v2:
Target[myrouter_Se0_0.500]: 4:public at 10.10.10.1:::::2

but got:
C:\mrtg\bin>perl mrtg c:\apache\cfgfiles\myrouter.cfg
WARNING: Expected a number but got #<unprintable BER type 0x81>
WARNING: Expected a number but got #<unprintable BER type 0x81>

And zeroes for data.

So with my newfound knowledge, I tried this:
Target[myrouter_Se0_0.500]:
ifHCInOctets.4&ifHCOutOctets.4:public at 10.10.10.1:::::2

This generates the same error. But I just tried this, and it works:
Target[myrouter_Se0_0.500]:
ifInOctets.4&ifOutOctets.4:public at 10.10.10.1:::::2

So, why is it that using 
Target[myrouter_Se0_0.500]: 4:public at 10.10.10.1:::::2 DOESN'T work but using
the above does? I thought they were identical? Also, am I actually using the
64 bit counters in the working case here? And lastly, Cisco is now
supporting v2C and v3, but NOT v2. Does that have something to do with this?
BTY, I'm using mrtg 2.9.10.

Mike Bernhardt


--
Unsubscribe mailto:mrtg-request at list.ee.ethz.ch?subject=unsubscribe
Archive     http://www.ee.ethz.ch/~slist/mrtg
FAQ         http://faq.mrtg.org    Homepage     http://www.mrtg.org
WebAdmin    http://www.ee.ethz.ch/~slist/lsg2.cgi



More information about the mrtg mailing list