[rrd-users] Re: Newbie needs a little help

Alex van den Bogaerdt alex at slot.hollandcasino.nl
Thu Jan 18 02:26:22 MET 2001


Matt Ashfield wrote:

> I created my rrd database as follows:
> (note, I was just trying to load in September 2000's numbers for now, so the
> time 967777200 corresponds to Sept. 1, 2000,  but would like to build so it
> will eventually store a whole year's worth)
> 
> rrdtool create bath.rrd --step 900 --start 967777200\
>  DS:input:COUNTER:600:U:U DS:output:COUNTER:600:U:U\
> RRA:AVERAGE:0.5:1:200 RRA:AVERAGE:0.5:2:700\
> RRA:AVERAGE:0.5:8:775 RRA:AVERAGE:0.5:96:797

Hint:  reread the documentation for rrdtool create.  Focus on "heartbeat".

> I then loaded my rrd with the following perl pseudo code:
> starting at Sept 1st, run extract the 15-minute intervaled stats and execute
> the following:
> rrdtool update bath.rrd $time:$in:$out

That's looking good.

> I checked the size of my bath.rrd file and it had increased, indicating to
> me that they loaded, plus I never got any errors (except on the very first
> time interval, which was expected).

Er, it had increased ?!?!?  That should not happen.  After creating
the RRD file, the size is fixed.  You can circumvent the first error by
starting the database not at time 967777200 but at 967777199 instead.

> rrdtool graph test.gif\
> DEF:inoctets=bath.rrd:input:AVERAGE\
> DEF:outoctets=myrouter.rrd:output:AVERAGE \
> AREA:inoctets#00FF00:"In traffic" \
> LINE1:outoctets#0000FF:"Out traffic"

You may want to include start and end.  For instance:
--start 967777200 --end start+1m

> This command runs fine, but when I go and look at the outputted gif file,
> there is no lines to it. It shows the grid, with labels In Traffic, Out
> Trafic, but there are no lines on the grid to represent my graphic. I've
> tried playing with the --start option when I graph the data, but always get
> the same output (ie, no traffic shows up)

When in doubt, dump the RRD file to an xml file (rrdtool dump).  Check
the content, in your case it will all be NaN.
Again: focus on the heartbeat.

cheers,
-- 
   __________________________________________________________________
 / 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