<font face="trebuchet ms,sans-serif">Great. We have a database that cannot be edited :) Thank you RRD!<br></font><br><div class="gmail_quote">On Fri, Jun 1, 2012 at 3:47 PM, Simon Hobson <span dir="ltr">&lt;<a href="mailto:linux@thehobsons.co.uk" target="_blank">linux@thehobsons.co.uk</a>&gt;</span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im">&gt;I need to update an rrd at a specific time<br>
&gt;stamp. Whatever timestamp I give is rejected<br>
&gt;with:<br>
&gt;ERROR: file.rrd: illegal attempt to update using<br>
&gt;time 1338480000 when last update time is<br>
&gt;1338546901 (minimum one second step)<br>
<br>
<br>
</div><div class="im">[Digital^Dude] ® wrote:<br>
&gt;I want to update these two values:<br>
&gt;<br>
&gt;1338480000: -3.0293609367e+06<br>
&gt;1338480300: -2.0135146667e+04<br>
&gt;<br>
&gt;to ZERO.<br>
<br>
<br>
</div>Top posting fixed ...<br>
<br>
Simple, you cannot do this.<br>
You can **NEVER** go back in time with RRD. Once<br>
you apply an update at any time, then you can<br>
never submit an update for an earlier time.<br>
When you do an update, several things happens :<br>
<br>
1) RRD will to the necessary calculations to work<br>
out the rate from the previous update to this one.<br>
<br>
2) If the new time is such that one or more steps<br>
or consolidated periods are now complete, then<br>
these will have data entered for them.<br>
<br>
3) Any data (such as previous update values) not<br>
now needed to do the same calculations next time<br>
are discarded. The last update values are kept as<br>
they will (in most cases) be needed to do the<br>
same calculations at the next update.<br>
<br>
<br>
There are only two ways to go back and submit new data :<br>
<br>
1) Delete your database, create a new one, and<br>
re-enter all data. This means keeping all your<br>
data somewhere outside of RRD so you can change<br>
values and resubmit them - in chronological order.<br>
<br>
2) You can dump the RRD to an XML file and edit<br>
the values before reading the XML into a new RRD<br>
file.<br>
<br>
In theory it would be possible to directly edit<br>
the RRD file, but there are no tools for that.<br>
You could also just dump the data with &quot;rrd<br>
fetch&quot; - but then you&#39;d need to do some work to<br>
select which data to use, potentially do some<br>
interpolation, and then stuff it back into a new<br>
RRD with a series of updates. Potentially a lot<br>
of work, and again, no tools for it.<br>
<span class="HOEnZb"><font color="#888888"><br>
--<br>
Simon Hobson<br>
<br>
Visit <a href="http://www.magpiesnestpublishing.co.uk/" target="_blank">http://www.magpiesnestpublishing.co.uk/</a> for books by acclaimed<br>
author Gladys Hobson. Novels - poetry - short stories - ideal as<br>
Christmas stocking fillers. Some available as e-books.<br>
<br>
_______________________________________________<br>
rrd-users mailing list<br>
<a href="mailto:rrd-users@lists.oetiker.ch">rrd-users@lists.oetiker.ch</a><br>
<a href="https://lists.oetiker.ch/cgi-bin/listinfo/rrd-users" target="_blank">https://lists.oetiker.ch/cgi-bin/listinfo/rrd-users</a><br>
</font></span></blockquote></div><br>