[mrtg] Re: How to do a bit more arithmetic with returned OID valu es

Dave Jones DJones at TheFund.com
Thu Jan 25 19:01:12 MET 2001


If I'm not mistaken, I believe you can do any kind of mathmatical functions
to the values returned by OID's.  For instance:

I graph the temperature of a couple of Cisco 7200 routers.  It records it in
Celsius and the below arithmetic changes it to Farenheit.

1.3.6.1.4.1.9.9.13.1.3.1.3.1&1.3.6.1.4.1.9.9.13.1.3.1.3.3:public at 172.16.1.1
* 1.8 + 32

HTH,

Dave
-----Original Message-----
From: Hugh Beedie [mailto:BeedieH at Cardiff.ac.uk]
Sent: Thursday, January 25, 2001 12:49 PM
To: 'mrtg at list.ee.ethz.ch'
Subject: [mrtg] How to do a bit more arithmetic with returned OID values



Hi,

Although a recent newcomer to configuring MRTG, I have read all the 
manuals and Email archives, but can't find an answer to my problem. 
Can anyone help please ?

I want to graph two values, one of which is a %, and thus maximum 
value is 100, whilst the other is a value up to 1000. Therefore I 
want to scale just one of these values by dividing by 10.

It appears that a line like the following can divide one pair of 
OID values by another.

Target[BUTECF1R.1]: 
1.3.6.1.2.1.25.3.3.1.2.1&1.3.6.1.4.1.23.2.28.3.4.0:public at BUTECF1R: / 
1.3.6.1.2.1.25.3.2.1.1.1&1.3.6.1.2.1.25.3.2.1.1.1:public at BUTECF1R:

What I can't find out is how to divide one of the pair of values by a 
fixed number such as 10.

Any ideas (other than attempting to find an OID value that is always 
10) ?

Hugh
Hugh Beedie
Head of Networks and Distributed Systems
Information Services
Cardiff University

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