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

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


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 -->
         <step>300</step> <!-- Seconds -->--step 300
         <lastupdate>1362087354</lastupdate> <!-- 2013-02-28 22:35:54 
CET -->

                 <name> temp </name>
                 <type> GAUGE </type>

                 <!-- PDP Status -->
                 <unknown_sec> 54 </unknown_sec>
         </ds>DS:temp:GAUGE:600:-273:5000 \

                 <pdp_per_row>1</pdp_per_row> <!-- 300 seconds -->

                 <database> count number of rows get///rows/ parameter, 
(last parameter in RRA:AVERAGE | MIN | MAX | LAST:xff:steps:rows)
[... Truncate ...]
      </rra> RRA:AVERAGE:0.5:1:1200

So the last dump is translate as this assembly instructions :

  rrdtool create temperature.rrd --step 300 \
   DS:temp:GAUGE:600:-273:5000 \

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


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