[rrd-users] Re: Weekgraphs shows only one day.

Stephan Harren sh at abovenet.de
Fri Oct 11 10:05:39 MEST 2002


You'll have to do it like this:

RRA:AVERAGE:0.5:1:576
RRA:AVERAGE:0.5:6:384
RRA:AVERAGE:0.5:24:384
RRA:AVERAGE:0.5:288:366

1st line means that you save 576 initial values.
2nd line means that you save 384 values averaged from 6 initial values.
3rd line means that you save 384 values averaged from 24 initial values.
4th line means that you save 366 values averaged from 288 initial values.

(certainly, numbers of saved values are changeable)

Dump your rrd with rrdtool dump <rrdfile> and take a look at it, this 
will make things more clear. If you create an rrd, it is created to have 
a defined number of values, they are filled up with NaNs and this number 
won't change any more. What you did is, you defined your AVERAGE 
data-source to save 288 5-minute values and that's it.

HTH,

Stephan


HW wrote:
> Hi,
> 
> On my website http://www.geitz.net/weather/ I try to make dayly and 
> weekly graphs from my weather station.
> The day graphs are ok, but the weekgraphs only show the last day in the 
> graph.
> What is wrong? here is how I made it. (seen on 
> http://mywebpages.comcast.net/kaiminaouow/Using_Oww_and_RRDTOOL.html)
> 
> 
> init rrdtool (one year of data will be stored)
> rrdtool create /root/oww2.rrd -b -867000 --step 300 
> DS:temp1:GAUGE:600:-15:45 DS:temp2:GAUGE:600:-15:45 
> DS:temp3:GAUGE:600:-15:45 DS:wspd:GAUGE:600:0:140 
> DS:wdir:GAUGE:600:0:360 DS:baro:GAUGE:600:910:1050 RRA:AVERAGE:0.5:1:288 
> RRA:MIN:0.5:288:86400 RRA:MAX:0.5:288:86400
> 
> update every 20 sec:
> /usr/bin/rrdtool update /usr/local/share/oww/oww.rrd 
> N:$tc1$:$tc2$:$tc3$:$wspkph$:$wdrdeg$:$barmbar1$
> 
> dayly graph:
> #de temp plaatjes
> /usr/bin/rrdtool graph /var/www/docs/weather/temp1.png -s -86400 -h 150 
> -w 300 -t"Temp sensor 1 C" 
> \DEF:temp1=/usr/local/share/oww/oww.rrd:temp1:AVERAGE 
> LINE2:temp1#FF0000:"Temp1" 2>&1 >/dev/null
> 
> weekly graph:
> #de wind snelheid week
> /usr/bin/rrdtool graph /var/www/docs/weather/wspdweek.png -s -604800 -h 
> 150 -w 300 -t "Windspeed last 7 days" 
> \DEF:wspd=/usr/local/share/oww/oww.rrd:wspd:AVERAGE 
> LINE2:wspd#11ff00:"speed in kmph"2>&1 > /dev/null
> 
> 
> Can anyone help me out?
> 
> Many thanks in advance
> 
> Hans-Wilem
> 
> 
> 
> --
> 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
> 
> 


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