<div>Okay, understood.<br></div><div><br></div><div>Thanks a lot! </div><br><div class="gmail_quote">On Thu, Jun 18, 2009 at 14:38, Andy Riebs <span dir="ltr"><<a href="mailto:andy.riebs@hp.com">andy.riebs@hp.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">Alexander,<br>
<br>
It's still true that it's difficult to load "old" data, though this is<br>
actually desirable in large monitoring operations where an invalid<br>
timestamp could skew all manner of results.<br>
<br>
For an occasional back-dated update, the easiest thing to do is<br>
1. Dump the database<br>
2. Edit the dump file by hand, duplicating a valid XML stanza from<br>
immediately before or after the desired update time, and<br>
updating it with the missing data, in chronological sequence<br>
3. Restore the database<br>
<br>
HTH!<br>
Andy<br>
<div><div class="h5"><br>
On Thu, 2009-06-18 at 11:41 +0000, Alexander Skwar wrote:<br>
> Hello!<br>
><br>
> Is there a way to insert OLD data into RRD files? I tried:<br>
><br>
> $ rrdtool updatev 269.rrd 1241121600:852<br>
> return_value = -1<br>
> ERROR: 269.rrd: illegal attempt to update using time 1241121600 when<br>
> last update time is 1245323161 (minimum one second step)<br>
><br>
> Searching the lists, I found a post from 2003<br>
> <a href="http://osdir.com/ml/db.rrdtool.user/2003-01/msg00128.html" target="_blank">http://osdir.com/ml/db.rrdtool.user/2003-01/msg00128.html</a><br>
> which says, that it's not possible to load old data.<br>
><br>
> Is that still true?<br>
><br>
> What would I need to do, to get old data into my RRD file(s)?<br>
><br>
> - Dump contents<br>
> - Create empty new RRD file<br>
> - Load data, INCLUDING old data and dumped content<br>
><br>
> Would that be the correct approach?<br>
><br>
> The RRD files have been created by Cacti and I don't have<br>
> the slightest clue HOW they were created. Given the following<br>
> rrdtool dumped XML file (where I removed ALL the values<br>
> in the <database> sections), what would be the command<br>
> to recreate the RRD file?<br>
><br>
> <a href="http://files.getdropbox.com/u/135660/Cacti/269.rrd.blank.xml" target="_blank">http://files.getdropbox.com/u/135660/Cacti/269.rrd.blank.xml</a><br>
><br>
> Thanks a lot,<br>
><br>
> Alexander<br>
> --<br>
> [[ <a href="http://zensursula.net" target="_blank">http://zensursula.net</a> ]]<br>
> [ Soc. => <a href="http://twitter.com/alexs77" target="_blank">http://twitter.com/alexs77</a> | <a href="http://www.plurk.com/alexs77" target="_blank">http://www.plurk.com/alexs77</a> ]<br>
> [ Mehr => <a href="http://zyb.com/alexws77" target="_blank">http://zyb.com/alexws77</a> ]<br>
> [ Chat => Jabber: <a href="mailto:alexws77@jabber80.com">alexws77@jabber80.com</a> | Google Talk:<br>
> <a href="mailto:a.skwar@gmail.com">a.skwar@gmail.com</a> ]<br>
> [ Mehr => AIM: alexws77 ]<br>
><br>
><br>
</div></div><font color="#888888">--<br>
Progress comes in many flavors!<br>
Andy Riebs, HP Scalable Computing and Infrastructure / Catalysts<br>
(w) <a href="mailto:andy.riebs@hp.com">andy.riebs@hp.com</a> Technology for better business outcomes<br>
+1.508.467.3002 (In office Tue & Wed, IM or mail other days)<br>
(h) <a href="mailto:andy@candooz.com">andy@candooz.com</a> My opinions are not necessarily those of HP<br>
<br>
</font></blockquote></div><br><br clear="all"><br>-- <br>Alexander<br>-- <br>[[ <a href="http://zensursula.net">http://zensursula.net</a> ]]<br>[ Soc. => <a href="http://twitter.com/alexs77">http://twitter.com/alexs77</a> | <a href="http://www.plurk.com/alexs77">http://www.plurk.com/alexs77</a> ]<br>
[ Mehr => <a href="http://zyb.com/alexws77">http://zyb.com/alexws77</a> ]<br>[ Chat => Jabber: <a href="mailto:alexws77@jabber80.com">alexws77@jabber80.com</a> | Google Talk: <a href="mailto:a.skwar@gmail.com">a.skwar@gmail.com</a> ]<br>
[ Mehr => AIM: alexws77 ]<br><br><br>