<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    Thank you that's exactly what I needed.<br>
    <br>
    Patrick<br>
    <br>
    <br>
    <div class="moz-cite-prefix">On 03/06/13 07:16, Yannick Marquet
      wrote:<br>
    </div>
    <blockquote cite="mid:51ABB64A.2060302@yahoo.fr" type="cite">
      <meta content="text/html; charset=ISO-8859-1"
        http-equiv="Content-Type">
      <div class="moz-cite-prefix">Hello<br>
        <br>
        You need to increase "<a moz-do-not-send="true"
          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 &eacute;crit&nbsp;:<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" ............... &gt; /var/www/temp/data/temperature4h.xml

&lt;?xml version="1.0" encoding="ISO-8859-1"?&gt;

&lt;xport&gt;
   &lt;meta&gt;
     &lt;start&gt;1370146380&lt;/start&gt;
     &lt;step&gt;60&lt;/step&gt;
     &lt;end&gt;1370146380&lt;/end&gt;
     &lt;rows&gt;239&lt;/rows&gt;
     &lt;columns&gt;8&lt;/columns&gt;

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" ................  &gt; /var/www/temp/data/temperature24h.xml


&lt;?xml version="1.0" encoding="ISO-8859-1"?&gt;

&lt;xport&gt;
   &lt;meta&gt;
     &lt;start&gt;1370074500&lt;/start&gt;
     &lt;step&gt;300&lt;/step&gt;
     &lt;end&gt;1370074500&lt;/end&gt;
     &lt;rows&gt;289&lt;/rows&gt;
     &lt;columns&gt;8&lt;/columns&gt;
     &lt;legend&gt;


Any ideas?

Thanks

_______________________________________________
rrd-users mailing list
<a moz-do-not-send="true" class="moz-txt-link-abbreviated" href="mailto:rrd-users@lists.oetiker.ch">rrd-users@lists.oetiker.ch</a>
<a moz-do-not-send="true" 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>
    </blockquote>
    <br>
  </body>
</html>