[rrd-users] rrdtool 1.3.5 xport has non-xml text at beginning of xml output

Con Zyor conzyor34 at gmail.com
Mon Jan 5 21:58:50 CET 2009


Using the following xport command in rrdtool 1.3.5 results in non-xml text
being inserted at the beginning of the xml, as shown.  This is confusing my
xslt parser (which uses an xsl to transform rrdtool xport into csv).  The
xslt processor is xsltproc and this is all running on Red Hat Linux 5
x86_64.  It wasn't like this in rrdtool 1.2.

Is this a bug or is there a way to prevent the non-xml text from being at
the front of the xml file produced by rrdtool xport?  It seems like this
data should be in the <meta> section.  If you think it's a bug I'll hop on
the developer list and submit a patch.

(And is anyone interested in the xsl I use to export an RRD xport as csv?)

Thanks!

$ /usr/bin/rrdtool xport
DEF:a="./vpms_rhel4_df_P_t_ext3/%2Fvar%2Fnetlog.rrd":ktotal:MAX
DEF:b="/var/rrds/prod-ux-log1/vpms_rhel4_df_P_t_ext3/%2Fvar%2Fnetlog.rrd":kused:MAX
CDEF:cdefa=a,1024,* CDEF:cdefb=b,1024,* XPORT:cdefa:"Bytes Total"
XPORT:cdefb:"Bytes Used"
*Bytes Total:300
Bytes Used:300
step: 300*
<?xml version="1.0" encoding="ISO-8859-1"?>

<xport>
  <meta>
    <start>1231101900</start>
    <step>300</step>
    <end>1231188000</end>
    <rows>288</rows>
    <columns>2</columns>
    <legend>
      <entry>Bytes Total</entry>
      <entry>Bytes Used</entry>
    </legend>
  </meta>
  <data>

<row><t>1231101900</t><v>2.0289865728e+11</v><v>2.0289859584e+11</v></row>

<row><t>1231102200</t><v>2.0289865728e+11</v><v>2.0289859584e+11</v></row>

<row><t>1231102500</t><v>2.0289865728e+11</v><v>2.0289859584e+11</v></row>

<row><t>1231102800</t><v>2.0289865728e+11</v><v>2.0289859584e+11</v></row>

<row><t>1231103100</t><v>2.0289865728e+11</v><v>2.0289859584e+11</v></row>

<row><t>1231103400</t><v>2.0289865728e+11</v><v>2.0289859584e+11</v></row>

<row><t>1231103700</t><v>2.0289865728e+11</v><v>2.0289859584e+11</v></row>

<row><t>1231104000</t><v>2.0289865728e+11</v><v>2.0289859584e+11</v></row>

<row><t>1231104300</t><v>2.0289865728e+11</v><v>2.0289859584e+11</v></row>

<row><t>1231104600</t><v>2.0289865728e+11</v><v>2.0289859584e+11</v></row>

<row><t>1231104900</t><v>2.0289865728e+11</v><v>2.0289859584e+11</v></row>

<row><t>1231105200</t><v>2.0289865728e+11</v><v>2.0289859584e+11</v></row>
...snip...

$ rrdtool --version
RRDtool 1.3.5  Copyright 1997-2008 by Tobias Oetiker <tobi at oetiker.ch>
               Compiled Dec 16 2008 10:53:37
$ xsltproc --version
Using libxml 20626, libxslt 10117 and libexslt 813
xsltproc was compiled against libxml 20626, libxslt 10117 and libexslt 813
libxslt 10117 was compiled against libxml 20626
libexslt 813 was compiled against libxml 20626
$ uname -a
Linux localhost 2.6.18-92.1.10.el5 #1 SMP Wed Jul 23 03:56:11 EDT 2008
x86_64 x86_64 x86_64 GNU/Linux

conzyor atsign gmail decimal com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.oetiker.ch/pipermail/rrd-users/attachments/20090105/13c57f67/attachment-0001.html 


More information about the rrd-users mailing list