[rrd-users] Question about RRDTool ..

Jean-Yves Avenard jyavenard at gmail.com
Fri Mar 21 13:12:46 CET 2008


Hi

On Fri, Mar 21, 2008 at 10:42 PM, Alex van den Bogaerdt
<alex at ergens.op.het.net> wrote:
>  What DEF statements do you use ?

I create the graph with the following:
/usr/local/rrdtool-1.2.27/bin/rrdtool graph images/speedday.png -l 0 \
-t 'Sync Speed - DAILY' \
-x HOUR:1:HOUR:4:HOUR:2:0:%k \
DEF:maxdown=modem.rrd:maxdown:AVERAGE \
    VDEF:ds2max=maxdown,MAXIMUM \
    VDEF:ds2avg=maxdown,AVERAGE \
    VDEF:ds2min=maxdown,MINIMUM \
    VDEF:ds2pct=maxdown,LAST \
 COMMENT:'            ' \
 COMMENT:'Maximum   ' \
    COMMENT:'Average   ' \
    COMMENT:'Minimum   '  \
    COMMENT:'Last Value\l' \
    LINE1:maxdown#00F000:'Max In. ' \
    GPRINT:ds2max:'%5.0lf kb/s' \
    GPRINT:ds2avg:'%5.0lf kb/s' \
    GPRINT:ds2min:'%5.0lf kb/s' \
    GPRINT:ds2pct:'  %5.0lf kb/s\l'

>
>  What Tobi said was:
>
>  use  max(all maximums)

I think this is what I'm doing

>  not  max(all averages)
>
>  Indeed, the latter does not make sense. But it is what you get when
>  you DEF:remote=speed.rrd:remote:AVERAGE

I'm not :)



More information about the rrd-users mailing list