[rrd-users] Re: double-check of rrd -create syntaxes? (flat line graphs)
    Alex van den Bogaerdt 
    alex at ergens.op.het.net
       
    Tue Nov 25 15:07:02 MET 2003
    
    
  
On Mon, Nov 24, 2003 at 03:06:51PM -0800, Robert Ames wrote:
>   Low rate of change application (bug counts), 
>   would like hourly samples.
>   1) Accuracy of 1 hour samples for 30 days
>   2) Average over 8 hours for 120 days
>   3) Daily average for 365 days.
> 
> I translated this into "rrd-land" by saying:
>   function create_rrd()
>   {
>         rrdtool create $1 -s 3600 \
>                 DS:enh:GAUGE:14400:0:U \
>                 DS:low:GAUGE:14400:0:U \
>                 DS:med:GAUGE:14400:0:U \
>                 DS:high:GAUGE:14400:0:U \
>                 DS:crit:GAUGE:14400:0:U \
heartbeat of 14400 allows for up to 12 hours between updates.
This is no problem if intended.
>                 RRA:AVERAGE:0.5:1:720 \
>                 RRA:AVERAGE:0.5:8:360 \
>                 RRA:AVERAGE:0.5:24:365
correct.  You may also want to have MAX RRAs, if so better do it now.
[snip]
> I added them sequentially by saying:
>   ./addscript.sh 3 17 41 19 5 `date -d "1 hour" +%s` 
>   ./addscript.sh 3 16 40 21 5 `date -d "2 hour" +%s` 
>   ...etc...
>   (the date command returns unix timestamp 1 hour in future)
so your database ends in the future.
[snip]
>     rrdtool graph $PNG --title "$TITLE bugs (${LENGTH}day)" \
>             --start -${LENGTH}d \
There is no "--end" here.  Default will be "now".
Add "--end now+10h" or whatever value is appropriate.
HTH
Alex
-- 
http://www.googlism.com/index.htm?ism=alex+van+den+bogaerdt&type=1
--
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