RRD files

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

Moderators: Developers, Moderators

Post Reply
achiwork
Posts: 11
Joined: Tue May 25, 2004 10:27 am

RRD files

Post by achiwork »

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?
User avatar
MagnaChef
Cacti User
Posts: 164
Joined: Tue Nov 25, 2003 3:58 pm
Location: Buffalo, NY

Post by MagnaChef »

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
Post Reply

Who is online

Users browsing this forum: No registered users and 4 guests