Re: Help in RRD XPORT

Steve Shipway <[email protected]>
Newsgroups gmane.comp.db.rrdtool.user
Message-ID <5820DC553954E44FA1A36C78323AD14859F442D2@uxcn10-6.UoA.auckland.ac.nz>
Set up an additional CDEF.

rrdtool xport
          DEF:out=if1-inouts.rrd:outoctets:AVERAGE
        CDEF:customvar=out,POP,12345
          XPORT:out:"out bytes"
          XPORT:customvar:"Temp" >> /home/temp/abc.xml

Now you'll get a column with '12345' in it next to the outoctets column.

Note that you need the 'out,POP' to make customvar a time series, although you throw away the original 'out' value.  You can't just use 'CDEF:customvar=12345'.

Steve

Steve Shipway
University of Auckland ITS
UNIX Systems Design Lead
[email protected]<mailto:[email protected]>
Ph: +64 9 373 7599 ext 86487

________________________________
From: rrd-users [[email protected]] on behalf of Utpal Bora [[email protected]]
Sent: Friday, 27 March 2015 3:57 a.m.
To: [email protected]
Subject: [rrd-users] Help in RRD XPORT

Hello Everyone,

I am working on a Network Visualization project using RRDTool for my graduate course on Network Engineering.

I want to use the export feature of RRDtool to create an XML where I want to add some hard coded values(DS not in RRD) to the xml.
However, I could not find a solution as of yet.
Please assist me on this.

What I am trying to do -

rrdtool xport \
          DEF:out=if1-inouts.rrd:outoctets:AVERAGE \
          XPORT:out:"out bytes" >> /home/temp/abc.xml
          XPORT:"SOME_CUSTOM_VALUE":"Temp" >> /home/temp/abc.xml

Here I want to append SOME_CUSTOM_VALUE to the output xml, which I am not able to do as SOME_CUSTOM_VALUE is not present in the database.





--
Regards,

Utpal Bora
M. Tech 1st year
Computer Science & Engineering
IIT Hyderabad

_______________________________________________
rrd-users mailing list
[email protected]
https://lists.oetiker.ch/cgi-bin/listinfo/rrd-users
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.