[mrtg] [conf check - please help] mrtg, cisco snmp v2
Herold Heiko
Heiko.Herold at previnet.it
Tue Apr 9 18:07:32 MEST 2002
I'd like a confirmation of my line of thought and test before opening a bug
case with cisco (sticking foot in mouth ecc.)
I'm trying to set up mrtg with snmp v2 for the first time (with v2, not mrtg
that is).
With snmp v1 everything is ok.
With snmp v2 (1:community at hostname:::::2) on the interface configs snmp
complains for
WARNING: Expected a number but got '#<unprintable BER type 0x81>'
On the router debug snmp packets, debug snmp headers prints:
010829: Apr 9 17:34:12.621 CEST: SNMP: Packet received via UDP from
10.1.1.90 on FastEthernet0/0
010830: Apr 9 17:34:12.621 CEST: SNMP: Get request, reqid 1745002642,
errstat 0, erridx 0
ifXEntry.6.1 = NULL TYPE/VALUE
ifXEntry.10.1 = NULL TYPE/VALUE
sysUpTime.0 = NULL TYPE/VALUE
system.5.0 = NULL TYPE/VALUE
010831: Apr 9 17:34:12.653 CEST:
Incoming SNMP packet
010832: Apr 9 17:34:12.653 CEST: v1 packet
010833: Apr 9 17:34:12.653 CEST: community string: community
010834: Apr 9 17:34:12.657 CEST: SNMP: Response, reqid 1745002642, errstat
0, erridx 0
ifXEntry.6.1 = NO_SUCH_INSTANCE_EXCEPTION
ifXEntry.10.1 = NO_SUCH_INSTANCE_EXCEPTION
*R3*:[CiscoR3]#
sysUpTime.0 = 60234645
system.5.0 = hostname.domain.it
010835: Apr 9 17:34:12.697 CEST: SNMP: Packet sent via UDP to 10.1.1.90
Note the NO_SUCH_INSTANCE_EXCEPTION - when trying to get the same info with
snmpv1 that lines read something like
ifEntry.10.1 = 51444420
ifEntry.16.1 = 19140834
which seems more reasonable.
As a matter of fact I think mrtg is correct:
[mrtg]$ snmpwalk -v 2c -On hostname public ifXEntry
..blah blah..
.1.3.6.1.2.1.31.1.1.1.5.26 = Counter32: 0
.1.3.6.1.2.1.31.1.1.1.5.30 = Counter32: 0
.1.3.6.1.2.1.31.1.1.1.5.34 = Counter32: 0
.1.3.6.1.2.1.31.1.1.1.14.1 = enabled(1)
.1.3.6.1.2.1.31.1.1.1.14.2 = enabled(1)
No ifHCInOctets (6) or ifHCOutOctets (10) here! Either something in my setup
is wrong or those oids are missing.
Setup is
3640
Ios C3620-IK8S-M 12.2(7b) (far to new for my taste but unfortunately
neccesary)
mrtg-2.9.17
UCD-snmp version: 4.2.4.pre3
router conf:
snmp-server location yadda
snmp-server contact somebody
snmp-server chassis-id someid
snmp-server host 10.1.1.90 version 2c community
Any comments ?
Please ?
Heiko
--
-- PREVINET S.p.A. Heiko.Herold at previnet.it
-- Via Ferretto, 1 ph x39-041-5907073
-- I-31021 Mogliano V.to (TV) fax x39-041-5907472
-- ITALY
--
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