[rrd-users] Re: update rrd DB - empty

Alex van den Bogaerdt alex at ergens.op.het.net
Fri Sep 20 17:23:59 MEST 2002


On Fri, Sep 20, 2002 at 12:03:37PM -0300, Augusto Castelan Carlson wrote:

> I create a data base:
> - rrdtool create test.rrd DS:number:GAUGE:100:U:U RRA:AVERAGE:0.5:1:24

> Wich create a test.rrd file with a data source named number. The data is 
> gauge type.

yes

>             The max number is 100.

Nope.  The max number is U (unknown -> not set)
100 is the number of seconds that may be inbetween updates.  However,
you are updating every 300 seconds.  Result: each update is considered
to be too old --> discard it.

Try using 400 in stead.


>                                      The round robin archive keep 24 
> samples of 5 minutes.

yes

>                       The factor does not mean anything, because my step 
> is 1, or not?.

Well, technically you should say "steps" but yes, this is correct.

(step is the default of 300 seconds per PDP.  stepS is 1 PDP per CDP.
step is for the entire database, steps is for each RRA)

> To update de data base, I create a perl script (I´m not a Perl guru!) 
> wich run every 5 minutes that update like that:
[...]

> $comando = "c:\\rrdtool\\bin\\rrdtool update c:\\rrdtool\\file\\ras.rrd 
> N:".$number;
> system($comando);

1: You can probably use $comando = "c:/rrdtool/bin/rrdtool update   ....
2: You should be able to call rrdtool directly from perl

> - rrdtool fetch ras.rrd AVERAGE
> 
> 1032533100: -1.#IND000000e+000
[...]

Yup.  Always "NaN" which is shown to you as "#IND"


HTH
Alex

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