[mrtg] OID, MIB, SNMP -what for eth0 ??

mailserv mailserv at haddow.net
Mon Feb 12 09:02:32 MET 2001


Hi -

I am stumped on something that appears to be pretty easy for the list.  I
have watched postings, read the archives, man pages, snmp FAQ, i.e. i RTFM's
of everything I could find.  I still am not sure where this should even be
posted, but since others are monitoring just about everything, this seemed
the best option..  Here goes, no flames please.

I am trying to monitor and graph a netgear fa310tx ethernet card on eth0.  -
there it is.

My thought is that I should do an snmpwalk to find the available OID for the
NIC card, then use that with configmaker.  From the example below I do not
see an OID for eth0 and web searches for "netgear mib" does not produce an
OID.

I am not sure if I should graph the output from cat /proc/net/dev as an
older post stated. If so, how.

I have been monitoring a couple of routers since installing a couple of
weeks ago.  They just popped up with info using public at xxx.xxx.xxx.xxx .

I thought the posting with the link to http://mrtg.yeehaw.net/ would solve
my problems, nope.

Any help would be appreciated.

Thanks - Craig

Details -
RH linux 6.0, kernel 2.2.12
MRTG 2.9.7
snmpd ucd v. 4.0.1
netgear fa310tx PCI card

Doing an snmpwalk (snmpwalk -v 1 localhost public system) gives the
following:
kernel: /usr/src/linux-2.2.12/kernel /usr/src/linux/kernel
[root at ns1 snmp]# snmpwalk -v 1 localhost public system
system.sysDescr.0 = Linux ns1.domain_here.com 2.2.12-20 #1 Mon Sep 27
10:40:35 EDT 1999 i686
system.sysObjectID.0 = OID: enterprises.ucdavis.ucdSnmpAgent.linux
system.sysUpTime.0 = Timeticks: (5442551) 15:07:05.51
system.sysContact.0 = Root <root at localhost> (configure
/etc/snmp/snmp.local.conf)
system.sysName.0 = ns1.domain_here.com
system.sysLocation.0 = Unknown (edit /etc/snmp/snmpd.conf)
system.sysORLastChange.0 = Timeticks: (0) 0:00:00.00
system.sysORTable.sysOREntry.sysORIndex.1 = 1
system.sysORTable.sysOREntry.sysORIndex.2 = 2
system.sysORTable.sysOREntry.sysORIndex.3 = 3
system.sysORTable.sysOREntry.sysORIndex.4 = 4
system.sysORTable.sysOREntry.sysORIndex.5 = 5
system.sysORTable.sysOREntry.sysORID.1 = OID:
.iso.org.dod.internet.snmpV2.snmpModules.snmpMIB
system.sysORTable.sysOREntry.sysORID.2 = OID:
.iso.org.dod.internet.snmpV2.snmpModules.snmpVacmMIB.v
acmMIBConformance.vacmMIBGroups.vacmBasicGroup
system.sysORTable.sysOREntry.sysORID.3 = OID:
.iso.org.dod.internet.snmpV2.snmpModules.snmpFramework
MIB.snmpFrameworkMIBConformance.snmpFrameworkMIBCompliances.snmpFrameworkMIB
Compliance
system.sysORTable.sysOREntry.sysORID.4 = OID:
.iso.org.dod.internet.snmpV2.snmpModules.snmpMPDMIB.sn
mpMPDMIBConformance.snmpMPDMIBCompliances.snmpMPDCompliance
system.sysORTable.sysOREntry.sysORID.5 = OID:
.iso.org.dod.internet.snmpV2.snmpModules.snmpUsmMIB.us
mMIBConformance.usmMIBCompliances.usmMIBCompliance
system.sysORTable.sysOREntry.sysORDescr.1 = The Mib module for SNMPv2
entities.
system.sysORTable.sysOREntry.sysORDescr.2 = View-based Access Control Model
for SNMP.
system.sysORTable.sysOREntry.sysORDescr.3 = The SNMP Management Architecture
MIB.
system.sysORTable.sysOREntry.sysORDescr.4 = The MIB for Message Processing
and Dispatching.
system.sysORTable.sysOREntry.sysORDescr.5 = The management information
definitions for the SNMP User
-based Security Model.
system.sysORTable.sysOREntry.sysORUpTime.1 = Timeticks: (0) 0:00:00.00
system.sysORTable.sysOREntry.sysORUpTime.2 = Timeticks: (0) 0:00:00.00
system.sysORTable.sysOREntry.sysORUpTime.3 = Timeticks: (0) 0:00:00.00
system.sysORTable.sysOREntry.sysORUpTime.4 = Timeticks: (0) 0:00:00.00
system.sysORTable.sysOREntry.sysORUpTime.5 = Timeticks: (0) 0:00:00.00
End of MIB

Doing a short cfgmaker, I get the following:
[root at ns1 bin]# perl cfgmaker --ifref=ip public at 192.168.0.1
--base: Get Device Info on public at 192.168.0.1:
--base: Vendor Id:
--base: Populating confcache
SNMP Error:
Received SNMP response with error code
  error status: noSuchName
  index 1 (OID: 1.3.6.1.2.1.2.2.1.2)
SNMPv1_Session (remote host: "192.168.0.1" [192.168.0.1].161)
                  community: "public"
                 request ID: 351880956
                PDU bufsize: 8000 bytes
                    timeout: 2s
                    retries: 5
                    backoff: 1)
SNMPWALK Problem for 1.3.6.1.2.1.2.2.1.2 on public at 192.168.0.1:

and continues thru OID:1.....8


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