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
how to add 2years (5 min average) to existing RRAs?
Moderators: Developers, Moderators
- gandalf
- Developer
- Posts: 22383
- Joined: Thu Dec 02, 2004 2:46 am
- Location: Muenster, Germany
- Contact:
Yes, as I told you already: http://forums.cacti.net/viewtopic.php?t=11425
Reinhard
Reinhard
- 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?
You told us
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
To do so, you have to resize existing rra's of your rrd files.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
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
hi sizulku, this example might help you...here is what i did.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.
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
Who is online
Users browsing this forum: No registered users and 0 guests