[mrtg] Using MRTG when you can only read under 1.3.6.1.2.1.2

Andy Cowell andy at cowell.org
Tue Feb 20 20:44:09 MET 2001


I have a Cisco 7200, not under my administrative control, in which I
am limited to reading under the mib-2.2 subtree (1.3.6.1.2.1.2).  MRTG
keeps failing trying to read 1.3.6.1.2.1.1.3.0 (sysUpTime).  Why is
this, and how can I get around it?

(Note: I'm no SNMP expert)

Rather than using cfgmaker, I tried to follow the "How can I monitor
<whatever>?" FAQ at http://faq.mrtg.org/FAQ006.html (and the archives
search didn't seem to be working).  Here's the config I used, which is
what cfgmaker usually generates munged by me:

WorkDir: /opt/mrtg/mrtg/htdocs
Options[_]: bits

Target[bs1_4]: 1.3.6.1.2.1.2.2.1.10.4&1.3.6.1.2.1.2.2.1.16.4:NOCCOM at 10.0.0.1
SetEnv[bs1_4]: MRTG_INT_IP="" MRTG_INT_DESCR="Hssi6/0.1"
MaxBytes[bs1_4]: 45045000
Title[bs1_4]: Traffic Analysis for 4 -- 
PageTop[bs1_4]: <H1>Traffic Analysis for 4 -- </H1>
 <TABLE>
   <TR><TD>System:</TD>     <TD> in </TD></TR>
   <TR><TD>Maintainer:</TD> <TD></TD></TR>
   <TR><TD>Description:</TD><TD>Hssi6/0.1  </TD></TR>
   <TR><TD>ifType:</TD>     <TD>frame-relay (32)</TD></TR>
   <TR><TD>ifName:</TD>     <TD></TD></TR>
   <TR><TD>Max Speed:</TD>  <TD>45045000 Bits/s</TD></TR>
 </TABLE>

When it runs, this is what I get:

kwsn120:/opt/mrtg/mrtg$ bin/mrtg configs/bs1.cfg 
SNMP Error:
Received SNMP response with error code
  error status: noSuchName
  index 3 (OID: 1.3.6.1.2.1.1.3.0)
SNMPv1_Session (remote host: "10.0.0.1" [10.0.0.1].161
                  community: "NOCCOM"
                 request ID: 1939497444
                PDU bufsize: 8000 bytes
                    timeout: 2s
                    retries: 5
                    backoff: 1)
SNMPGET Problem for 1.3.6.1.2.1.2.2.1.10.4 1.3.6.1.2.1.2.2.1.16.4 sysUptime sysName on NOCCOM at 10.0.0.1

Here's an snmpwalk:

kwsn120:[/home/acowell/src/ucd-snmp-4.2] ./apps/snmpwalk 10.0.0.1 NOCCOM
Cannot find module (IP-MIB): At line 0 in (none)
Cannot find module (IF-MIB): At line 0 in (none)
Cannot find module (TCP-MIB): At line 0 in (none)
Cannot find module (UDP-MIB): At line 0 in (none)
Cannot find module (SNMPv2-MIB): At line 0 in (none)
Cannot find module (SNMPv2-SMI): At line 0 in (none)
Cannot find module (UCD-SNMP-MIB): At line 0 in (none)
Cannot find module (UCD-DEMO-MIB): At line 0 in (none)
Cannot find module (SNMP-VIEW-BASED-ACM-MIB): At line 0 in (none)
Cannot find module (SNMP-COMMUNITY-MIB): At line 0 in (none)
Cannot find module (UCD-DLMOD-MIB): At line 0 in (none)
Cannot find module (SNMP-FRAMEWORK-MIB): At line 0 in (none)
Cannot find module (SNMP-MPD-MIB): At line 0 in (none)
Cannot find module (SNMP-USER-BASED-SM-MIB): At line 0 in (none)
Cannot find module (SNMP-NOTIFICATION-MIB): At line 0 in (none)
Cannot find module (SNMP-TARGET-MIB): At line 0 in (none)
Cannot find module (SNMPv2-TM): At line 0 in (none)
.iso.3.6.1.2.1.2.1.0 = 4
.iso.3.6.1.2.1.2.2.1.1.1 = 1
.iso.3.6.1.2.1.2.2.1.1.2 = 2
.iso.3.6.1.2.1.2.2.1.1.3 = 3
.iso.3.6.1.2.1.2.2.1.1.4 = 4
.iso.3.6.1.2.1.2.2.1.2.1 = "FastEthernet0/0"
.iso.3.6.1.2.1.2.2.1.2.2 = "Hssi6/0"
.iso.3.6.1.2.1.2.2.1.2.3 = "Loopback0"
.iso.3.6.1.2.1.2.2.1.2.4 = "Hssi6/0.1"
.iso.3.6.1.2.1.2.2.1.3.1 = 6
.iso.3.6.1.2.1.2.2.1.3.2 = 32
.iso.3.6.1.2.1.2.2.1.3.3 = 24
.iso.3.6.1.2.1.2.2.1.3.4 = 32
.iso.3.6.1.2.1.2.2.1.4.1 = 1500
.iso.3.6.1.2.1.2.2.1.4.2 = 4470
.iso.3.6.1.2.1.2.2.1.4.3 = 1514
.iso.3.6.1.2.1.2.2.1.4.4 = 4470
.iso.3.6.1.2.1.2.2.1.5.1 = Gauge32: 100000000
.iso.3.6.1.2.1.2.2.1.5.2 = Gauge32: 45045000
.iso.3.6.1.2.1.2.2.1.5.3 = Gauge32: 4294967295
.iso.3.6.1.2.1.2.2.1.5.4 = Gauge32: 45045000
.iso.3.6.1.2.1.2.2.1.6.1 =  Hex: 00 90 BF 0D B0 00 
.iso.3.6.1.2.1.2.2.1.6.2 = ""
.iso.3.6.1.2.1.2.2.1.6.3 = ""
.iso.3.6.1.2.1.2.2.1.6.4 = ""
.iso.3.6.1.2.1.2.2.1.7.1 = 1
.iso.3.6.1.2.1.2.2.1.7.2 = 1
.iso.3.6.1.2.1.2.2.1.7.3 = 1
.iso.3.6.1.2.1.2.2.1.7.4 = 1
.iso.3.6.1.2.1.2.2.1.8.1 = 1
.iso.3.6.1.2.1.2.2.1.8.2 = 1
.iso.3.6.1.2.1.2.2.1.8.3 = 1
.iso.3.6.1.2.1.2.2.1.8.4 = 1
.iso.3.6.1.2.1.2.2.1.9.1 = Timeticks: (1753611027) 202 days, 23:08:30.27
.iso.3.6.1.2.1.2.2.1.9.2 = Timeticks: (1497807136) 173 days, 8:34:31.36
.iso.3.6.1.2.1.2.2.1.9.3 = Timeticks: (582) 0:00:05.82
.iso.3.6.1.2.1.2.2.1.9.4 = Timeticks: (514) 0:00:05.14
.iso.3.6.1.2.1.2.2.1.10.1 = Counter32: 2950424481
.iso.3.6.1.2.1.2.2.1.10.2 = Counter32: 1272571430
.iso.3.6.1.2.1.2.2.1.10.3 = Counter32: 0
.iso.3.6.1.2.1.2.2.1.10.4 = Counter32: 1242411010
.iso.3.6.1.2.1.2.2.1.11.1 = Counter32: 2169958713
.iso.3.6.1.2.1.2.2.1.11.2 = Counter32: 3353933104
.iso.3.6.1.2.1.2.2.1.11.3 = Counter32: 0
.iso.3.6.1.2.1.2.2.1.12.1 = Counter32: 21551692
.iso.3.6.1.2.1.2.2.1.12.2 = Counter32: 0
.iso.3.6.1.2.1.2.2.1.12.3 = Counter32: 0
.iso.3.6.1.2.1.2.2.1.13.1 = Counter32: 26
.iso.3.6.1.2.1.2.2.1.13.2 = Counter32: 4
.iso.3.6.1.2.1.2.2.1.13.3 = Counter32: 0
.iso.3.6.1.2.1.2.2.1.14.1 = Counter32: 1
.iso.3.6.1.2.1.2.2.1.14.2 = Counter32: 510810
.iso.3.6.1.2.1.2.2.1.14.3 = Counter32: 0
.iso.3.6.1.2.1.2.2.1.15.1 = Counter32: 0
.iso.3.6.1.2.1.2.2.1.15.2 = Counter32: 285978
.iso.3.6.1.2.1.2.2.1.15.3 = Counter32: 0
.iso.3.6.1.2.1.2.2.1.16.1 = Counter32: 2638552312
.iso.3.6.1.2.1.2.2.1.16.2 = Counter32: 1592468591
.iso.3.6.1.2.1.2.2.1.16.3 = Counter32: 0
.iso.3.6.1.2.1.2.2.1.16.4 = Counter32: 1659881855
.iso.3.6.1.2.1.2.2.1.17.1 = Counter32: 3339718293
.iso.3.6.1.2.1.2.2.1.17.2 = Counter32: 2133928195
.iso.3.6.1.2.1.2.2.1.17.3 = Counter32: 32578
.iso.3.6.1.2.1.2.2.1.18.1 = Counter32: 6846968
.iso.3.6.1.2.1.2.2.1.18.2 = Counter32: 0
.iso.3.6.1.2.1.2.2.1.18.3 = Counter32: 0
.iso.3.6.1.2.1.2.2.1.19.1 = Counter32: 0
.iso.3.6.1.2.1.2.2.1.19.2 = Counter32: 31214097
.iso.3.6.1.2.1.2.2.1.19.3 = Counter32: 0
.iso.3.6.1.2.1.2.2.1.20.1 = Counter32: 6
.iso.3.6.1.2.1.2.2.1.20.2 = Counter32: 0
.iso.3.6.1.2.1.2.2.1.20.3 = Counter32: 0
.iso.3.6.1.2.1.2.2.1.21.1 = Gauge32: 0
.iso.3.6.1.2.1.2.2.1.21.2 = Gauge32: 0
.iso.3.6.1.2.1.2.2.1.21.3 = Gauge32: 0
.iso.3.6.1.2.1.2.2.1.22.1 = OID: .ccitt.0
.iso.3.6.1.2.1.2.2.1.22.2 = OID: .ccitt.0
.iso.3.6.1.2.1.2.2.1.22.3 = OID: .ccitt.0

Thanks for you help.

--
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