[rrd-users] Re: binary value

Gilles Lamiral lamiral at mail.dotcom.fr
Mon Mar 6 19:39:43 MET 2000


alex at ergens.op.Het.Net wrote:

> An example is in place here.  Suppose you are monitoring the following
> values at the following times:

> What is going to happen?  During one interval, the value has been
> 0 for half of that interval and it has been 1 for the other half.
> This means that the average value will be 0.5 ...
> 
> The minimum value will be 0, the maximum value will be 1.

I don't understand everything. Look at this:

rrdtool create bit.rrd --start 952210799    \
                       --step 300           \
                       DS:bit:GAUGE:300:0:1 \
                       RRA:AVERAGE:0:1:6    \
                       RRA:MAX:0:1:6    \
                       RRA:MIN:0:1:6    \
                       RRA:LAST:0:1:6   

rrdtool update bit.rrd    952210800:1
rrdtool update bit.rrd    952210850:0
rrdtool update bit.rrd    952210900:0
rrdtool update bit.rrd    952210950:0
rrdtool update bit.rrd    952211000:0
rrdtool update bit.rrd    952211050:1
rrdtool update bit.rrd    952211100:1

rrdtool fetch bit.rrd AVERAGE --start 952210799 --end 952211400
                      bit

 952210500:           NaN
 952210800:          1.00
 952211100:          0.33
 952211400:           NaN

rrdtool fetch bit.rrd MAX --start 952210799 --end 952211400
                      bit

 952210500:           NaN
 952210800:          1.00
 952211100:          0.33
 952211400:           NaN

rrdtool fetch bit.rrd MIN --start 952210799 --end 952211400
                      bit

 952210500:           NaN
 952210800:          1.00
 952211100:          0.33
 952211400:           NaN

rrdtool fetch bit.rrd LAST --start 952210799 --end 952211400
                      bit

 952210500:           NaN
 952210800:          1.00
 952211100:          0.33
 952211400:           NaN

Everything is AVERAGE. Why ?

-- 
au revoir,
Gilles Lamiral. France, Rennes (35).

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



More information about the rrd-users mailing list