Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Creating a new rrd database based on an existing one

I have some old rrdtool databases, for which the exact creation recipe has long been since lost. I need to create a new database with the same characteristics as the current ones. I've dumped a couple of old databases and pored over the contents but I'm not sure how to interpret the metadata. I think it appears in the following stanzas

<cf> AVERAGE </cf>
<pdp_per_row> 360 </pdp_per_row> <!-- 1800 seconds -->
<xff> 5.0000000000e-01 </xff>

There are four such stanzas, which correspond to the way I recall the round-robin cascading was set up. Has anyone already done this, or can give me pointers as to how to clone a new empty rrd database from an existing one? Or show me where I missed this in the documentation.

like image 737
dland Avatar asked Dec 31 '22 09:12

dland


1 Answers

I use the command rrdcreate. It can create a new rrd based in an existing one. The -t parameter indicate a existing rrd as template.

rrdcreate new.rrd -t existing.rrd

like image 142
Javier Op Avatar answered Feb 11 '23 19:02

Javier Op