<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<div class="moz-cite-prefix">Hello<br>
<br>
You need to increase "<a
id="I_m___maxrows_rows__default_400_rows_"><b>-m</b>|<b>--maxrows</b>
<i>rows</i> (default 400 rows)"</a> parameter :<br>
<br>
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).<br>
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.<br>
<br>
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.<br>
<br>
Yannick.<br>
Le 02/06/2013 10:15, Patrick Joy a écrit :<br>
</div>
<blockquote cite="mid:51AAFF23.4070606@joytech.com.au" type="cite">
<pre wrap="">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
<a class="moz-txt-link-abbreviated" href="mailto:rrd-users@lists.oetiker.ch">rrd-users@lists.oetiker.ch</a>
<a class="moz-txt-link-freetext" href="https://lists.oetiker.ch/cgi-bin/listinfo/rrd-users">https://lists.oetiker.ch/cgi-bin/listinfo/rrd-users</a>
</pre>
</blockquote>
<br>
</body>
</html>