[mrtg] Grpahing RMON variables

Christopher Poetzel cpoetzel at achilles.ctd.anl.gov
Thu Jun 28 20:26:03 MEST 2001


I am grying to graph some RMON variables with mrtg-2.9.16, redhat 7.1,
rrdtool/14all.cgi and have having difficulties.  Specifically i want,

etherStatsCRCAlignErrors
etherStatsUndersizePkts
etherStatsCollisions
etherStatsBroadcastPkts
etherStatsMulticastPkts
If i do a
>snmpwalk x.x.x.x  xxxxyyy .1.3.6.1.2.1.16.1.1.1.7    i get

16.1.1.1.7.32 = 0
16.1.1.1.7.48 = 0
16.1.1.1.7.160 = 0
16.1.1.1.7.176 = 0
16.1.1.1.7.192 = 0
16.1.1.1.7.208 = 0
16.1.1.1.7.224 = 0    ...etc.

These .32, .48 etc are the indexing that RMON uses.  if you do a
>snmpwalk x.x.x.x xxxxyyy .1.3.6.1.2.1.16.1.1.1.2

16.1.1.1.2.32 = OID: interfaces.ifTable.ifEntry.ifIndex.3
16.1.1.1.2.48 = OID: interfaces.ifTable.ifEntry.ifIndex.4
16.1.1.1.2.160 = OID: interfaces.ifTable.ifEntry.ifIndex.11
16.1.1.1.2.176 = OID: interfaces.ifTable.ifEntry.ifIndex.12

you can see how this ties into the ifIndexing which MRTG uses.
Below is the releavent cfg portion and the error output.  Is there someway
to get mrtg to use the correct RMON instance variable or any other way to
get this to work.  Looking at comp.dcomp.net-management i see that people
are doing this but still couldn't find out how.  I suppose i could create
a script to map the ifindex to the RMON instance variable.  Has anyone
done this or got this working?

Thanks in advance,
chris poetzel
cpoetzel at anl.gov
argonne national lab
CCNA

 Here is the
relavant config section, usring ifdescr=name on a catalyst 6509 switch;

### Interface 1 >> Descr: 'sc0' | Name: 'sc0' | Ip: '' | Eth:  ###

Target[x.x.x.x_sc0_MulIN]: 1.3.6.1.2.1.16.1.1.1.7#sc0&1.3.6.1.2.1.16.1.1.1.7#sc0:xxxx at x.x.x.x:
SetEnv[x.x.x.x_sc0_MulIN]: MRTG_INT_IP="" MRTG_INT_DESCR="sc0"
Directory[x.x.x.x_sc0_MulIN]: 10.10.221.1
MaxBytes[x.x.x.x_sc0_MulIN]: 1250000
Title[x.x.x.x_sc0_MulIN]: #sc0  10.0 MBytes/s --
PageTop[x.x.x.x_sc0_MulIN]: <H1>#sc0  10.0 MBytes/s -- </H1>



SNMP Error:
Received SNMP response with error code
  error status: noSuchName
  index 2 (OID: 1.3.6.1.2.1.16.1.1.1.7.1)
SNMPv1_Session (remote host: "x.x.x.x" [x.x.x.x].161)
                  community: "xxxxx"
                 request ID: 1176991967
                PDU bufsize: 8000 bytes
                    timeout: 2s
                    retries: 5
                    backoff: 1)
 at /usr/local/mrtg-2.9.16/bin/../lib/mrtg2/SNMP_util.pm line 450
SNMPGET Problem for ifName.1 1.3.6.1.2.1.16.1.1.1.7.1 ifName.1
1.3.6.1.2.1.16.1.1.1.7.1 on xxxxx at x.x.x.x:
 at ../bin/mrtg line 1485
WARNING: could not match&get x.x.x.x:/1.3.6.1.2.1.16.1.1.1.7 for Name
'sc0'




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