[mrtg] How to do a bit more arithmetic with returned OID values

Hugh Beedie BeedieH at Cardiff.ac.uk
Thu Jan 25 17:49:19 MET 2001


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



More information about the mrtg mailing list