[rrd-users] rrdtool xport ignoring --step

Patrick Joy patrick at joytech.com.au
Mon Jun 3 01:14:01 CEST 2013


Thank you that's exactly what I needed.

Patrick


On 03/06/13 07:16, Yannick Marquet wrote:
> Hello
>
> You need to increase "*-m*|*--maxrows* /rows/ (default 400 rows)" 
> parameter :
>
> When you use now-4h to now range, the step size is ok without 
> aggregate data (239 rows is need to display step by step).
> When you use now-24h to now range the step size is too lower to 
> compute less than 400 rows (1439 row is needed to display step by 
> step, but maxrows is 400) so rrdtool xport aggreage with the another 
> "step" size (289 rows is needed to display with a 300 step by step.). 
> I can't remember how rrdtool xport choose the new step size.
>
> In fact xport is like graph, and maxrows is like graph pixel width. if 
> you haven't enough pixel width, rrdtool graph aggreage data, when you 
> haven't enough rows, rrdtool xport aggregate data.
>
> Yannick.
> Le 02/06/2013 10:15, Patrick Joy a écrit :
>> 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
>>
>> _______________________________________________
>> rrd-users mailing list
>> rrd-users at lists.oetiker.ch
>> https://lists.oetiker.ch/cgi-bin/listinfo/rrd-users
>>
>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.oetiker.ch/pipermail/rrd-users/attachments/20130603/80a59a62/attachment.htm 


More information about the rrd-users mailing list