Annotation of embedaddon/lighttpd/doc/scripts/rrdtool-graph.sh, revision 1.1.1.1

1.1       misho       1: #!/bin/sh
                      2: 
                      3: RRDTOOL=/usr/bin/rrdtool
                      4: OUTDIR=/var/www/servers/www.example.org/pages/rrd/
                      5: INFILE=/var/www/lighttpd.rrd
                      6: OUTPRE=lighttpd-traffic
                      7: 
                      8: DISP="DEF:bin=$INFILE:InOctets:AVERAGE \
                      9:       DEF:binmin=$INFILE:InOctets:MIN \
                     10:       DEF:binmax=$INFILE:InOctets:MAX \
                     11:       DEF:bout=$INFILE:OutOctets:AVERAGE \
                     12:       DEF:boutmin=$INFILE:OutOctets:MIN \
                     13:       DEF:boutmax=$INFILE:OutOctets:MAX \
                     14:       LINE1:bin#0000FF:in \
                     15:       LINE1:binmin#2222FF: \
                     16:       STACK:binmax#2222FF: \
                     17:       LINE1:bout#FF0000:out \
                     18:       LINE1:boutmin#FF2222: \
                     19:       STACK:boutmax#FF2222: \
                     20:       -v bytes/s"
                     21: 
                     22: $RRDTOOL graph $OUTDIR/$OUTPRE-hour.png -a PNG --start -14400 $DISP
                     23: $RRDTOOL graph $OUTDIR/$OUTPRE-day.png -a PNG --start -86400 $DISP
                     24: $RRDTOOL graph $OUTDIR/$OUTPRE-month.png -a PNG --start -2592000 $DISP
                     25: 
                     26: OUTPRE=lighttpd-requests
                     27: 
                     28: DISP="DEF:req=$INFILE:Requests:AVERAGE \
                     29:       DEF:reqmin=$INFILE:Requests:MIN \
                     30:       DEF:reqmax=$INFILE:Requests:MAX \
                     31:       LINE1:req#0000FF:requests \
                     32:       LINE1:reqmin#2222FF: \
                     33:       STACK:reqmax#2222FF: \
                     34:       -v req/s"
                     35: 
                     36: $RRDTOOL graph $OUTDIR/$OUTPRE-hour.png -a PNG --start -14400 $DISP
                     37: $RRDTOOL graph $OUTDIR/$OUTPRE-day.png -a PNG --start -86400 $DISP
                     38: $RRDTOOL graph $OUTDIR/$OUTPRE-month.png -a PNG --start -2592000 $DISP

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>