[mrtg] Re: Percentage and calculation with OIDs ??

Koelstra, J. (Jan) JKoelstra at MINSZW.NL
Tue Nov 26 15:45:10 MET 2002


Ballo,

There are 2 things to consider:
1. All numbers in MRTG are rounded down to integers.
2. Values bigger than 'Maxbytes' are ignored.

%Error = RF/(RF+TF)*100 is right, but your target line doesn't contain the *100.
Since a percentage can go up to 100 you have to set the Maxbytes to 100 (or more) and leave out the 'factor' line (all calculations is now done at the targetline)

Some other changes you can make:
 -Add 'nopercent' to the options line
 -Add a line to your config: Shortlegend[bmbms]: %

HTH,

Jan.


-----Original Message-----
From: BALLO Ismaël [mailto:iballo at afribone.net.ml] 
Sent: Tuesday, November 26, 2002 3:15 PM
To: mrtg at list.ee.ethz.ch
Subject: [mrtg] Percentage and calculation with OIDs ??



Hi,

I use a formula to obtain Frame Error Rate for a radio-modem :

%Error = RF/(RF+TF)*100

where RF : Retransmitted Frame
TF : Transmitted Frame.

In terms of OIDS for BreezeAccess Products, it gives :
WorkDir: /home
Target[bmbms]: 1.3.6.1.4.1.710.3.3.8.2.3.3.0&1.3.6.1.4.1.710.3.3.8.2.3.3.0:public at bmbms / (1.3.6.1.4 .1.710.3.3.8.2.3.3.0&1.3.6.1.4.1.710.3.3.8.2.3.3.0:public at bmbms + 1.3.6.1.4.1.710.3.3.8.2.3.1.0&1.3.
6.1.4.1.710.3.3.8.2.3.1.0:public at bmbms)
Unscaled[bmbms]: ym
MaxBytes[bmbms]: 1
Factor[bmbms]: 100
Suppress[bmbms]: y
Options[bmbms]:  gauge, nobanner, transparent, noo, dorelpercent
#Xsize[bmbms]: 600
#Ysize[bmbms]: 200
YLegend[bmbms]: % Error
LegendO[bmbms]:  Frame Error Rate
Legend2[bmbms]: Errors in %
Title[bmbms]:  Frame Errors.
PageTop[bmbms]: Average Signal Strength / Errors -- Sample.


But, unfortunately, I don't receive what I expect.
I 've got no errors but obtain always 0.
MRTG does some round maybe or do i have to use an option ? MaxBytes confuses me but it complains in not using it in cfg file.

TIA.

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