adding Consolidation Functions to existing RRDs
Moderators: Developers, Moderators
adding Consolidation Functions to existing RRDs
Hello all,
does somebody have or knows of a script, that would allow me to add new CF's to existing RRDs? One of my well used Data Profiles was created with only the AVG CF binded back in the day..
does somebody have or knows of a script, that would allow me to add new CF's to existing RRDs? One of my well used Data Profiles was created with only the AVG CF binded back in the day..
- TheWitness
- Developer
- Posts: 17047
- Joined: Tue May 14, 2002 5:08 pm
- Location: MI, USA
- Contact:
Re: adding Consolidation Functions to existing RRDs
There are some functions in the latest Cacti lib/rrd.php that can do this. They were written by Gandalf back when he was more active (and not retired). However, they have never been tested. I brought them into the 1.0 release from the 0.9 release, but again, they've never been tested.
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?
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?
Re: adding Consolidation Functions to existing RRDs
thank you TheWitness I will try to look into it.. funny enough I found the same question in a 2009 forum post about34251.html where you also hinted at a possible perl script - sadly you haven't linked it back then, you probably don't remember anymore hahaTheWitness wrote: ↑Fri Dec 22, 2023 12:17 pm There are some functions in the latest Cacti lib/rrd.php that can do this. They were written by Gandalf back when he was more active (and not retired). However, they have never been tested. I brought them into the 1.0 release from the 0.9 release, but again, they've never been tested.
- TheWitness
- Developer
- Posts: 17047
- Joined: Tue May 14, 2002 5:08 pm
- Location: MI, USA
- Contact:
Re: adding Consolidation Functions to existing RRDs
If it's more than a few days, then yes. This looks like the function: rrd_copy_rra. You have to load the dom using another function, and then figure out what to pass as the third parameter. This function though looks like it's taking an array of files and making changes. rrd_rra_clone. Some starters. Use 'test data' though. If you fiddle with it and find adding some more documentation is good. Do that in the develop branch inside the function documentation as pull requests. Thanks!
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?
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?
Re: adding Consolidation Functions to existing RRDs
thank you very much, let me just say I have a lot more reading to do ._.TheWitness wrote: ↑Fri Dec 22, 2023 2:12 pm If it's more than a few days, then yes. This looks like the function: rrd_copy_rra. You have to load the dom using another function, and then figure out what to pass as the third parameter. This function though looks like it's taking an array of files and making changes. rrd_rra_clone. Some starters. Use 'test data' though. If you fiddle with it and find adding some more documentation is good. Do that in the develop branch inside the function documentation as pull requests. Thanks!
Re: adding Consolidation Functions to existing RRDs
OK, I am also thinking about a different approach.. would it be possible to: backup all my current RRDs, then delete them from the default location - this would force all the RRDs to be recreated on the next poll (if my data source templates are at this point already mapped to the new Data Profile Preset - would the new RRDs be recreated with those new RRAs+CFs?), meaning all my graphs start flushed again; however could I then somehow use the backup RRDs in the same Cacti instance to only view my historic graphs somehow?TheWitness wrote: ↑Fri Dec 22, 2023 2:12 pm If it's more than a few days, then yes. This looks like the function: rrd_copy_rra. You have to load the dom using another function, and then figure out what to pass as the third parameter. This function though looks like it's taking an array of files and making changes. rrd_rra_clone. Some starters. Use 'test data' though. If you fiddle with it and find adding some more documentation is good. Do that in the develop branch inside the function documentation as pull requests. Thanks!
Re: adding Consolidation Functions to existing RRDs
You can do that, and then create a script to splice_rrd.php the resulting files. I think it should work.
Before history, there was a paradise, now dust.
Re: adding Consolidation Functions to existing RRDs
As long as the final is correct, yes. I think both additive and subtractive should work.
Before history, there was a paradise, now dust.
Who is online
Users browsing this forum: No registered users and 1 guest