[mrtg] Re: MRTG and PacketShaper.

MRTG MRTG at Diabelec.com
Wed Oct 17 12:10:06 MEST 2001


Here is my mrtg.cfg file:

WorkDir: H:\InetPub\wwwroot\Mrtg
Directory[Link]: Link
Options[Link]: bits
RunAsDaemon: Yes
Interval: 5

Target[Link]:
1.3.6.1.4.1.2334.2.1.4.2.1.37.1&1.3.6.1.4.1.2334.2.1.4.2.1.37.2:Public at 192.1
68.25.254
SetEnv[Link]: MRTG_INT_IP="192.168.25.254" MRTG_INT_DESCR="Link Traffic"
MaxBytes[Link]: 256000
Title[Link]: Link Traffic
PageTop[Link]: <H1>Link Traffic</H1>
 <TABLE>
   <TR><TD>System:</TD>     <TD>192.168.25.254.</TD></TR>
   <TR><TD>Maintainer:</TD> <TD>Technical Manager.</TD></TR>
   <TR><TD>Description:</TD><TD>Inbound/Outbound Traffic.</TD></TR>
   <TR><TD>Max Speed:</TD>  <TD>256-Kbits/s</TD></TR>
 </TABLE>

I am in Windows environment, and MRTG runs as a service using FireDaemon.

----- Original Message -----
From: "Paul C. Williamson" <pwilliamson at mandtbank.com>
To: <MRTG at Diabelec.com>
Sent: Friday, October 12, 2001 3:18 pm
Subject: Re: [mrtg] Re: MRTG and PacketShaper.


What does the Target[ezwf]: line look like?  I bet you don't have the full
path to
your external script, or the script is not marked as executable.

Paul

>>> "MRTG" <MRTG at Diabelec.com> 10/12/01 02:37AM >>>
Paul,

Thank you for the tips. Based on what your suggestions, we are making
progress, but we are not quite there yet.

We have corrected the OIDs to two per graph with an & in between, MRTG does
not seem to complain about that aspect any more, the error message now reads
as copied below:

The name specified is not recognized as an
internal or external command, operable program or batch file.
WARNING: rateup died from Signal 0
 with Exit Value 1 when doing router '195.14.153.202_1'
 Signal was 0, Returncode was 1
The name specified is not recognized as an
internal or external command, operable program or batch file.
WARNING: rateup died from Signal 0
 with Exit Value 1 when doing router '195.14.153.202_2'
 Signal was 0, Returncode was 1

Other than putting two (valid) OIDs per graph and removing the loadmibs
commands, the mrtg.cfg file is essentially unchanged.

What could be causing the above error messages?

Thank you for your assistance.

George Jahchan

----- Original Message -----
From: "Paul C. Williamson" <pwilliamson at mandtbank.com>
To: <MRTG at Diabelec.com>; <Mrtg at List.ee.ethz.ch>
Sent: Thursday, October 11, 2001 3:29 pm
Subject: [mrtg] Re: MRTG and PacketShaper.



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





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