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

Damien THIESSON damien at verygames.net
Sun Aug 28 13:14:59 MEST 2005


Alex van den Bogaerdt wrote:

>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
>
>  
>
Thanks for this usefull answer.

Sorry for the wrong value of timestamp, it was a test value, real date 
is 2004-05-01.

I've an another problem: Updates must be performed in chronological 
(timestamp < last update time), but I've the same error message: The 
last update time is the timestamp of the creation of the rrd file.

Here is my create call:

RRDs::create ("$path/ca_vg.rrd",
          "-s 300",
          "DS:ca:GAUGE:600:0:300000",
          "RRA:AVERAGE:0.5:1:864",   #5 mins
          "RRA:AVERAGE:0.5:7:576",   #35 mins
          "RRA:AVERAGE:0.5:30:594", #2h30  
          "RRA:AVERAGE:0.5:360:2880"), #30h
          "--start 1083456000";

Any idea?

-- 
Damien THIESSON


--
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