[rrd-users] Insert OLD data into RRD files

Alexander Skwar alexanders.mailinglists+nospam at gmail.com
Thu Jun 18 15:32:51 CEST 2009


Okay, understood.

Thanks a lot!

On Thu, Jun 18, 2009 at 14:38, Andy Riebs <andy.riebs at hp.com> wrote:

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


-- 
Alexander
-- 
[[ http://zensursula.net ]]
[ Soc. => http://twitter.com/alexs77 | http://www.plurk.com/alexs77 ]
[ Mehr => http://zyb.com/alexws77 ]
[ Chat => Jabber: alexws77 at jabber80.com | Google Talk: a.skwar at gmail.com ]
[ Mehr => AIM: alexws77 ]
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.oetiker.ch/pipermail/rrd-users/attachments/20090618/9901b271/attachment.html 


More information about the rrd-users mailing list