flowview numbers don't match with graph

General discussion about Plugins for Cacti

Moderators: Developers, Moderators

Post Reply
fireman63
Posts: 8
Joined: Mon Aug 16, 2010 3:31 pm

flowview numbers don't match with graph

Post by fireman63 »

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.
Attachments
flowview capture.PNG
flowview capture.PNG (70.09 KiB) Viewed 3824 times
User avatar
TheWitness
Developer
Posts: 17047
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Re: flowview numbers don't match with graph

Post by TheWitness »

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?
Babel
Posts: 29
Joined: Sat Feb 07, 2009 8:05 am

Re: flowview numbers don't match with graph

Post by Babel »

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?
Babel
Posts: 29
Joined: Sat Feb 07, 2009 8:05 am

Re: flowview numbers don't match with graph

Post by Babel »

In confirmation of my words
Attachments
flowview.png
flowview.png (51.63 KiB) Viewed 3586 times
torabora
Posts: 7
Joined: Wed Aug 08, 2012 3:17 am

Re: flowview numbers don't match with graph

Post by torabora »

Hi!
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");
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():

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");
        }
}
It works for me.
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/
jOhne
Posts: 2
Joined: Wed Oct 14, 2015 5:28 pm

Re: flowview numbers don't match with graph

Post by jOhne »

works a treat the above code :)
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest