graphed line does not match gprint value?

Post general support questions here that do not specifically fall into the Linux or Windows categories.

Moderators: Developers, Moderators

Post Reply
phrawzty
Posts: 12
Joined: Fri Apr 21, 2006 3:01 pm
Location: Montreal, Canada

graphed line does not match gprint value?

Post by phrawzty »

Hello all,

I've been using Cacti successfully for a couple of years now, and i haven't really felt the need to post too many questions during that period of time. Generally speaking, it works, and it works well. :)

Unfortunately, i've recently encounted a graph anomaly that's got me a little bit confused: on one of my graphs, the line doesn't appear to match the associated gprint value. Specifically, the line is consistently showing higher values than the "MAX" of its gprint. Some screenies:

Image
(yes, i realise there are some gaps - i'm not concerned with them at this time.)

And if we zoom in:
Image

As you can see, the dark blue "identified" line has numerous peaks in the 10 to 15 range; however, the associated gprint shows a MAX value of 6. Interestingly, the other two lines seem to match up with their gprint values properly. I'm not doing anything special to the items in the graph template (i.e. no CDEF functions, etc...) either.

Clearly, at least one of these is incorrect - but which one? I suspect the line is wrong, but i'm not sure. And why is there a discrepancy in the first place? Questions abound...

Thanks for the help all!
User avatar
gninja
Cacti User
Posts: 371
Joined: Tue Aug 24, 2004 5:02 pm
Location: San Francisco, CA
Contact:

Post by gninja »

Check the cdefs on your graph source.
FreeBSD/RHEL
cacti-0.8.7i, spine 0.8.7i, PIA 3.1+boost 5.1
MySQL 5.5/InnoDB
RRDtool 1.2.27, PHP 5.1.6
phrawzty
Posts: 12
Joined: Fri Apr 21, 2006 3:01 pm
Location: Montreal, Canada

Post by phrawzty »

gninja wrote:Check the cdefs on your graph source.
Thanks for the tip; however, as i mentioned in the top post:
phrawzty wrote:I'm not doing anything special to the items in the graph template (i.e. no CDEF functions, etc...) either.
I'm open to further suggestions, though! :)
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

Do a few screen prints of both your line and gprint definition screen's and post them.

TheWitness
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?
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

When clicking on the graph, you'll notice some wrenches. Select one of them and post the whole rrdtool graph statement. That will definitively help to debug
Reinhard
phrawzty
Posts: 12
Joined: Fri Apr 21, 2006 3:01 pm
Location: Montreal, Canada

Post by phrawzty »

lvm wrote:When clicking on the graph, you'll notice some wrenches. Select one of them and post the whole rrdtool graph statement. That will definitively help to debug
As requested:
slightly sanitized

Code: Select all

/usr/bin/rrdtool graph - \
--imgformat=PNG \
--start=-86400 \
--end=-300 \
--title="Incoming FuzzyOCR Statistics" \
--base=1000 \
--height=120 \
--width=500 \
--alt-autoscale-max \
--lower-limit=0 \
--vertical-label="# per 5 mins" \
--slope-mode \
DEF:a="/opt/www/cacti/rra/YYY_fuzzyocrtotalscore_10207.rrd":fuzzyocrtotalscore:AVERAGE \
DEF:b="/opt/www/cacti/rra/YYY_fuzzyocrsinglescore_10206.rrd":fuzzyocrsinglescore:AVERAGE \
DEF:c="/opt/www/cacti/rra/YYY_fuzzyocridentified_10205.rrd":fuzzyocridentified:AVERAGE \
AREA:a#6DC8FE:"FuzzyOCR total score"  \
GPRINT:a:LAST:" Current\:%8.0lf"  \
GPRINT:a:AVERAGE:"Average\:%8.0lf"  \
GPRINT:a:MIN:"Min\:%8.0lf"  \
GPRINT:a:MAX:"Max\:%8.0lf\n"  \
LINE2:b#A150AA:"FuzzyOCR single score"  \
GPRINT:b:LAST:"Current\:%8.0lf"  \
GPRINT:b:AVERAGE:"Average\:%8.0lf"  \
GPRINT:b:MIN:"Min\:%8.0lf"  \
GPRINT:b:MAX:"Max\:%8.0lf\n"  \
LINE2:c#00004D:"FuzzyOCR identified"  \
GPRINT:c:LAST:"  Current\:%8.0lf"  \
GPRINT:c:AVERAGE:"Average\:%8.0lf"  \
GPRINT:c:MIN:"Min\:%8.0lf"  \
GPRINT:c:AVERAGE:"Max\:%8.0lf\n" 
Thanks for the assistance!
User avatar
rony
Developer/Forum Admin
Posts: 6022
Joined: Mon Nov 17, 2003 6:35 pm
Location: Michigan, USA
Contact:

Post by rony »

FuzzyOCR identified
GPRINT:c:AVERAGE:"Max\:%8.0lf\n"
That gprint is set to the wrong consolidation function.
[size=117][i][b]Tony Roman[/b][/i][/size]
[size=84][i]Experience is what causes a person to make new mistakes instead of old ones.[/i][/size]
[size=84][i]There are only 3 way to complete a project: Good, Fast or Cheap, pick two.[/i][/size]
[size=84][i]With age comes wisdom, what you choose to do with it determines whether or not you are wise.[/i][/size]
phrawzty
Posts: 12
Joined: Fri Apr 21, 2006 3:01 pm
Location: Montreal, Canada

Post by phrawzty »

rony wrote:That gprint is set to the wrong consolidation function.
Hah - so it is. Thanks! :)
Post Reply

Who is online

Users browsing this forum: No registered users and 3 guests