[mrtg] Re: Math Calcs with OIDs
PAUL WILLIAMSON
pwilliamson at mandtbank.com
Tue Mar 12 19:28:00 MET 2002
You need two OIDs first. Then you need to do calculations on them.
Target[ch]:1.3.6.1.4.1.23.2.28.2.6.0&OID2:public at 10.5.100.1
/ 1.3.6.1.4.1.23.2.28.2.5.0&OID4:public at 10.5.100.1
This will work. The challenge is finding the two OIDs. Ideally, you would
want to find either two OIDs that return one or use the same OID for
OID2 & OID4.
Paul
>>> "Jader Marasca" <jader at via-intl.com.br> 03/12/02 12:40PM >>>
Hi!
I'm new to MRTG and beside to have several targets configurated ok I'm unable to do math calcs
with OIDs!
I like to configure MRTG to watch CacheHits on a Novell Netware 5. So I did this file
***start of t.cfg file***
Target[ch]:(1.3.6.1.4.1.23.2.28.2.6.0 / 1.3.6.1.4.1.23.2.28.2.5.0):public at 10.5.100.1
Title[ch]: Cache Hits - Proliant 400
MaxBytes[ch]: 100
Options[ch]: gauge, growright
Ylegend[ch]: %
ShortLegend[ch]: %
Legend1[ch]: %
Legend2[ch]: %
Legend3[ch]: %
Legend4[ch]: %
LegendI[ch]: % :
LegendO[ch]:
PageTop[ch]: <H1>Cache Hits - Proliant 400</H1>
*** end of t.cfg file ***
Where:
First OID = 1.3.6.1.4.1.23.2.28.2.6.0 = Cache Hits
Second OID = 1.3.6.1.4.1.23.2.28.2.5.0 = Cache Reads
10.5.100.1 = ip of Proliant 400 server running Netware 5
But I'm getting an error:
Illegal division by 0 at (eval 6) line 1
And do not work!
Someone can help me?
Thanks!
Jáder
[]s,
Jáder
============================================================
Personal e-mail: jader at brturbo.com
--
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