New graph, only 2 days history

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

Moderators: Developers, Moderators

Post Reply
darckos
Posts: 5
Joined: Mon Nov 02, 2009 9:04 am

New graph, only 2 days history

Post by darckos »

Hi everyone,

I've created some graphs from existing data sources, but I can't have more history more than two days.
For example I create a graph with a CDEF function like (a+b+c)/d.
All my data sources are fine with lot of history, and no consolidation.

What can be the cause of this problem ?
Regards.
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

Posting an image and the rrdtool graph statement of the failing graph may help to get some insight
R.
darckos
Posts: 5
Joined: Mon Nov 02, 2009 9:04 am

Post by darckos »

Hi,

Here is the rrd graph command.

Code: Select all

/usr/bin/rrdtool graph - \
--imgformat=PNG \
--start=-604800 \
--end=-300 \
--title="tototmp - CPU fronts divided by 5 min sessions" \
--base=1000 \
--height=120 \
--width=700 \
--alt-autoscale-max \
--lower-limit=0 \
--vertical-label="" \
--slope-mode \
--font TITLE:12: \
--font AXIS:8: \
--font LEGEND:10: \
--font UNIT:8: \
DEF:a="/var/lib/cacti/rra/toto01_cpu_user_3425.rrd":cpu_user:MAX \
DEF:b="/var/lib/cacti/rra/toto02_cpu_user_3431.rrd":cpu_user:MAX \
DEF:c="/var/lib/cacti/rra/toto03_cpu_user_3455.rrd":cpu_user:MAX \
DEF:d="/var/lib/cacti/rra/tototmp_sdpmnr5phps_3807.rrd":SDPMNR5PHPS:MAX \
CDEF:cdefe=a,b,+,c,+,d,/ \
COMMENT:"toto01 CPU user"  \
COMMENT:"toto02 CPU user"  \
COMMENT:"toto03 CPU user"  \
 \
AREA:cdefe#FF00FFFF:"CPU fronts divided by 5 min sessions"  \
GPRINT:cdefe:LAST:"Current\:%8.2lf %s"  \
GPRINT:cdefe:AVERAGE:"Average\:%8.2lf %s"  \
GPRINT:cdefe:MAX:"Maximum\:%8.2lf %s\n" 
Thanks for your help
Regards,
Attachments
graph_image.php.png
graph_image.php.png (22.8 KiB) Viewed 800 times
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

Run the rrdtool info command and post. However, it is likely that the Data Template does not include the RRA's required to collect any longer. You should always know that when you implement someone elses template, that bad things can happen.

Please familiarize yourself with how RRA's work and how they are implemented in Cacti specifically.

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 4 guests