[rrd-users] Updating RRD file with GAUGE DST

Pitisi dpitisi at lfdj.com
Wed Nov 12 15:23:41 MET 2003


Hello,
I create a RRD file with the following command:

$ rrdtool create fic.rrd --start 1067264480 --step 10
DS:Metrique:GAUGE:20:U:U RRA:AVERAGE:0.5:1:360

Then I update it with the command:

$ rrdtool update fic.rrd --template Metrique 1067264490:200

Finally I enter the command:

$ rrdtool fetch fic.rrd AVERAGE --start 1067264480 --end 1067264520
              Metrique

1067264480: nan
1067264490: nan
1067264500: nan
1067264510: nan
1067264520: nan

It's as if nothing had been updated, but if I enter the commande once
more, then I have an error message which tells me:
ERROR: illegal attempt to update using time 1067264490 when last update
time is 1067264490 (minimum one second step)

So the update command did something, but what???

If I had another update at 1067264500, then it works, and I have:
$ rrdtool fetch fic.rrd AVERAGE --start 1067264480 --end 1067264520
              Metrique

1067264480: nan
1067264490: nan
1067264500: 2.0100000000e+02
1067264510: nan
1067264520: nan

The 1st inserted value (1067264490:200) still doesn't appear.

If I delete fic.rrd and restart the same experience, but replace
1067264490:200 in the first update by 1067264480:200 (at the first entry
in the RRD file), everythings works correctly:
 $ rrdtool fetch fic.rrd AVERAGE --start 1067264480 --end 1067264520
              Metrique

1067264480: 2.0000000000e+02
1067264490: nan
1067264500: nan
1067264510: nan
1067264520: nan

Does somebody know this problem???

Didier



-- Attached file removed by Ecartis and put at URL below --
-- Type: text/plain
-- Size: 1k (1255 bytes)
-- URL : http://www.ee.ethz.ch/~slist/p/05-Disclaimer.txt


--
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://www.ee.ethz.ch/~slist/rrd-users
WebAdmin    http://www.ee.ethz.ch/~slist/lsg2.cgi



More information about the rrd-users mailing list