Hello,

I'm running RRDtool version 1.7.0 and when I try to export rrd database to xml file I'm not able to get "<t>timestamp</t>" -section the exported row inside data element.

I run this to export:
/usr/local/bin/rrdtool150/bin/rrdtool xport -s 1499859600 -e 1499870400 --step 300 \
DEF:a=/tools/rrdtool/homestats/ouman/ouman_stats.rrd:ulkolampo:AVERAGE \
DEF:b=/tools/rrdtool/homestats/ouman/ouman_stats.rrd:L1-huone:AVERAGE \
DEF:c=/tools/rrdtool/homestats/ouman/ouman_stats.rrd:L1-meno:AVERAGE \
DEF:d=/tools/rrdtool/homestats/ouman/ouman_stats.rrd:L1-paluu:AVERAGE \
DEF:e=/tools/rrdtool/homestats/ouman/ouman_stats.rrd:LV-meno:AVERAGE \
DEF:f=/tools/rrdtool/homestats/ouman/ouman_stats.rrd:LV-kierto:AVERAGE \
XPORT:a:"Outside" \
XPORT:b:"L1-huone" \
XPORT:c:"L1-meno" \
XPORT:d:"L1-paluu" \
XPORT:e:"LV-meno" \
XPORT:f:"LV-kierto"

I get:
<?xml version="1.0" encoding="ISO-8859-1"?>
<xport>
  <meta>
    <start>1499859600</start>
    <end>1499870400</end>
    <step>300</step>
    <rows>36</rows>
    <columns>6</columns>
    <legend>
      <entry>Outside</entry>
      <entry>L1-huone</entry>
      <entry>L1-meno</entry>
      <entry>L1-paluu</entry>
      <entry>LV-meno</entry>
      <entry>LV-kierto</entry>
    </legend>
  </meta>
  <data>
<row><v>2.0922343026e+01</v><v>2.3500000000e+01</v><v>2.4300000000e+01</v><v>2.3500000000e+01</v><v>5.5881562017e+01</v><v>2.4700000000e+01</v></row> <row><v>2.0323714312e+01</v><v>2.3500000000e+01</v><v>2.4300000000e+01</v><v>2.3658761896e+01</v><v>5.5720619052e+01</v><v>2.4700000000e+01</v></row>
...

So there is only "<v>" elements inside the "<row>" element and no <t> at the beginning of each row like the RRDtool site describes:

"(https://oss.oetiker.ch/rrdtool/doc/rrdxport.en.html#___top)
The resulting data section is:
<data>
<row><t>1020611700</t><v>3.4000000000e+00</v><v>5.4400000000e+01</v></row>"

Is there something wrong in my export command or how can I achieve the export like in the webpage rrdxport documentation?

Cheers,

--Olli

_______________________________________________
rrd-users mailing list
rrd-users@lists.oetiker.ch
https://lists.oetiker.ch/cgi-bin/listinfo/rrd-users

Reply via email to