[rrd-users] updating rrd with data from history

solaris identity solaris.identity at gmail.com
Wed Jan 30 21:14:11 CET 2008


On Jan 30, 2008 6:52 AM, Alex van den Bogaerdt <alex at ergens.op.het.net>
wrote:

>  On Wed, Jan 30, 2008 at 06:28:35AM -0500, solaris identity wrote:
> > Hi,
> >
> > is it possible to update rrd files from data from the history. A rrd
>  file
> > created with -b option and with a time in the past, let's say "now
> -100".
> > Can I update this file with values from "now -95" if the heartbeat is
> 10s.
> > Or will the data be rejected? is the interval calculation always based
> on
> > the current time or the time from "-b" option.
>
>
> In short: you can, yes, no, no and yes.
>
> 'Last updated' time is set in the database. Using '-b' you can set this
> into
> the past.
>
> All updates should occur after, thus not before or on, 'Last updated'.
>
> An update which is tried before or on 'Last updated' is ignored and is
> considered not to have happened.
>
> Updating the database will set 'Last updated' to the time in that update,
> which is 'now' only if you use 'N' as your time.
>
>  Alex,

Thanks.

I have now what I think is a graphing problem, A an empty grpah is produced,
I hace included
o/p from rrd_fetch_fn.

 #1200915541      Mon Jan 21 06:39:01 2008

/usr/local/rrdtool-1.2.99907080300/bin/rrdtool create test.rrd -b 1200915541
-s 5 \
DS:t1:GAUGE:60:U:U \
DS:t2:GAUGE:60:U:U \
RRA:AVERAGE:0.5:1:12 \
RRA:AVERAGE:0.5:6:2

#1200915600      Mon Jan 21 06:40:00 2008
#1200915660      Mon Jan 21 06:41:00 2008
#1200915720      Mon Jan 21 06:42:00 2008
#1200915780      Mon Jan 21 06:43:00 2008
#1200915840      Mon Jan 21 06:44:00 2008
#1200915900      Mon Jan 21 06:45:00 2008

/usr/local/rrdtool-1.2.99907080300/bin/rrdtool update
test.rrd1200915600:10:10 1200915660:20:20
 1200915720:30:30 1200915780:40:40 1200915840:50:50 1200915900:60:60

/usr/local/rrdtool-1.2.99907080300/bin/rrdtool graph t1.png -e 1200915840 -s
1200915600 -t "test " -v "simple test" DEF:ds0=test.rrd:t1:AVERAGE
LINE1:ds0#0000FF:simple_test

Entered rrd_fetch_fn() searching for the best match
Looking for: start 1200915600 end 1200915840 step     0
Considering: start 1200915840 end 1200915900 step     5 best partial so far
Considering: start 1200915840 end 1200915900 step    30 partial match, not
best
We found:    start 1200915600 end 1200915845 step     5 rows  50
rra_start 1200915845, rra_end 1200915900, start_off -48, end_off 11
First Seek: rra_base 1144 rra_pointer 12
pre fetch -48 --        NaN        NaN
pre fetch -47 --        NaN        NaN
pre fetch -46 --        NaN        NaN
pre fetch -45 --        NaN        NaN
pre fetch -44 --        NaN        NaN
pre fetch -43 --        NaN        NaN
pre fetch -42 --        NaN        NaN
pre fetch -41 --        NaN        NaN
pre fetch -40 --        NaN        NaN
pre fetch -39 --        NaN        NaN
pre fetch -38 --        NaN        NaN
pre fetch -37 --        NaN        NaN
pre fetch -36 --        NaN        NaN
pre fetch -35 --        NaN        NaN
pre fetch -34 --        NaN        NaN
pre fetch -33 --        NaN        NaN
pre fetch -32 --        NaN        NaN
pre fetch -31 --        NaN        NaN
pre fetch -30 --        NaN        NaN
pre fetch -29 --        NaN        NaN
pre fetch -28 --        NaN        NaN
pre fetch -27 --        NaN        NaN
pre fetch -26 --        NaN        NaN
pre fetch -25 --        NaN        NaN
pre fetch -24 --        NaN        NaN
pre fetch -23 --        NaN        NaN
pre fetch -22 --        NaN        NaN
pre fetch -21 --        NaN        NaN
pre fetch -20 --        NaN        NaN
pre fetch -19 --        NaN        NaN
pre fetch -18 --        NaN        NaN
pre fetch -17 --        NaN        NaN
pre fetch -16 --        NaN        NaN
pre fetch -15 --        NaN        NaN
pre fetch -14 --        NaN        NaN
pre fetch -13 --        NaN        NaN
pre fetch -12 --        NaN        NaN
pre fetch -11 --        NaN        NaN
pre fetch -10 --        NaN        NaN
pre fetch -9 --        NaN        NaN
pre fetch -8 --        NaN        NaN
pre fetch -7 --        NaN        NaN
pre fetch -6 --        NaN        NaN
pre fetch -5 --        NaN        NaN
pre fetch -4 --        NaN        NaN
pre fetch -3 --        NaN        NaN
pre fetch -2 --        NaN        NaN
pre fetch -1 --        NaN        NaN
wrap seek ...
post fetch 0 --      10.00      10.00
497x179

Thanks
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.oetiker.ch/pipermail/rrd-users/attachments/20080130/2fefa007/attachment-0001.html 


More information about the rrd-users mailing list