[rrd-users] rrdtool xport ignoring --step
Patrick Joy
patrick at joytech.com.au
Sun Jun 2 10:15:31 CEST 2013
Hi,
Would appreciate some help with the following issue.
I have a script configured to read data from 8 different temperature
sensors and feed them to rrdtool every 60 seconds. My rrd file is
configured with an rra to keep this data for one week.
rrdtool create temperatures.rrd --start N --step 60 \
DS:Outside:GAUGE:120:-10:90 ...............
RRA:AVERAGE:0.5:1:20160 ..............
When I export 24 hours of data I get the expected result with one
reading every 60 seconds (note the step=60 in the xml output)
rrdtool xport -s now-4h -e now --step 60 \
DEF:a=/var/www/temp/data/temperatures.rrd:Outside:AVERAGE..................
XPORT:a:"Outside" ............... > /var/www/temp/data/temperature4h.xml
<?xml version="1.0" encoding="ISO-8859-1"?>
<xport>
<meta>
<start>1370146380</start>
<step>60</step>
<end>1370146380</end>
<rows>239</rows>
<columns>8</columns>
However when I export 24 hours worth of data the step is changed to 300
even though I specified 60 at the command line.
rrdtool xport -s now-24h -e now --step 60 \
DEF:a=/var/www/temp/data/temperatures.rrd:Outside:AVERAGE ............
XPORT:a:"Outside" ................ > /var/www/temp/data/temperature24h.xml
<?xml version="1.0" encoding="ISO-8859-1"?>
<xport>
<meta>
<start>1370074500</start>
<step>300</step>
<end>1370074500</end>
<rows>289</rows>
<columns>8</columns>
<legend>
Any ideas?
Thanks
More information about the rrd-users
mailing list