[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?)


$ /usr/bin/rrdtool xport
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"?>

      <entry>Bytes Total</entry>
      <entry>Bytes Used</entry>













$ 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