No timestamps for rows in xport output with v.1.5.5 on Linux

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

No timestamps for rows in xport output with v.1.5.5 on Linux

unicsonline

Hello,

I have found a problem with version 1.5.5 on Linux when I try to generate a xport output.

My ouput does not contain timestamp for my rows.


Simple example:

rrdtool xport -m15 -s 1487026800 -e 1487028600 'DEF:item1=/my/beautiful/database.rrd:item1:AVERAGE' XPORT:item1:item1
<?xml version="1.0" encoding="ISO-8859-1"?>

<xport>
  <meta>
    <start>1487026800</start>
    <end>1487028600</end>
    <step>120</step>
    <rows>15</rows>
    <columns>1</columns>
    <legend>
      <entry>item1</entry>
    </legend>
  </meta>
  <data>
    <row><v>5.0175000000e+01</v></row>
    <row><v>6.5605000000e+01</v></row>
    <row><v>8.2178250000e+01</v></row>
    <row><v>8.8080000000e+01</v></row>
    <row><v>6.9235000000e+01</v></row>
    <row><v>5.5784916667e+01</v></row>
    <row><v>5.8171333333e+01</v></row>
    <row><v>5.4850000000e+01</v></row>
    <row><v>6.4811583333e+01</v></row>
    <row><v>5.6625000000e+01</v></row>
    <row><v>5.7730000000e+01</v></row>
    <row><v>5.5933583333e+01</v></row>
    <row><v>4.8695000000e+01</v></row>
    <row><v>6.1630000000e+01</v></row>
    <row><v>5.6467000000e+01</v></row>
  </data>
</xport>


On other systems (AIX) I am using xport with version 1.2.13, and I have no problem since years:

rrdtool xport -m30 -s 1487026800 -e 1487027100 DEF:item1=/my/beautiful/database.rrd:item1:AVERAGE XPORT:item1:item1

<?xml version="1.0" encoding="ISO-8859-1"?>

<xport>
  <meta>
    <start>1487026810</start>
    <step>10</step>
    <end>1487027110</end>
    <rows>31</rows>
    <columns>1</columns>
    <legend>
      <entry>item1</entry>
    </legend>
  </meta>
  <data>
    <row><t>1487026810</t><v>88888888</v></row>
    <row><t>1487026820</t><v>88888888</v></row>
    <row><t>1487026830</t><v>88888888</v></row>
    <row><t>1487026840</t><v>88888888</v></row>
    <row><t>1487026850</t><v>88888888</v></row>
    <row><t>1487026860</t><v>88888888</v></row>
    <row><t>1487026870</t><v>88888888</v></row>
    <row><t>1487026910</t><v>88888888</v></row>
    (..)
    <row><t>1487027070</t><v>88888888</v></row>
    <row><t>1487027080</t><v>88888888</v></row>
    <row><t>1487027090</t><v>88888888</v></row>
    <row><t>1487027100</t><v>88888888</v></row>
    <row><t>1487027110</t><v>88888888</v></row>
  </data>
</xport>

An idea about the origin of problem? Without timestamps my .xml report are useless :(

Thanks a lot to you ;)



_______________________________________________
rrd-users mailing list
[hidden email]
https://lists.oetiker.ch/cgi-bin/listinfo/rrd-users
Reply | Threaded
Open this post in threaded view
|

Re: No timestamps for rows in xport output with v.1.5.5 on Linux

unicsonline

Ok, this is solved in 1.60 release using --showtime keyword : I just need to update all my scripts but I happy to see there is a solution!

Just be sadly surprised that no one aware of this problem took 30 secondes to answer.. :(

(if interested by subject, see issue #672 : https://github.com/oetiker/rrdtool-1.x/issues/672)