[rrd-users] Re: One more problem..

Alex van den Bogaerdt alex at slot.hollandcasino.nl
Mon Aug 6 11:12:34 MEST 2001


Kyrre Baker wrote:

> First i create the *.rrd like this:
> 
> 	rrdtool create all.rrd -s 300 \
> 		DS:a:GAUGE:600:-100:100 \
> 		RRA:AVERAGE:0.5:1:200 \
> 		RRA:MIN:0.5:12:200 \
> 		RRA:MAX:0.5:12:200 \
> 		RRA:AVERAGE:0.5:12:200

So: default step time of 300 seconds (5 minutes).  A DS called 'a' that
needs to be updated at least every 600 seconds (10 minutes) and its value
must be in the range of -100 to 100 (inclusive).

The RRAs are:
   200 rows of  1 * 5-minute averages ( 1000 minutes)
   200 rows of 12 * 5-minute minima   (12000 minutes)
   200 rows of 12 * 5-minute maxima   (12000 minutes)
   200 rows of 12 * 5-minute averages (12000 minutes)
Each of the rows in these RRAs will be built if at least half of the
needed PDPs are not NaN.

> Then i am trying to populate the database with lines like this:
> 
> 	rrdtool update all.rrd N:10
> 	rrdtool update all.rrd N:20
...[snip]...
> 	rrdtool update all.rrd N:-40
> 	rrdtool update all.rrd N:-50

You forget to tell how much time apart the updates are.  This is
vital information for us to tell.

> This would give me some negative values to (right?). But! When i try to

Right, if it will give values at all.

> create an graph (*.gif) from this data, it seems like there`s no data in the
> rrd. Also: when i try to do an "rrdtool fetch all.rrd AVERAGE" i just get
> lines like this:
> 
> 	996973200:  NaN
> 	996976800:  NaN
> 	996980400:  NaN
> 	996984000:  NaN

Note that the time stamps are 3600 seconds apart.  You probably used
the default in your graph command.  That means that you ask for one
complete day.  There's no way to get one day (1440 minutes) out of an
RRA that only contains 1000 minutes of data.

If the updates were so that at least 6 of them where valid ones in the
last hour, you should have gotten at least one row unequal to NaN.

> I can`t se where i`m doing the wront turn here.. :(

First of all try "rrdtool fetch all.rrd AVERAGE --start end-900min"

Then try to graph:

rrdtool graph all.png -a PNG --start '20010805 0:00' --end start+1d \
...etcetera...

HTH
-- 
   __________________________________________________________________
 / alex at slot.hollandcasino.nl                  alex at ergens.op.het.net \
| work                                                         private |
| My employer is capable of speaking therefore I speak only for myself |
+----------------------------------------------------------------------+
| Technical questions sent directly to me will be nuked. Use the list. | 
+----------------------------------------------------------------------+
| http://faq.mrtg.org/                                                 |
| http://rrdtool.eu.org  --> tutorial                                  |
+----------------------------------------------------------------------+

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