how to add 2years (5 min average) to existing RRAs?

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

Moderators: Developers, Moderators

Post Reply
jlg
Posts: 39
Joined: Thu Feb 16, 2006 7:39 pm

how to add 2years (5 min average) to existing RRAs?

Post by jlg »

hi folks, i would like to keep 2 years of data with 5 minute resolution so i added the new RRA definition in cacti.

this works fine for new graphs, but i would also like to extend this to existing data sources without having to lose the history that exists in the current RRAs. i have been playing with rrdtool's xport and dump commands but i'm not getting a sense that i'm making any progress.

my original plan was to simply add the new RRA definition to the cacti data sources. then i would move aside the original RRAs and rebuild with the debug info that cacti gives. then i would export or dump the data and import back into the rebuilt RRAs. does this plan make any sense?

thanks in advance,
jlg
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

Find instructions along with some script at the "resizing" link of my signature. But I warn you: keep an eye on disk usage and polling performance
Reinhard
User avatar
sizulku
Cacti User
Posts: 110
Joined: Mon Nov 04, 2002 9:15 am
Location: ACEH
Contact:

Post by sizulku »

How do you make this new RRA? is there any tutorial?
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

Yes, as I told you already: http://forums.cacti.net/viewtopic.php?t=11425
Reinhard
User avatar
sizulku
Cacti User
Posts: 110
Joined: Mon Nov 04, 2002 9:15 am
Location: ACEH
Contact:

Post by sizulku »

If I'm not mistake the link that you provide above is about resizing existing RRAs of existing RRDs. What I would like to know is about how to create RRA to support 5 minute average for daily, weekly, monthly and yearly. Any help would be great.
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Re: how to add 2years (5 min average) to existing RRAs?

Post by gandalf »

You told us
jlg wrote:.... but i would also like to extend this to existing data sources without having to lose the history that exists in the current RRAs
To do so, you have to resize existing rra's of your rrd files.
And there's some misunderstanding on your side, IMHO, concerning weekly, monthly, yearly graphs. Those are timespans and as such not part of an rra definition. Unfortunately, current release of cacti defines rra parameters along with the timespan, so this misunderstanding is quite common.
Find more about this at http://forums.cacti.net/about16254.html
Reinhard
jlg
Posts: 39
Joined: Thu Feb 16, 2006 7:39 pm

Post by jlg »

sizulku wrote:If I'm not mistake the link that you provide above is about resizing existing RRAs of existing RRDs. What I would like to know is about how to create RRA to support 5 minute average for daily, weekly, monthly and yearly. Any help would be great.
hi sizulku, this example might help you...here is what i did.

1. go to "Round Robin Archives"
-on the left, under "Management", click "Data Sources"
-you should now see a link appear called "RRAs"...click this

2. now create a new RRA
-click "Add"
-use these values (tailor to your needs)
Name: 2Years (5 min average)
Consolidation Functions: select AVERAGE & MAXIMUM
X-Files Factor: 0.5
Steps: 1 (this is what keeps the resolution down to 5 minutes)
Rows: 220356 (this is what keeps 2 years of 5 minute history in the RRA)
Timespan: 66106368 (this used by cacti...i think to determine the number of seconds to display in the screen when you simply click on a graph.)


3. now, add the RRA to the Data Templates that you which to change
-"Templates -> Data Templates"
-for instance, "ucd/net - CPU Usage - *" (3 of these)
-in the "Associated RRA's" box, crtl-click the "2Years (5 min average)" line
-save

4. now, any new graphs you create using that Data Template will have 2 years of history with the 5 minute snapshots preserved.


5. the motivation for my initial question, was to expand existing RRAs to get the new "2Years (5 min average)" history along with preserving any existing data in the RRAs that were previously there. i intend to try out Reinhard's perl script as soon as i get past some other issues.

jlg
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests