[rrd-users] =?ISO-8859-2?Q?If the samples are missing fill the blanks with the previous value. Can it =

arfa at poczta.onet.pl arfa at poczta.onet.pl
Tue Dec 10 17:48:10 MET 2002


be done ??=
Mime-Version: 1.0
X-Priority: 1
X-Mailer: onet.poczta

Hello all :
I'm having a problem with rrdtool runing it under windows platform.
(or I'm trying to use it incorectly ...)
I'm trying to use it's graphing capabilities to graph the spead of a
machine.
using those values I'm trying to produce the two hours graph :
Date : 12/5/2002 1:26:45 PM Date in UX : 1039112805 Speed : 26.7
Date : 12/5/2002 1:35:43 PM Date in UX : 1039113343 Speed : 25.5
Date : 12/5/2002 1:50:13 PM Date in UX : 1039114213 Speed : 27.5
Date : 12/5/2002 2:25:12 PM Date in UX : 1039116312 Speed : 29.5
Date : 12/5/2002 2:35:43 PM Date in UX : 1039116943 Speed : 28.8
Date : 12/5/2002 2:58:10 PM Date in UX : 1039118290 Speed : 26.6
Date : 12/5/2002 2:58:27 PM Date in UX : 1039118307 Speed : 0
Date : 12/5/2002 3:16:12 PM Date in UX : 1039119372 Speed : 29.3
Date : 12/5/2002 3:26:45 PM Date in UX : 1039120005 Speed : 29.3

using those commands :
rrdtool create 2.rrd --step 60 --start 1039112745 DS:sp:GAUGE:7200:0:80 RRA:MAX:0.5:1:122
- allocate 120 sample spaces every 60 sec  in RRA I have tried all
MAX, MIN, LAST , AVERAGE ... You name it ....
rrdtool update 2.rrd 1039112805:26.7 1039113343:25.5 1039114213:27.5
1039116312:29.5 1039116943:28.8 1039118290:26.6 1039118307:0
1039119372:29.3 1039120005:29.3
- updating it with values
rrdtool graph 2.gif --start 1039112805 --end 1039120005 --width 600
--height 220 --title="machine spead test" DEF:cel=2.rrd:sp:MAX
LINE1:cel#00aa00:"some machine spead"
- graph the resoults


By dumping the data to XML it shows the following :
<database>
 <!-- 2002-12-05 13:25:00 Eastern Standard Time / 1039112700 --><row><v> NaN </v></row>
 <!-- 2002-12-05 13:26:00 Eastern Standard Time / 1039112760 --><row><v> 2.6700000000e+001 </v></row>
 <!-- 2002-12-05 13:27:00 Eastern Standard Time / 1039112820 --><row><v> 2.5600000000e+001 </v></row>
 <!-- 2002-12-05 13:28:00 Eastern Standard Time / 1039112880 --><row><v> 2.5600000000e+001 </v></row>
 <!-- 2002-12-05 13:29:00 Eastern Standard Time / 1039112940 --><row><v> 2.5600000000e+001 </v></row>
 <!-- 2002-12-05 13:30:00 Eastern Standard Time / 1039113000 --><row><v> 2.5600000000e+001 </v></row>
 <!-- 2002-12-05 13:31:00 Eastern Standard Time / 1039113060 --><row><v> 2.5600000000e+001 </v></row>
 <!-- 2002-12-05 13:32:00 Eastern Standard Time / 1039113120 --><row><v> 2.5600000000e+001 </v></row>
 <!-- 2002-12-05 13:33:00 Eastern Standard Time / 1039113180 --><row><v> 2.5600000000e+001 </v></row>
 <!-- 2002-12-05 13:34:00 Eastern Standard Time / 1039113240 --><row><v> 2.5600000000e+001 </v></row>
 <!-- 2002-12-05 13:35:00 Eastern Standard Time / 1039113300 --><row><v> 2.5600000000e+001 </v></row>
 <!-- 2002-12-05 13:36:00 Eastern Standard Time / 1039113360 --><row><v> 2.7404444444e+001 </v></row>
 <!-- 2002-12-05 13:37:00 Eastern Standard Time / 1039113420 --><row><v> 2.7404444444e+001 </v></row>
 <!-- 2002-12-05 13:38:00 Eastern Standard Time / 1039113480 --><row><v> 2.7404444444e+001 </v></row>
 <!-- 2002-12-05 13:39:00 Eastern Standard Time / 1039113540 --><row><v> 2.7404444444e+001 </v></row>
 <!-- 2002-12-05 13:40:00 Eastern Standard Time / 1039113600 --><row><v> 2.7404444444e+001 </v></row>
 <!-- 2002-12-05 13:41:00 Eastern Standard Time / 1039113660 --><row><v> 2.7404444444e+001 </v></row>
 <!-- 2002-12-05 13:42:00 Eastern Standard Time / 1039113720 --><row><v> 2.7404444444e+001 </v></row>
Which is not what I expect to happen because at 13:32:00 my machine
was still running at the spead of 26.7 (untill it changed to 25.5 at
1:35:43).
In short it looks to me that if there are some samples missing rrdtool
fills the blanks backwards in time with the last value.
I wouldlike to know how to achive the oposite ... if the samples are
missing fill the blanks with the previous value.
There must be a simple fix for my problem ... 
The machine only logs the spead change when it happens ...
I have 'google' the problem for the last 2 days and .... I must be
very stupid and dumm because I could not find the way arround it
( with the exception of actualy creating a record for every sample
allocation).
I would appriciate any pointers.
/Art
--------------r-e-k-l-a-m-a-----------------

Masz dość płacenia prowizji bankowi ?
mBank - załóż konto
http://epieniadze.onet.pl/mbank 

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