Not sure why the graph is off

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

Moderators: Developers, Moderators

Post Reply
seefor
Posts: 11
Joined: Wed Mar 04, 2009 10:37 am
Location: Colorado

Not sure why the graph is off

Post by seefor »

First off I'm new to Cacti and I love this product, great work and great community.
Here is my problem, not sure how to fix it or what to google for.
My SNMPGET results -
SNMPv2-SMI::enterprises.1991.1.1.4.9.1.1.5.46 = Counter32: 13759229

Image

The Counters show 1.3 Million
But the Image shows 2.52 something not sure that.

I choose Bytes In/out Counter64

Thanks in advance for any help
User avatar
Linegod
Developer
Posts: 1626
Joined: Thu Feb 20, 2003 10:16 am
Location: Canada
Contact:

Re: Not sure why the graph is off

Post by Linegod »

A counter will end up graphing the difference between the first collected value and the next.

So, if the first value collected was 100, and the second value collected was 110, it would graph 10. If the Third value was 115, it would then graph 5.

If it simply graphed the value, you would never see that there was less data between the 2nd and 3rd poll, when compared to the 1st and 2nd, as it would just continue to rise.
--
Live fast, die young
You're sucking up my bandwidth.

J.P. Pasnak,CD
CCNA, LPIC-1
http://www.warpedsystems.sk.ca
seefor
Posts: 11
Joined: Wed Mar 04, 2009 10:37 am
Location: Colorado

Re: Not sure why the graph is off

Post by seefor »

thanks Linegod

I looked up the Data Source Type and found the following doc:http://docs.cacti.net/manual:087:3_temp ... a_template
There are four types of data that RRDTool can represent for any given data source: COUNTER, GAUGE, ABSOLUTE, and DERIVE.
A GAUGE is for numbers that are not continuously incrementing, e.g. a temperature.
A COUNTER is for continuously incrementing values that might overflow, e.g. ifInOctets (Traffic).
A DERIVE does not overflow.
The ABSOLUTE type is used for counters that are reset upon reading.
I change it to ABSOLUTE and I'm getting the Value I need now.

Many thanks for the help
seefor
Posts: 11
Joined: Wed Mar 04, 2009 10:37 am
Location: Colorado

Re: Not sure why the graph is off

Post by seefor »

Ok so that didn't work out too well :)

I changed the Data Source Type to GAUGE and it's giving me a better graph:
Image

Here are the numbers:
Thu Oct 7 12:50:01 MDT 2010 13989480
Thu Oct 7 12:55:01 MDT 2010 13990413
Thu Oct 7 13:00:01 MDT 2010 13991322
Thu Oct 7 13:05:01 MDT 2010 13992254
Thu Oct 7 13:10:01 MDT 2010 13993248
Thu Oct 7 13:15:01 MDT 2010 13994117
Thu Oct 7 13:20:01 MDT 2010 13995210
Thu Oct 7 13:25:01 MDT 2010 13997048
Thu Oct 7 13:30:01 MDT 2010 13998951
Thu Oct 7 13:35:01 MDT 2010 14000840
Thu Oct 7 13:40:01 MDT 2010 14002623
Thu Oct 7 13:45:01 MDT 2010 14004557
Thu Oct 7 13:50:01 MDT 2010 14006545
How can I get it to show the actual numbers instead of round off the graph?
User avatar
Linegod
Developer
Posts: 1626
Joined: Thu Feb 20, 2003 10:16 am
Location: Canada
Contact:

Re: Not sure why the graph is off

Post by Linegod »

In the Graph Template, on the legend GPRINT item, change the GPRINT type to 'Exact Numbers'.
--
Live fast, die young
You're sucking up my bandwidth.

J.P. Pasnak,CD
CCNA, LPIC-1
http://www.warpedsystems.sk.ca
seefor
Posts: 11
Joined: Wed Mar 04, 2009 10:37 am
Location: Colorado

Re: Not sure why the graph is off

Post by seefor »

It work well for MAX MIN AVG but broke the Area when I change it:

Code: Select all

/usr/bin/rrdtool graph - \
--imgformat=PNG \
--start=1286411017 \
--end=1286497417 \
--title='LABCH4LBA40001P - nfl-portal Port 80 3' \
--base=1000 \
--height=120 \
--width=500 \
--alt-autoscale-max \
--lower-limit=0 \
COMMENT:"From 2010/10/06 18\:23\:37 To 2010/10/07 18\:23\:37\c" \
COMMENT:"  \n" \
--vertical-label= \
--slope-mode \
--font TITLE:12: \
--font AXIS:8: \
--font LEGEND:10: \
--font UNIT:8: \
DEF:a="/var/www/html/cacti/rra/labch4lba40001p_snmp_oid_52.rrd":snmp_oid:LAST \
AREA:a#F5F800FF:""  \
GPRINT:a:LAST:"Current\:%8.0lf"  \
GPRINT:a:AVERAGE:"Average\:%8.0lf"  \
GPRINT:a:MAX:"Maximum\:%8.0lf\n" 
User avatar
Linegod
Developer
Posts: 1626
Joined: Thu Feb 20, 2003 10:16 am
Location: Canada
Contact:

Re: Not sure why the graph is off

Post by Linegod »

Like I said, just change the legend.
--
Live fast, die young
You're sucking up my bandwidth.

J.P. Pasnak,CD
CCNA, LPIC-1
http://www.warpedsystems.sk.ca
seefor
Posts: 11
Joined: Wed Mar 04, 2009 10:37 am
Location: Colorado

Re: Not sure why the graph is off

Post by seefor »

I do not see anything under legend with GPRINT

Do you or anyone have the XML files for a Brocade ADX?
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Re: Not sure why the graph is off

Post by TheWitness »

Please read my signature line. Linegod will direct you to the water, but he does not drink it for you, unless it involves alcohol.

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?
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests