[Solved] RRA problems. CF dissapears with 0.8.7

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

Moderators: Developers, Moderators

Post Reply
Xumet
Posts: 18
Joined: Thu Mar 16, 2006 12:02 pm

[Solved] RRA problems. CF dissapears with 0.8.7

Post by Xumet »

Hi!

I've a Data Template in my cacti 0.8.6j and I try to import in a new 0.8.7 installation. With the 086 version I can create Data Sources like this:

Data Source Debug

/usr/bin/rrdtool create \
/www/htdocs/cacti/rra/machine1_cpu_used_2611.rrd \
--step 300 \
DS:cpu_used:GAUGE:600:0:100 \
RRA:AVERAGE:0.5:1:600 \
RRA:AVERAGE:0.5:6:700 \
RRA:AVERAGE:0.5:24:775 \
RRA:AVERAGE:0.5:288:797 \
RRA:MIN:0.5:1:600 \
RRA:MIN:0.5:6:700 \
RRA:MIN:0.5:24:775 \
RRA:MIN:0.5:288:797 \
RRA:MAX:0.5:1:600 \
RRA:MAX:0.5:6:700 \
RRA:MAX:0.5:24:775 \
RRA:MAX:0.5:288:797 \
RRA:LAST:0.5:1:600 \
RRA:LAST:0.5:6:700 \
RRA:LAST:0.5:24:775 \
RRA:LAST:0.5:288:797 \

But when I try to create the same Data Source in 087 i obtain this one:

/usr/bin/rrdtool create \
/usr/local/apache2/htdocs/cacti/rra/machine1_cpu_used_39.rrd \
--step 300 \
DS:cpu_used:GAUGE:600:0:100 \
RRA:AVERAGE:0.5:1:600 \
RRA:AVERAGE:0.5:6:700 \
RRA:AVERAGE:0.5:24:775 \
RRA:AVERAGE:0.5:288:797 \
RRA:MAX:0.5:1:600 \
RRA:MAX:0.5:6:700 \
RRA:MAX:0.5:24:775 \
RRA:MAX:0.5:288:797 \

In the Data Template definition i've selected all the Associated RRA's.
I've found only 1 difference between these 2 installations: RRDTools version.

Any idea?

Thanks in advance.
Xavier
Last edited by Xumet on Fri Oct 26, 2007 2:56 am, edited 1 time in total.
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

There is a new option in 0.8.7 to optionally import the RRA definitions from the Graph Template. This was made optional due to the fact that some templates change the sytem defaults, which is very bad.

You likely did not notice, or did not check the setting to import the RRA definitions. Therefore, you now have the defaults. This is the expected behavior.

You need to edit the data template and select the RRA's that you want associated with this data template, and you will be back in business. If you would like more explanation as to why we did this, simply repost.

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?
Xumet
Posts: 18
Joined: Thu Mar 16, 2006 12:02 pm

Post by Xumet »

> If you would like more explanation as to why we did this, simply repost.

I'm interested to know why you did this, and how I can change that default settings.

Thanks a lot for your response!
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

This is being done to prevent you from having weeks later when you boss asks you, after you've imported some other template, why you new devices are not keeping 5 minute data for six months like they are supposed to.

You inspect the RRA's that you setup specifically for this and find that they are not at some value you had no recollection of ever setting. Well, prior to this version, that would happen. Pissed me off a few times when I first started using Cacti.

So now, you have to knowingly do this. That is all.

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
Darwin
Posts: 27
Joined: Mon May 27, 2002 10:34 am
Location: Montreal, QC
Contact:

Post by Darwin »

On a side note, if someone is importing templates and not able to make them work, and your graph debug is giving you:

ERROR: the RRD does not contain an RRA matching the chosen CF

For searching purposes, I've found this this thread explains the reason for my problems, as my data sources were missing MIN and LAST in their data source debug.

I had to import the templates using "custom RRA settings from the template". Changing the default RRA settings would have also worked, I'm sure.

In daily/weekly/monthly/yearly, MIN and LAST were not selected.
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Post by BSOD2600 »

There is an updated functions.php in the announcement forum which band-aids this problem in cacti 0.8.7a.
User avatar
Darwin
Posts: 27
Joined: Mon May 27, 2002 10:34 am
Location: Montreal, QC
Contact:

Post by Darwin »

Yeah, I actually tried both functions.php. The one posted by TheWitness and also the one by mcutting.

But anyway, as I found another way to fix my error, I might have gotten the same error message, but the cause seems like it might have different entirely. :)
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

Darwin,

Please elaborate.

Thanks,

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