change rra of existing RRD

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

Moderators: Developers, Moderators

Post Reply
quartje
Posts: 3
Joined: Fri May 29, 2009 9:48 am

change rra of existing RRD

Post by quartje »

Hi,

I want to store AVERAGE data with a 5 minute interval for two years. I have a few thousand existing rrf's which have the wrong RRA, which makes them store the MAX data with a 5 minute interval for two years.

My question is this: If I use the resize.pl tool from this page: http://docs.cacti.net/manual:087:8_rrdtool.4_resize is the only thing I need to change the number of rows for the following, already existing RRA: ?

rra[0].cf = "AVERAGE"
rra[0].rows = 600
rra[0].cur_row = 415
rra[0].pdp_per_row = 1

Thanks!
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

You need to change that RRA, yes. But you should resize all consolidation functions for the same consolidation level. In other words, resize all RRAs using 600 data points. There's an appropriate feature in my script :wink:
Reinhard
quartje
Posts: 3
Joined: Fri May 29, 2009 9:48 am

Post by quartje »

Thanks for this! I managed to resize my RRDs correctly. One problem now remains: As soon as I zoom in in my graphs they are empty. But the data is there, I checked it by dumping the data. And the graphs which are not zoomed do show lines. Any suggestion what could have gone wrong?
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

Nothing went wrong. Only you have to wait until the new data slots are filled by consolidating data as it comes in
Perhaps I should mention that in the docs ...
Reinhard
quartje
Posts: 3
Joined: Fri May 29, 2009 9:48 am

Post by quartje »

But the the data collected every 30 minutes is still there .. Does that mean that when I don't zoom, it doesn't take information from the 5 minute data slots, but when I zoom it takes that data (which is empty) ?
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

Yes. RRDTool chooses a "best consolidation level match". Unfortunately, after a resize it does not check whether data is already filled into that consolidation level
Reinhard
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests