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

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

Moderators: Developers, Moderators

User avatar
TheWitness
Developer
Posts: 17047
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Re: ERROR:the RRD does not contain an RRA matching the chose

Post by TheWitness »

This is normal if you have updated your RRA specification in Cacti, but the RRDfile does not contain the consolidation function requested. There are a few tools at the RRDtool contribution sections that can be used to make these types of modifications to rrdfiles. I'm not sure the 'rrdtool tune' option has the ability to add a CF, but the contrib files do. Mostly written in perl.

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?
sunnyaj
Posts: 11
Joined: Mon Jul 18, 2011 6:41 am

Re: ERROR:the RRD does not contain an RRA matching the chose

Post by sunnyaj »

Hi,
How do i check if a particular CF has been added to the .rrd file. ?
Will recreation of the rrd file help resolve this issue ?
sunnyaj
Posts: 11
Joined: Mon Jul 18, 2011 6:41 am

Re: ERROR:the RRD does not contain an RRA matching the chose

Post by sunnyaj »

I noticed one more discrepancy between graphs generated and graphs not generated.

Good graphs
-rw-r--r-- 1 cacti cacti 468988 Aug 9 23:15 btxxx01_dc_mail_to_2020.rrd
-rw-r--r-- 1 cacti cacti 468988 Aug 9 23:16 btxxx02_dc_mail_to_2801.rrd


Bad graphs
-rw-r--r-- 1 cacti cacti 235132 Aug 9 23:15 btxxx01_mail_to_556.rrd
-rw-r--r-- 1 cacti cacti 235132 Aug 9 23:15 btxxx02_mail_to_562.rrd

When i run rrdtool info on these .rrd files, i notice the good graphs have 16 RRAs (0-15) and the bad graphs have only 8 RRAs(0-7).
Is this the reason that i am getting this error.

How do i fix these ?

Thanks
User avatar
TheWitness
Developer
Posts: 17047
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Re: ERROR:the RRD does not contain an RRA matching the chose

Post by TheWitness »

It's likely that you imported a template that altered your default Data Templates, or you made changes to the RRA CF's in Cacti without knowledge that those changes would result in you older RRDfiles becoming unusable (although still functional). You have a few options, disable the missing RRA CF for your affected Data Templates, or modify the RRDfiles to add the missing CF's as I had previously described.

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?
sunnyaj
Posts: 11
Joined: Mon Jul 18, 2011 6:41 am

Re: ERROR:the RRD does not contain an RRA matching the chose

Post by sunnyaj »

Thanks for the explanation.

However, i need to enable the RRA CFs, and not disable them. The affected graphs have 2 missing CFs (MIN and LAST)
When i look at the cacti console, i see them enabled, but the same is not reflecting in the rrd files.

I am looking for ways to edit the rrd files.

Here, see the difference between the rrd files

#rrdtool info $i | grep ".cf"

btxxx_mail_to_737.rrd
rra[0].cf = "AVERAGE"
rra[1].cf = "AVERAGE"
rra[2].cf = "AVERAGE"
rra[3].cf = "AVERAGE"
rra[4].cf = "MAX"
rra[5].cf = "MAX"
rra[6].cf = "MAX"
rra[7].cf = "MAX"

btxxx_dc_mail_to_1907.rrd
rra[0].cf = "AVERAGE"
rra[1].cf = "AVERAGE"
rra[2].cf = "AVERAGE"
rra[3].cf = "AVERAGE"
rra[4].cf = "MIN"
rra[5].cf = "MIN"
rra[6].cf = "MIN"
rra[7].cf = "MIN"
rra[8].cf = "MAX"
rra[9].cf = "MAX"
rra[10].cf = "MAX"
rra[11].cf = "MAX"
rra[12].cf = "LAST"
rra[13].cf = "LAST"
rra[14].cf = "LAST"
rra[15].cf = "LAST"

Thanks
sunnyaj
Posts: 11
Joined: Mon Jul 18, 2011 6:41 am

Re: ERROR:the RRD does not contain an RRA matching the chose

Post by sunnyaj »

Could you please elaborate on the comment below. rrdtune doesn't seem to be good option.
There are a few tools at the RRDtool contribution sections that can be used to make these types of modifications to rrdfiles. I'm not sure the 'rrdtool tune' option has the ability to add a CF, but the contrib files do.
Thanks
User avatar
TheWitness
Developer
Posts: 17047
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Re: ERROR:the RRD does not contain an RRA matching the chose

Post by TheWitness »

Review the perl scripts in this directory...

http://oss.oetiker.ch/rrdtool/pub/contrib/

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
TheWitness
Developer
Posts: 17047
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Re: ERROR:the RRD does not contain an RRA matching the chose

Post by TheWitness »

Hmm. You might want to look at the contrib folder from the current download. I did not see what I was expecting from that link. There are also some prototype tools in the Cacti 0.8.8 (aka 'trunk') that might accomplish this, but making them work with the current Cacti would be problematic.

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?
haykeh
Posts: 3
Joined: Wed Jun 10, 2009 12:54 pm
Location: Eindhoven

Re: FIXED

Post by haykeh »

fletch wrote:CF is a consolidation function.

I remembered I had chosen LAST for my graph template instead of the default Average.

Change the lasts to averages and resaved the template.
I confirm the solution.
I download the template for MGE UPS and the CF type was LAST.
Now It's working fine.
Harrie
Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests