[rrd-users] using DST:GAUGE and update with explicit timestamps

uaca at alumni.uv.es uaca at alumni.uv.es
Mon Sep 29 21:03:47 MEST 2003



Hi all, 

I want to store some data as is, with an interval of 60 seconds, and start
time "X". In the updates I store the data specify the timestamp as X+(60*N)
where N is the iteration number (starting at 1)

I'm seeing that rrdtool seems it interpolate the data stored, I supossed
specifying the timestamp was the way to avoid.

If I store the numbers 1, 2, 3, ... in each iteration, rrdtool saves the
following:

   1.0000000000e+00
   1.2000000000e+00 <--- see the .2 add here
   2.2000000000e+00
   3.2000000000e+00
   4.2000000000e+00
   5.2000000000e+00
   6.2000000000e+00
   7.2000000000e+00
   8.2000000000e+00
   9.2000000000e+00
   1.0200000000e+01
   1.1200000000e+01



I append the create and update scripts and the end

Any comment would be greatly appreciated

Thanks

	Ulisses	

                Debian GNU/Linux: a dream come true
-----------------------------------------------------------------------------
"Computers are useless. They can only give answers."            Pablo Picasso

--->	Visita http://www.valux.org/ para saber acerca de la	<---
--->	Asociación Valenciana de Usuarios de Linux		<---

Create command:

rrdtool create RTT.rrd --start 1064861028 --step 60 DS:n1_rtt_sa:GAUGE:120:0:U RRA:LAST:0:1:1440

Update "script":

sh -c ' declare -i i; declare -i ts; i=0; ts=1064861028 ; while true; do
rrdtool update RTT.rrd $ts:$i; echo $i ; i=$i+1 ; ts=$ts+60; done'

 

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