[rrd-users] Re: Update graph with one year data

Alex van den Bogaerdt alex at ergens.op.het.net
Sun Aug 28 07:04:31 MEST 2005


On Sat, Aug 27, 2005 at 11:41:22PM +0200, Damien THIESSON wrote:
> In a perl script, I use this structure for updating my rrd file:
> 
> my $i = 1124748000;  // 2005-05-01
> #while ( $i < 1125007200) { // env. now..
>        RRDs::update ("$path/ca_vg.rrd", "$i:55000");
>        #$i = $i + 300;
> }
> 
> I obtains this error:
> ERROR while updating ca_vg.rrd: illegal attempt to update using time 
> 1124748000 when last update time is 1125153385 (minimum one second step).

You updated with time 1124748000 (Tue Aug 23 00:00:00 2005 METDST)
The last update occured 1125153385 (Sat Aug 27 16:36:25 2005 METDST)

If you want 2005-05-01, it is 1114898400.

If you create a database and what to insert historic data, you have to
a) use "--start 1114898400" (or earlier)
and
b) perform your updates in chronological order

Alex

--
Unsubscribe mailto:rrd-users-request at list.ee.ethz.ch?subject=unsubscribe
Help        mailto:rrd-users-request at list.ee.ethz.ch?subject=help
Archive     http://lists.ee.ethz.ch/rrd-users
WebAdmin    http://lists.ee.ethz.ch/lsg2.cgi



More information about the rrd-users mailing list