[rrd-users] Extracting the assembly instructions from a working RRD

Yannick Marquet itcsoft54 at yahoo.fr
Thu Feb 28 22:56:19 CET 2013


Hello,

You can use rrdtool dump to convert xml sections as fallow (green in xml):

<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE rrd SYSTEM "http://oss.oetiker.ch/rrdtool/rrdtool.dtd">
<!-- Round Robin Database Dump -->
<rrd>
         <version>0003</version>
         <step>300</step> <!-- Seconds -->--step 300
         <lastupdate>1362087354</lastupdate> <!-- 2013-02-28 22:35:54 
CET -->

         <ds>
                 <name> temp </name>
                 <type> GAUGE </type>
<minimal_heartbeat>600</minimal_heartbeat>
                 <min>-2.7300000000e+02</min>
                 <max>5.0000000000e+03</max>

                 <!-- PDP Status -->
                 <last_ds>U</last_ds>
                 <value>0.0000000000e+00</value>
                 <unknown_sec> 54 </unknown_sec>
         </ds>DS:temp:GAUGE:600:-273:5000 \

      <rra>
                 <cf>AVERAGE</cf>
                 <pdp_per_row>1</pdp_per_row> <!-- 300 seconds -->

                 <params>
                 <xff>5.0000000000e-01</xff>
                 </params>
                 <cdp_prep>
                         <ds>
<primary_value>0.0000000000e+00</primary_value>
<secondary_value>0.0000000000e+00</secondary_value>
                         <value>NaN</value>
<unknown_datapoints>0</unknown_datapoints>
                         </ds>
                 </cdp_prep>
                 <database> count number of rows get///rows/ parameter, 
(last parameter in RRA:AVERAGE | MIN | MAX | LAST:xff:steps:rows)
[... Truncate ...]
                 <database>
      </rra> RRA:AVERAGE:0.5:1:1200
</rrd>

So the last dump is translate as this assembly instructions :

  rrdtool create temperature.rrd --step 300 \
   DS:temp:GAUGE:600:-273:5000 \
   RRA:AVERAGE:0.5:1:1200


I believe it's the only way to retrieve rrdtool create parameter.

Regards

Yannick Marquet.

Le 28/02/2013 03:37, Rod a écrit :
>
> Hi,
>
> I made a RRD 5 years ago, and I would like to make some more with the 
> same parameters, but I cannot remember the whole string for the 
> rrdcreate command
>
> Is there a way to inspect the archive to extract the information to 
> make a new archive the same (but different DS names)
>
>
>
> _______________________________________________
> rrd-users mailing list
> rrd-users at lists.oetiker.ch
> https://lists.oetiker.ch/cgi-bin/listinfo/rrd-users

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.oetiker.ch/pipermail/rrd-users/attachments/20130228/67702d63/attachment.html 


More information about the rrd-users mailing list