[mrtg] Re: 5300 MRTG/OID question
ncalvert at cabletron.com
Tue Nov 30 21:17:14 MET 1999
that sounds right, but external scripts aren't so bad. especially if
you're running a unix or linux variant.
if you get some command line SNMP tools you can manually SNMPGET the
OIDs you are interested in, use awk to snatch the numerical value you
need, then run the math.
I use external scripts extensively in Solaris machines to get processor
usage and disk space and other useful things. MRTG will happily take a
script output as long as it's output is of the form
<first value to be graphed>
<second value to be graphed>
the MRTG docs show more info on how to incorporate scripts, and the
archives on this mailing list have a few examples also. if you do some
digging I'm sure you'll get it working.
From: Brantley Jones <bjones at centurytel.net>
To: David C Prall <dcp at dcptech.com>
Cc: mrtg at list.ee.ethz.ch <mrtg at list.ee.ethz.ch>
Date: Tuesday, November 30, 1999 2:58 PM
Subject: [mrtg] Re: 5300 MRTG/OID question
>At 12:29 PM 11/30/1999 -0500, David C Prall wrote:
>> > That was a good idea, but I couldn't get it to work. What am I
>> > Target[ras]: 184.108.40.206.220.127.116.11.18.104.22.168.0:public at ras -
>> > 22.214.171.124.126.96.36.199.188.8.131.52.0:public at ras
>> > &184.108.40.206.220.127.116.11.18.104.22.168.0:public at ras
>> > Is subtraction possible?? It's not in the docs...I'm trying to
>> > calling an external script.
>> > Thanks,
>> > Brantley
>>You need both an IN & OUT OID.
>>Target[ras]: IN&OUT:public at ras - IN&OUT:public at ras
>>You could do ISDN only as the IN and do Analog only as the OUT. By
>>reversing the OID's. Or something along those lines.
>>David C Prall, CCNA MCNE MCSE DCP Technologies
>>dcp at dcptech.com Alexandria, VA
>>dcppage at dcptech.com http://www.dcptech.com
>Thanks for the help! I still think that doesn't work. here's where
>I need the IN value to be ISDN usage (not analog usage) (OID - another
>and the OUT value to be total port usage (just one OID). I don't think
>can be done, not with addition and subtraction and not without using an
>external script :(
>Let me know if I'm wrong...
>* To unsubscribe from the mrtg mailing list, send a message with the
> subject: unsubscribe to mrtg-request at list.ee.ethz.ch
>* The mailing list archive is at http://www.ee.ethz.ch/~slist/mrtg
* To unsubscribe from the mrtg mailing list, send a message with the
subject: unsubscribe to mrtg-request at list.ee.ethz.ch
* The mailing list archive is at http://www.ee.ethz.ch/~slist/mrtg
More information about the mrtg