[mrtg] Re: MRTG and PacketShaper.

Paul C. Williamson pwilliamson at mandtbank.com
Thu Oct 11 15:29:33 MEST 2001


Hi,

I see two immediate problems with your config, without even 
getting to the actual error (which I'll address in a sec...)

You need two OIDs for MRTG to work.  Period.  If you try it with 
any number of OIDs that is not 2, including, but not limited to:
1,3,4,5 and 6, MRTG will not function.  (I suddenly had a flashback 
to Monty Python's The Holy Grail and the sacred egg grenade...).

Second, if you are going to use up resources to do a LoadMib, at 
least use them in the target call.  If you are going to use the OID, 
don't waste the resources to load the MIB.

As for your error, have you tried to grab the value of the OID from 
the command line?

Paul

>>> "MRTG" <MRTG at Diabelec.com> 10/11/01 08:29AM >>>

Hi,

We need to graph traffic statistics from a PacketShaper which uses the
following OID for traffic classes:

1.3.6.1.4.1.2334.2.1.4.2.1.37.XXXX where XXXX is the traffic class
identifier.

Using the following Mrtg.cfg file:

##########################################################################
WorkDir: H:\InetPub\wwwroot\Mrtg
LoadMIBs: D:\Program Files\Mrtg-2.9.4\Mibs\Packeteer.mib
LoadMIBs: D:\Program Files\Mrtg-2.9.4\Mibs\PacketeerRTM.mib
LoadMIBs: D:\Program Files\Mrtg-2.9.4\Mibs\OIDs.mib
LoadMIBs: D:\Program Files\Mrtg-2.9.4\Mibs\RFC1213.mib
Directory[Inbound]: Inbound
Directory[Outbound]: Outbound
Options[Inbound]: bits
Options[Outbound]: bits
RunAsDaemon: Yes
Interval: 5

Target[Inbound]: 1.3.6.1.4.1.2334.2.1.4.2.1.37.1:Public at 192.168.25.254 
SetEnv[Inbound]: MRTG_INT_IP="192.168.25.254" MRTG_INT_DESCR="Inbound"
MaxBytes[Inbound]: 256000
Title[Inbound]: Inbound Traffic
PageTop[Inbound]: <H1>Inbound Traffic</H1>
 <TABLE>
   <TR><TD>System:</TD>     <TD>PacketShaper.</TD></TR>
   <TR><TD>Maintainer:</TD> <TD>Contact.</TD></TR>
   <TR><TD>Description:</TD><TD>Inbound Traffic.</TD></TR>
   <TR><TD>Max Speed:</TD>  <TD>256-Kbits/s</TD></TR>
 </TABLE>


Target[Outbound]: 1.3.6.1.4.1.2334.2.1.4.2.1.37.2:Public at 192.168.25.254 
SetEnv[Outbound]: MRTG_INT_IP="192.168.25.254" MRTG_INT_DESCR="Outbound"
MaxBytes[Outbound]: 256000
Title[Outbound]: Outbound Traffic Analysis
PageTop[Outbound]: <H1>Outbound Traffic</H1>
 <TABLE>
   <TR><TD>System:</TD>     <TD>PacketShaper.</TD></TR>
   <TR><TD>Maintainer:</TD> <TD>Contact.</TD></TR>
   <TR><TD>Description:</TD><TD>Outbound Traffic.</TD></TR>
   <TR><TD>Max Speed:</TD>  <TD>256-Kbits/s</TD></TR>
 </TABLE>
############################################################################
#

the error log file shows the following:

SNMP Error:
Received SNMP response with error code
  error status: noSuchName
  index 1 (OID: 1.3.6.1.2.1.2.2.1.10.1)
SNMPv1_Session (remote host: "192.168.25.254" [192.168.25.254].161
                  community: "Public"
                 request ID: 821314713
                PDU bufsize: 8000 bytes
                    timeout: 2s
                    retries: 5
                    backoff: 1)
SNMPGET Problem for ifInOctets.1 ifOutOctets.1 sysUptime sysName on
Public at 192.168.25.254 
SNMP Error:
Received SNMP response with error code
  error status: noSuchName
  index 1 (OID: 1.3.6.1.2.1.2.2.1.10.1)
SNMPv1_Session (remote host: "192.168.25.254" [192.168.25.254].161
                  community: "Public"
                 request ID: 821314714
                PDU bufsize: 8000 bytes
                    timeout: 2s
                    retries: 5
                    backoff: 1)
SNMPGET Problem for ifInOctets.2 ifOutOctets.2 sysUptime sysName on
Public at 192.168.25.254 

###

>From the above, MRTG is looking for OID: 1.3.6.1.2.1.2.2.1.10.1.X which is
not applicable to the PacketShaper, we need it to poll OID
1.3.6.1.4.1.2334.2.1.4.2.1.37.X.

Any idea how we can make MRTG fish for the required variables and not its
(Cisco) defaults?


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