[mrtg] Re: Adding two OID together
David Gabler
dgabler at americomusa.net
Thu Mar 16 17:51:04 MET 2000
I would suggest reading the documentation, specifically the RouterUptime
example under "Configuration for each Target you want to monitor ".
http://ee-staff.ethz.ch/~oetiker/webtools/mrtg/config.html
Then after reading that read the "Target" subsection under the same section,
specifically
"You can also explicitly define the OID to query by using the following syntax
'OID_1&OID_2:community at router' The following example will retrieve error counts
for input and output on interface 1. MRTG needs to graph two variables, so you
need to specify two OID's such as temperature and humidity or error input and
error output.
Example:
Target[ezwf]:
1.3.6.1.2.1.2.2.1.14.1&1.3.6.1.2.1.2.2.1.20.1:public at myrouter
"
If you read that you should understand.
At 05:14 PM 3/16/00 +0200, Steven Sporen wrote:
>Hi,
>
>I've got a weird problem that I don't understand, I got the OID for CAR on a
>Cisco Router (Thanx Marc), I'd like to add two values together for
>SwitchedBytes and FilteredBytes - (not too sure if that's correct, I want to
>should to bandwidth used on that access list) so I tried to put the
>following into my CFG file
>
>Target[International]:
>1.3.6.1.4.1.9.9.82.1.2.1.1.2.3.2.1&1.3.6.1.4.1.9.9.82.1.2.1.1.4.3.2.1:mrtg at 1
>71.29.158.2
>
>That worked but doesn't add the two values together. I tried just
>
>Target[International]: 1.3.6.1.4.1.9.9.82.1.2.1.1.2.3.2.1:mrtg at 171.29.158.2
>
>but that didn't work, then I tried
>
>Target[International]:
>1:1.3.6.1.4.1.9.9.82.1.2.1.1.2.3.2.1:mrtg at 171.29.158.2 +
>2:1.3.6.1.4.1.9.9.82.1.2.1.1.4.3.2.1:mrtg at 171.29.158.2
>
>Also didn't work.
>
>So the question is, how do I add the values together?
>
>Thanx for your help!
>
> Regards
> Steven Sporen
>
>Snr Network Admin, ECnet | www.ecnet.co.za
>
>--
>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
>
----------
David Gabler Project Manager, Network Services
Americom USA Phone 805.545.5078
----------
--
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
More information about the mrtg
mailing list