Today Michael Wells wrote:
| rrdtool graph totaltraffic_month.png -v "Bytes/sec" --start -2419200 --title | "Combined network traffic, 28 days" \ | DEF:rl0in=rl0.rrd:input:AVERAGE \ | DEF:rl0out=rl0.rrd:output:AVERAGE \ | AREA:rl0in#00CC00:"Total inbound traffic" \ | LINE2:rl0out#CC0000:"Total outbound traffic" \ | CDEF:combined=totalout,totalin,+ \ | CDEF:moncm=combined,2419200,* \ | CDEF:monin=totalin,2419200,* \ | CDEF:monout=totalout,2419200,* \ | "COMMENT:\\n" \ | "COMMENT:\\n" \ | "GPRINT:monin:AVERAGE:Estimated 28 day throughput %8.2lf %s | inbound\\n" \ | "GPRINT:monout:AVERAGE:Estimated 28 day throughput %8.2lf %s | outbound\\n" \ | "GPRINT:moncm:AVERAGE:Estimated 28 day throughput %8.2lf %s | combined\\n" \ | > /dev/null three cheers ... finally someone who makes good use of the rrdtool 'we always store rates' and does not ask for the 'total' tobi -- ______ __ _ /_ __/_ / / (_) Oetiker, ETZ J97, ETH, 8092 Zurich, Switzerland / // _ \/ _ \/ / phoneto:+41(0)1-632-5286 faxto:+41(0)1-632-1517 /_/ \.__/_.__/_/ mailto:[EMAIL PROTECTED] http://people.ee.ethz.ch/~oetiker -- Unsubscribe mailto:[EMAIL PROTECTED] Help mailto:[EMAIL PROTECTED] Archive http://www.ee.ethz.ch/~slist/rrd-users WebAdmin http://www.ee.ethz.ch/~slist/lsg2.cgi
