I have recently setup flowview playing round with the reporting I noticed something and I am not sure why or how to fix it.
The Bytes shows likes 2.28GB but the graph shows 24.52GB. And this seems to be for anything. Basicly it appers something is off by x10 what one is it and how do I fix it.
flowview numbers don't match with graph
Moderators: Developers, Moderators
flowview numbers don't match with graph
- Attachments
-
- flowview capture.PNG (70.09 KiB) Viewed 3819 times
- TheWitness
- Developer
- Posts: 17047
- Joined: Tue May 14, 2002 5:08 pm
- Location: MI, USA
- Contact:
Re: flowview numbers don't match with graph
Well that ones odd, which is incorrect? I'm thinking the graph.
True understanding begins only when we realize how little we truly understand...
Life is an adventure, let yours begin with Cacti!
Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages
For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
Life is an adventure, let yours begin with Cacti!
Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages
For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
Re: flowview numbers don't match with graph
I have similar problem.
Cacti Version 0.8.7g
Flowview plugin Version 1.1
Please help me understand what wrong or how I could corrected this...
Could I hope that in new version this will fixed?
May be better looking for other frontend?
Cacti Version 0.8.7g
Flowview plugin Version 1.1
Please help me understand what wrong or how I could corrected this...
Could I hope that in new version this will fixed?
May be better looking for other frontend?
Re: flowview numbers don't match with graph
In confirmation of my words
- Attachments
-
- flowview.png (51.63 KiB) Viewed 3581 times
Re: flowview numbers don't match with graph
Hi!
I have solved this issue. In functions.php there is a bug in calculate algorithm.
In these strings is missing one zero
so Gigabytes calculates incorrectly.
And to have an IT Kilo/Mega/Gigabytes (x1024) we need to use another numbers.
Here is my version of function flowview_autoscale():
It works for me.
P.S. I have deleted strings to calculate "P" (Peta?)
I have solved this issue. In functions.php there is a bug in calculate algorithm.
In these strings is missing one zero
Code: Select all
}elseif ($value < 10000000000) {
return array(100000000, "G");
And to have an IT Kilo/Mega/Gigabytes (x1024) we need to use another numbers.
Here is my version of function flowview_autoscale():
Code: Select all
function flowview_autoscale($value) {
if ($value < 1024) {
return array(1, "");
}elseif ($value < 1048576) {
return array(1024, "Kb");
}elseif ($value < 1073741824) {
return array(1048576, "Mb");
}else {
return array(1073741824, "Gb");
}
}
P.S. I have deleted strings to calculate "P" (Peta?)
Alt Cacti-server alpha
You can download current ISO here - ftp://ftp.linux.kiev.ua/pub/Linux/ALT/p ... ISO/cacti/
You can download current ISO here - ftp://ftp.linux.kiev.ua/pub/Linux/ALT/p ... ISO/cacti/
Re: flowview numbers don't match with graph
works a treat the above code
Who is online
Users browsing this forum: No registered users and 1 guest