[mrtg-developers] Percentage calculation in graph legends

S Shipway s.shipway at auckland.ac.nz
Thu Dec 31 22:02:37 CET 2009


'Native MRTG' is when you run MRTG without RRDTool, so you're in RRDTool mode, not Native mode :)

Anyway, it looks like you have a very old version of MRTG - 2.16.2 is the current - and also a very old RRDTool, since you should be on at least 1.2.36 and preferably v1.3.6.

In addition, since you are using the old 14all.cgi,  this has the 'feature' of using the peak of the averages rather than the peak of the peaks in the percent calculation, and you will get this anomaly.  Try upgrading to the latest version, or use Routers2.cgi in the place of 14all to get more accurate results.

Steve

________________________________
From: nisha [via MRTG Mailinglists] [ml-node+4235093-437877940 at n2.nabble.com]
Sent: Thursday, 31 December 2009 4:25 p.m.
To: Steve Shipway
Subject: RE: [mrtg-developers] Percentage calculation in graph legends

Hi Steve,

Im using the Native MRTG (v2.100015) with 14all.cgi (v1.1p15) and RRDTool (1.0.50).
This issue is seen on both monthly and yearly graphs and only for the maximal value.

Thanks,
Nisha

S Shipway wrote:
Can you tell use (a) which software you are using (eg, Native MRTG, Routers2, 14all, etc...) and what version, and also what version of RRDTool (if you are using RRD)?

It is possible that the percentage is being calculated on the max of the AVG RRA for the month, rather than the max of the MAX RRA.

Steve

________________________________
From: nisha [via MRTG Mailinglists] [mailto:ml-node+4231659-1307958137 at n2.nabble.com]
Sent: Wednesday, 30 December 2009 11:08 p.m.
To: Steve Shipway
Subject: [mrtg-developers] Percentage calculation in graph legends

Hi All,

The graph legend display the percentage in parenthesis as shown in the figure.

[http://n2.nabble.com/file/n4231659/monthly.png]

The current and average legends show the exact value and percentage. But in case of the Maximal legend, though the value is 23.937, the percentage is calculated as 23.04% instead of 23.94% [(23.937/100)*100].

As per my understanding the percentage is always calculated as [(value/max bytes) * 100 ]. In this case the maxbytes value is 100.
Is the percentage calculation different for current, average and maximal values?

Regards,
Nisha
________________________________
View message @ http://n2.nabble.com/Percentage-calculation-in-graph-legends-tp4231659p4231659.html
To start a new topic under MRTG Developers Mailinglist, email ml-node+795384-1747653317 at n2.nabble.com
To unsubscribe from MRTG Developers Mailinglist, click here< (link removed) =>.


________________________________
View message @ http://n2.nabble.com/Percentage-calculation-in-graph-legends-tp4231659p4235093.html
To start a new topic under MRTG Developers Mailinglist, email ml-node+795384-1747653317 at n2.nabble.com
To unsubscribe from MRTG Developers Mailinglist, click here< (link removed) =>.


-- 
View this message in context: http://n2.nabble.com/Percentage-calculation-in-graph-legends-tp4231659p4237925.html
Sent from the MRTG Developers Mailinglist mailing list archive at Nabble.com.



More information about the mrtg-developers mailing list