Im trying to calculate the 95 percentile of the bandwidth, the same that this template "Interface - Traffic (bits/sec, 95th Percentile)"
I fetch the rrd of the graph and i have all values on a array like this:
For incoming traffic:
Array ( [0] => 506592.951 [1] => 457935.219 [2] => 401245.496 [3] => 291396.302 [4] => 281777.791 [5] => 248980.016 [6] => 239287.475 [7] => 233520.832 [8] => 231141.793 [9] => 199963.971 [10] => 145164.434 [11] => 0 )
For Outgoing traffic:
Array ( [0] => 157479.028 [1] => 147111.252 [2] => 138907.156 [3] => 136944.028 [4] => 93690.039 [5] => 80048.282 [6] => 56325.037 [7] => 48963.503 [8] => 48754.16 [9] => 44342.024 [10] => 27487.774 [11] => 0 )
How can i calculate the 95 percentile? In the graph show that is "4.05 mb in+out"
Thanks for the help.
how to calculate 95 percentile for bandwidth
Moderators: Developers, Moderators
Re: how to calculate 95 percentile for bandwidth
Hi,
I read that for calculate the 95% percentile you have to sort in descending mode the data source, then take the 95% of the samples whitout the bigger samples.
Then take the biggest sample and you get the 95%, someone can confirm this formula??
I read that for calculate the 95% percentile you have to sort in descending mode the data source, then take the 95% of the samples whitout the bigger samples.
Then take the biggest sample and you get the 95%, someone can confirm this formula??
Re: how to calculate 95 percentile for bandwidth
I have the solutions so i posted here. I use the "nth_percentile" function of cacti so i get no problem
Best Regards.
Best Regards.
Re: how to calculate 95 percentile for bandwidth
I have same request. I and luckely found:
http://www.cacti.net/downloads/docs/html/variables.html
So, you can use:
|95:bits:6:aggregate:3| in text or value field
http://www.cacti.net/downloads/docs/html/variables.html
So, you can use:
|95:bits:6:aggregate:3| in text or value field
Who is online
Users browsing this forum: No registered users and 0 guests