Is there any way to append RRD files that are based off the same host, but different times?
We had monitoring up on some machines, but a developer accidentally deleted the database from mysql. However, the RRD files were left untouched and I backed them up. Now that I think on it, I could have feasibly replaced them with the backups right away, but now there's about a 1 day gap if I replace it with the older files. Is there a way I can join the two RRD files?
RRD files
Moderators: Developers, Moderators
First, I'd say dump (http://people.ee.ethz.ch/~oetiker/webto ... ddump.html) your backed up RRD.
Then I'd dump the second RRD to a different file.
Next you'd need to go through the XML file for the backed up RRD and find where you are missing data (The data will show up as NaN). Then open up the second (newer) RRD XML dump file, and find the data for the same time period that you're missing. Paste that into you're backed up RRD XML file, and then do a restore: http://people.ee.ethz.ch/~oetiker/webto ... store.html
Good Luck, and make sure you back up your RRDs before doing the "restore".
-Dan
Then I'd dump the second RRD to a different file.
Next you'd need to go through the XML file for the backed up RRD and find where you are missing data (The data will show up as NaN). Then open up the second (newer) RRD XML dump file, and find the data for the same time period that you're missing. Paste that into you're backed up RRD XML file, and then do a restore: http://people.ee.ethz.ch/~oetiker/webto ... store.html
Good Luck, and make sure you back up your RRDs before doing the "restore".
-Dan
Who is online
Users browsing this forum: No registered users and 4 guests