# [rrd-users] Re: Bar Graphing with rrdtool Graph

Erik erik at infopact.nl
Fri Nov 11 09:27:52 MET 2005

```Here you go, don't say i didn't warn you ;)

Basicly: i calculate the total for a period of 1 day and use a badd ass way to link that total to a time period using a CDEF (VDEF is only 1 value, no
time componenten, but to graph it it needs a time component otherwise you would just graph 1 large block)

Kind regards,

Erik

/usr/local/rrdtool/bin/rrdtool graph /usr/local/apache/htdocs/netwerk/img/test.png --start 1128117600 --end 1130799600 -v "Bytes" -r -w 500 -h 200 \
DEF:in_tmp_1=/hdb1/network/rrds/362--1614.rrd:in:AVERAGE:start=1128117600:end=1128204000 \
CDEF:in_1=in_tmp_1,8,* \
DEF:out_tmp_1=/hdb1/network/rrds/362--1614.rrd:out:AVERAGE:start=1128117600:end=1128204000 \
CDEF:out_1=out_tmp_1,8,* \
VDEF:intotal_1=in_tmp_1,TOTAL \
VDEF:outtotal_1=out_tmp_1,TOTAL \
CDEF:in_total_1=in_1,in_1,-,intotal_1,+ \
CDEF:out_total_1=out_1,out_1,-,outtotal_1,+,-1,* \
AREA:in_total_1#00FF00: \
AREA:out_total_1#0000FF \
GPRINT:intotal_1:"Sat 01-10-2005   input\: %3.2lf %sB"  \
GPRINT:outtotal_1:"output\:  %3.2lf %sB\n" \
\
DEF:in_tmp_2=/hdb1/network/rrds/362--1614.rrd:in:AVERAGE:start=1128204000:end=1128290400 \
CDEF:in_2=in_tmp_2,8,* \
DEF:out_tmp_2=/hdb1/network/rrds/362--1614.rrd:out:AVERAGE:start=1128204000:end=1128290400 \
CDEF:out_2=out_tmp_2,8,* \
VDEF:intotal_2=in_tmp_2,TOTAL \
VDEF:outtotal_2=out_tmp_2,TOTAL \
CDEF:in_total_2=in_2,in_2,-,intotal_2,+ \
CDEF:out_total_2=out_2,out_2,-,outtotal_2,+,-1,* \
AREA:in_total_2#00FF00: \
AREA:out_total_2#0000FF \
GPRINT:intotal_2:"Sun 02-10-2005   input\: %3.2lf %sB"  \
GPRINT:outtotal_2:"output\:  %3.2lf %sB\n" \
\
DEF:in_tmp_3=/hdb1/network/rrds/362--1614.rrd:in:AVERAGE:start=1128290400:end=1128376800 \
CDEF:in_3=in_tmp_3,8,* \
DEF:out_tmp_3=/hdb1/network/rrds/362--1614.rrd:out:AVERAGE:start=1128290400:end=1128376800 \
CDEF:out_3=out_tmp_3,8,* \
VDEF:intotal_3=in_tmp_3,TOTAL \
VDEF:outtotal_3=out_tmp_3,TOTAL \
CDEF:in_total_3=in_3,in_3,-,intotal_3,+ \
CDEF:out_total_3=out_3,out_3,-,outtotal_3,+,-1,* \
AREA:in_total_3#00FF00: \
AREA:out_total_3#0000FF \
GPRINT:intotal_3:"Mon 03-10-2005   input\: %3.2lf %sB"  \
GPRINT:outtotal_3:"output\:  %3.2lf %sB\n" \
\
DEF:in_tmp_4=/hdb1/network/rrds/362--1614.rrd:in:AVERAGE:start=1128376800:end=1128463200 \
CDEF:in_4=in_tmp_4,8,* \
DEF:out_tmp_4=/hdb1/network/rrds/362--1614.rrd:out:AVERAGE:start=1128376800:end=1128463200 \
CDEF:out_4=out_tmp_4,8,* \
VDEF:intotal_4=in_tmp_4,TOTAL \
VDEF:outtotal_4=out_tmp_4,TOTAL \
CDEF:in_total_4=in_4,in_4,-,intotal_4,+ \
CDEF:out_total_4=out_4,out_4,-,outtotal_4,+,-1,* \
AREA:in_total_4#00FF00: \
AREA:out_total_4#0000FF \
GPRINT:intotal_4:"Tue 04-10-2005   input\: %3.2lf %sB"  \
GPRINT:outtotal_4:"output\:  %3.2lf %sB\n" \
\
DEF:in_tmp_5=/hdb1/network/rrds/362--1614.rrd:in:AVERAGE:start=1128463200:end=1128549600 \
CDEF:in_5=in_tmp_5,8,* \
DEF:out_tmp_5=/hdb1/network/rrds/362--1614.rrd:out:AVERAGE:start=1128463200:end=1128549600 \
CDEF:out_5=out_tmp_5,8,* \
VDEF:intotal_5=in_tmp_5,TOTAL \
VDEF:outtotal_5=out_tmp_5,TOTAL \
CDEF:in_total_5=in_5,in_5,-,intotal_5,+ \
CDEF:out_total_5=out_5,out_5,-,outtotal_5,+,-1,* \
AREA:in_total_5#00FF00: \
AREA:out_total_5#0000FF \
GPRINT:intotal_5:"Wed 05-10-2005   input\: %3.2lf %sB"  \
GPRINT:outtotal_5:"output\:  %3.2lf %sB\n" \
\
DEF:in_tmp_6=/hdb1/network/rrds/362--1614.rrd:in:AVERAGE:start=1128549600:end=1128636000 \
CDEF:in_6=in_tmp_6,8,* \
DEF:out_tmp_6=/hdb1/network/rrds/362--1614.rrd:out:AVERAGE:start=1128549600:end=1128636000 \
CDEF:out_6=out_tmp_6,8,* \
VDEF:intotal_6=in_tmp_6,TOTAL \
VDEF:outtotal_6=out_tmp_6,TOTAL \
CDEF:in_total_6=in_6,in_6,-,intotal_6,+ \
CDEF:out_total_6=out_6,out_6,-,outtotal_6,+,-1,* \
AREA:in_total_6#00FF00: \
AREA:out_total_6#0000FF \
GPRINT:intotal_6:"Thu 06-10-2005   input\: %3.2lf %sB"  \
GPRINT:outtotal_6:"output\:  %3.2lf %sB\n" \
\
DEF:in_tmp_7=/hdb1/network/rrds/362--1614.rrd:in:AVERAGE:start=1128636000:end=1128722400 \
CDEF:in_7=in_tmp_7,8,* \
DEF:out_tmp_7=/hdb1/network/rrds/362--1614.rrd:out:AVERAGE:start=1128636000:end=1128722400 \
CDEF:out_7=out_tmp_7,8,* \
VDEF:intotal_7=in_tmp_7,TOTAL \
VDEF:outtotal_7=out_tmp_7,TOTAL \
CDEF:in_total_7=in_7,in_7,-,intotal_7,+ \
CDEF:out_total_7=out_7,out_7,-,outtotal_7,+,-1,* \
AREA:in_total_7#00FF00: \
AREA:out_total_7#0000FF \
GPRINT:intotal_7:"Fri 07-10-2005   input\: %3.2lf %sB"  \
GPRINT:outtotal_7:"output\:  %3.2lf %sB\n" \
\
DEF:in_tmp_8=/hdb1/network/rrds/362--1614.rrd:in:AVERAGE:start=1128722400:end=1128808800 \
CDEF:in_8=in_tmp_8,8,* \
DEF:out_tmp_8=/hdb1/network/rrds/362--1614.rrd:out:AVERAGE:start=1128722400:end=1128808800 \
CDEF:out_8=out_tmp_8,8,* \
VDEF:intotal_8=in_tmp_8,TOTAL \
VDEF:outtotal_8=out_tmp_8,TOTAL \
CDEF:in_total_8=in_8,in_8,-,intotal_8,+ \
CDEF:out_total_8=out_8,out_8,-,outtotal_8,+,-1,* \
AREA:in_total_8#00FF00: \
AREA:out_total_8#0000FF \
GPRINT:intotal_8:"Sat 08-10-2005   input\: %3.2lf %sB"  \
GPRINT:outtotal_8:"output\:  %3.2lf %sB\n" \
\
DEF:in_tmp_9=/hdb1/network/rrds/362--1614.rrd:in:AVERAGE:start=1128808800:end=1128895200 \
CDEF:in_9=in_tmp_9,8,* \
DEF:out_tmp_9=/hdb1/network/rrds/362--1614.rrd:out:AVERAGE:start=1128808800:end=1128895200 \
CDEF:out_9=out_tmp_9,8,* \
VDEF:intotal_9=in_tmp_9,TOTAL \
VDEF:outtotal_9=out_tmp_9,TOTAL \
CDEF:in_total_9=in_9,in_9,-,intotal_9,+ \
CDEF:out_total_9=out_9,out_9,-,outtotal_9,+,-1,* \
AREA:in_total_9#00FF00: \
AREA:out_total_9#0000FF \
GPRINT:intotal_9:"Sun 09-10-2005   input\: %3.2lf %sB"  \
GPRINT:outtotal_9:"output\:  %3.2lf %sB\n" \
\
DEF:in_tmp_10=/hdb1/network/rrds/362--1614.rrd:in:AVERAGE:start=1128895200:end=1128981600 \
CDEF:in_10=in_tmp_10,8,* \
DEF:out_tmp_10=/hdb1/network/rrds/362--1614.rrd:out:AVERAGE:start=1128895200:end=1128981600 \
CDEF:out_10=out_tmp_10,8,* \
VDEF:intotal_10=in_tmp_10,TOTAL \
VDEF:outtotal_10=out_tmp_10,TOTAL \
CDEF:in_total_10=in_10,in_10,-,intotal_10,+ \
CDEF:out_total_10=out_10,out_10,-,outtotal_10,+,-1,* \
AREA:in_total_10#00FF00: \
AREA:out_total_10#0000FF \
GPRINT:intotal_10:"Mon 10-10-2005   input\: %3.2lf %sB"  \
GPRINT:outtotal_10:"output\:  %3.2lf %sB\n" \
\
DEF:in_tmp_11=/hdb1/network/rrds/362--1614.rrd:in:AVERAGE:start=1128981600:end=1129068000 \
CDEF:in_11=in_tmp_11,8,* \
DEF:out_tmp_11=/hdb1/network/rrds/362--1614.rrd:out:AVERAGE:start=1128981600:end=1129068000 \
CDEF:out_11=out_tmp_11,8,* \
VDEF:intotal_11=in_tmp_11,TOTAL \
VDEF:outtotal_11=out_tmp_11,TOTAL \
CDEF:in_total_11=in_11,in_11,-,intotal_11,+ \
CDEF:out_total_11=out_11,out_11,-,outtotal_11,+,-1,* \
AREA:in_total_11#00FF00: \
AREA:out_total_11#0000FF \
GPRINT:intotal_11:"Tue 11-10-2005   input\: %3.2lf %sB"  \
GPRINT:outtotal_11:"output\:  %3.2lf %sB\n" \
\
DEF:in_tmp_12=/hdb1/network/rrds/362--1614.rrd:in:AVERAGE:start=1129068000:end=1129154400 \
CDEF:in_12=in_tmp_12,8,* \
DEF:out_tmp_12=/hdb1/network/rrds/362--1614.rrd:out:AVERAGE:start=1129068000:end=1129154400 \
CDEF:out_12=out_tmp_12,8,* \
VDEF:intotal_12=in_tmp_12,TOTAL \
VDEF:outtotal_12=out_tmp_12,TOTAL \
CDEF:in_total_12=in_12,in_12,-,intotal_12,+ \
CDEF:out_total_12=out_12,out_12,-,outtotal_12,+,-1,* \
AREA:in_total_12#00FF00: \
AREA:out_total_12#0000FF \
GPRINT:intotal_12:"Wed 12-10-2005   input\: %3.2lf %sB"  \
GPRINT:outtotal_12:"output\:  %3.2lf %sB\n" \
\
DEF:in_tmp_13=/hdb1/network/rrds/362--1614.rrd:in:AVERAGE:start=1129154400:end=1129240800 \
CDEF:in_13=in_tmp_13,8,* \
DEF:out_tmp_13=/hdb1/network/rrds/362--1614.rrd:out:AVERAGE:start=1129154400:end=1129240800 \
CDEF:out_13=out_tmp_13,8,* \
VDEF:intotal_13=in_tmp_13,TOTAL \
VDEF:outtotal_13=out_tmp_13,TOTAL \
CDEF:in_total_13=in_13,in_13,-,intotal_13,+ \
CDEF:out_total_13=out_13,out_13,-,outtotal_13,+,-1,* \
AREA:in_total_13#00FF00: \
AREA:out_total_13#0000FF \
GPRINT:intotal_13:"Thu 13-10-2005   input\: %3.2lf %sB"  \
GPRINT:outtotal_13:"output\:  %3.2lf %sB\n" \
\
DEF:in_tmp_14=/hdb1/network/rrds/362--1614.rrd:in:AVERAGE:start=1129240800:end=1129327200 \
CDEF:in_14=in_tmp_14,8,* \
DEF:out_tmp_14=/hdb1/network/rrds/362--1614.rrd:out:AVERAGE:start=1129240800:end=1129327200 \
CDEF:out_14=out_tmp_14,8,* \
VDEF:intotal_14=in_tmp_14,TOTAL \
VDEF:outtotal_14=out_tmp_14,TOTAL \
CDEF:in_total_14=in_14,in_14,-,intotal_14,+ \
CDEF:out_total_14=out_14,out_14,-,outtotal_14,+,-1,* \
AREA:in_total_14#00FF00: \
AREA:out_total_14#0000FF \
GPRINT:intotal_14:"Fri 14-10-2005   input\: %3.2lf %sB"  \
GPRINT:outtotal_14:"output\:  %3.2lf %sB\n" \
\
DEF:in_tmp_15=/hdb1/network/rrds/362--1614.rrd:in:AVERAGE:start=1129327200:end=1129413600 \
CDEF:in_15=in_tmp_15,8,* \
DEF:out_tmp_15=/hdb1/network/rrds/362--1614.rrd:out:AVERAGE:start=1129327200:end=1129413600 \
CDEF:out_15=out_tmp_15,8,* \
VDEF:intotal_15=in_tmp_15,TOTAL \
VDEF:outtotal_15=out_tmp_15,TOTAL \
CDEF:in_total_15=in_15,in_15,-,intotal_15,+ \
CDEF:out_total_15=out_15,out_15,-,outtotal_15,+,-1,* \
AREA:in_total_15#00FF00: \
AREA:out_total_15#0000FF \
GPRINT:intotal_15:"Sat 15-10-2005   input\: %3.2lf %sB"  \
GPRINT:outtotal_15:"output\:  %3.2lf %sB\n" \
\
DEF:in_tmp_16=/hdb1/network/rrds/362--1614.rrd:in:AVERAGE:start=1129413600:end=1129500000 \
CDEF:in_16=in_tmp_16,8,* \
DEF:out_tmp_16=/hdb1/network/rrds/362--1614.rrd:out:AVERAGE:start=1129413600:end=1129500000 \
CDEF:out_16=out_tmp_16,8,* \
VDEF:intotal_16=in_tmp_16,TOTAL \
VDEF:outtotal_16=out_tmp_16,TOTAL \
CDEF:in_total_16=in_16,in_16,-,intotal_16,+ \
CDEF:out_total_16=out_16,out_16,-,outtotal_16,+,-1,* \
AREA:in_total_16#00FF00: \
AREA:out_total_16#0000FF \
GPRINT:intotal_16:"Sun 16-10-2005   input\: %3.2lf %sB"  \
GPRINT:outtotal_16:"output\:  %3.2lf %sB\n" \
\
DEF:in_tmp_17=/hdb1/network/rrds/362--1614.rrd:in:AVERAGE:start=1129500000:end=1129586400 \
CDEF:in_17=in_tmp_17,8,* \
DEF:out_tmp_17=/hdb1/network/rrds/362--1614.rrd:out:AVERAGE:start=1129500000:end=1129586400 \
CDEF:out_17=out_tmp_17,8,* \
VDEF:intotal_17=in_tmp_17,TOTAL \
VDEF:outtotal_17=out_tmp_17,TOTAL \
CDEF:in_total_17=in_17,in_17,-,intotal_17,+ \
CDEF:out_total_17=out_17,out_17,-,outtotal_17,+,-1,* \
AREA:in_total_17#00FF00: \
AREA:out_total_17#0000FF \
GPRINT:intotal_17:"Mon 17-10-2005   input\: %3.2lf %sB"  \
GPRINT:outtotal_17:"output\:  %3.2lf %sB\n" \
\
DEF:in_tmp_18=/hdb1/network/rrds/362--1614.rrd:in:AVERAGE:start=1129586400:end=1129672800 \
CDEF:in_18=in_tmp_18,8,* \
DEF:out_tmp_18=/hdb1/network/rrds/362--1614.rrd:out:AVERAGE:start=1129586400:end=1129672800 \
CDEF:out_18=out_tmp_18,8,* \
VDEF:intotal_18=in_tmp_18,TOTAL \
VDEF:outtotal_18=out_tmp_18,TOTAL \
CDEF:in_total_18=in_18,in_18,-,intotal_18,+ \
CDEF:out_total_18=out_18,out_18,-,outtotal_18,+,-1,* \
AREA:in_total_18#00FF00: \
AREA:out_total_18#0000FF \
GPRINT:intotal_18:"Tue 18-10-2005   input\: %3.2lf %sB"  \
GPRINT:outtotal_18:"output\:  %3.2lf %sB\n" \
\
DEF:in_tmp_19=/hdb1/network/rrds/362--1614.rrd:in:AVERAGE:start=1129672800:end=1129759200 \
CDEF:in_19=in_tmp_19,8,* \
DEF:out_tmp_19=/hdb1/network/rrds/362--1614.rrd:out:AVERAGE:start=1129672800:end=1129759200 \
CDEF:out_19=out_tmp_19,8,* \
VDEF:intotal_19=in_tmp_19,TOTAL \
VDEF:outtotal_19=out_tmp_19,TOTAL \
CDEF:in_total_19=in_19,in_19,-,intotal_19,+ \
CDEF:out_total_19=out_19,out_19,-,outtotal_19,+,-1,* \
AREA:in_total_19#00FF00: \
AREA:out_total_19#0000FF \
GPRINT:intotal_19:"Wed 19-10-2005   input\: %3.2lf %sB"  \
GPRINT:outtotal_19:"output\:  %3.2lf %sB\n" \
\
DEF:in_tmp_20=/hdb1/network/rrds/362--1614.rrd:in:AVERAGE:start=1129759200:end=1129845600 \
CDEF:in_20=in_tmp_20,8,* \
DEF:out_tmp_20=/hdb1/network/rrds/362--1614.rrd:out:AVERAGE:start=1129759200:end=1129845600 \
CDEF:out_20=out_tmp_20,8,* \
VDEF:intotal_20=in_tmp_20,TOTAL \
VDEF:outtotal_20=out_tmp_20,TOTAL \
CDEF:in_total_20=in_20,in_20,-,intotal_20,+ \
CDEF:out_total_20=out_20,out_20,-,outtotal_20,+,-1,* \
AREA:in_total_20#00FF00: \
AREA:out_total_20#0000FF \
GPRINT:intotal_20:"Thu 20-10-2005   input\: %3.2lf %sB"  \
GPRINT:outtotal_20:"output\:  %3.2lf %sB\n" \
\
DEF:in_tmp_21=/hdb1/network/rrds/362--1614.rrd:in:AVERAGE:start=1129845600:end=1129932000 \
CDEF:in_21=in_tmp_21,8,* \
DEF:out_tmp_21=/hdb1/network/rrds/362--1614.rrd:out:AVERAGE:start=1129845600:end=1129932000 \
CDEF:out_21=out_tmp_21,8,* \
VDEF:intotal_21=in_tmp_21,TOTAL \
VDEF:outtotal_21=out_tmp_21,TOTAL \
CDEF:in_total_21=in_21,in_21,-,intotal_21,+ \
CDEF:out_total_21=out_21,out_21,-,outtotal_21,+,-1,* \
AREA:in_total_21#00FF00: \
AREA:out_total_21#0000FF \
GPRINT:intotal_21:"Fri 21-10-2005   input\: %3.2lf %sB"  \
GPRINT:outtotal_21:"output\:  %3.2lf %sB\n" \
\
DEF:in_tmp_22=/hdb1/network/rrds/362--1614.rrd:in:AVERAGE:start=1129932000:end=1130018400 \
CDEF:in_22=in_tmp_22,8,* \
DEF:out_tmp_22=/hdb1/network/rrds/362--1614.rrd:out:AVERAGE:start=1129932000:end=1130018400 \
CDEF:out_22=out_tmp_22,8,* \
VDEF:intotal_22=in_tmp_22,TOTAL \
VDEF:outtotal_22=out_tmp_22,TOTAL \
CDEF:in_total_22=in_22,in_22,-,intotal_22,+ \
CDEF:out_total_22=out_22,out_22,-,outtotal_22,+,-1,* \
AREA:in_total_22#00FF00: \
AREA:out_total_22#0000FF \
GPRINT:intotal_22:"Sat 22-10-2005   input\: %3.2lf %sB"  \
GPRINT:outtotal_22:"output\:  %3.2lf %sB\n" \
\
DEF:in_tmp_23=/hdb1/network/rrds/362--1614.rrd:in:AVERAGE:start=1130018400:end=1130104800 \
CDEF:in_23=in_tmp_23,8,* \
DEF:out_tmp_23=/hdb1/network/rrds/362--1614.rrd:out:AVERAGE:start=1130018400:end=1130104800 \
CDEF:out_23=out_tmp_23,8,* \
VDEF:intotal_23=in_tmp_23,TOTAL \
VDEF:outtotal_23=out_tmp_23,TOTAL \
CDEF:in_total_23=in_23,in_23,-,intotal_23,+ \
CDEF:out_total_23=out_23,out_23,-,outtotal_23,+,-1,* \
AREA:in_total_23#00FF00: \
AREA:out_total_23#0000FF \
GPRINT:intotal_23:"Sun 23-10-2005   input\: %3.2lf %sB"  \
GPRINT:outtotal_23:"output\:  %3.2lf %sB\n" \
\
DEF:in_tmp_24=/hdb1/network/rrds/362--1614.rrd:in:AVERAGE:start=1130104800:end=1130191200 \
CDEF:in_24=in_tmp_24,8,* \
DEF:out_tmp_24=/hdb1/network/rrds/362--1614.rrd:out:AVERAGE:start=1130104800:end=1130191200 \
CDEF:out_24=out_tmp_24,8,* \
VDEF:intotal_24=in_tmp_24,TOTAL \
VDEF:outtotal_24=out_tmp_24,TOTAL \
CDEF:in_total_24=in_24,in_24,-,intotal_24,+ \
CDEF:out_total_24=out_24,out_24,-,outtotal_24,+,-1,* \
AREA:in_total_24#00FF00: \
AREA:out_total_24#0000FF \
GPRINT:intotal_24:"Mon 24-10-2005   input\: %3.2lf %sB"  \
GPRINT:outtotal_24:"output\:  %3.2lf %sB\n" \
\
DEF:in_tmp_25=/hdb1/network/rrds/362--1614.rrd:in:AVERAGE:start=1130191200:end=1130277600 \
CDEF:in_25=in_tmp_25,8,* \
DEF:out_tmp_25=/hdb1/network/rrds/362--1614.rrd:out:AVERAGE:start=1130191200:end=1130277600 \
CDEF:out_25=out_tmp_25,8,* \
VDEF:intotal_25=in_tmp_25,TOTAL \
VDEF:outtotal_25=out_tmp_25,TOTAL \
CDEF:in_total_25=in_25,in_25,-,intotal_25,+ \
CDEF:out_total_25=out_25,out_25,-,outtotal_25,+,-1,* \
AREA:in_total_25#00FF00: \
AREA:out_total_25#0000FF \
GPRINT:intotal_25:"Tue 25-10-2005   input\: %3.2lf %sB"  \
GPRINT:outtotal_25:"output\:  %3.2lf %sB\n" \
\
DEF:in_tmp_26=/hdb1/network/rrds/362--1614.rrd:in:AVERAGE:start=1130277600:end=1130364000 \
CDEF:in_26=in_tmp_26,8,* \
DEF:out_tmp_26=/hdb1/network/rrds/362--1614.rrd:out:AVERAGE:start=1130277600:end=1130364000 \
CDEF:out_26=out_tmp_26,8,* \
VDEF:intotal_26=in_tmp_26,TOTAL \
VDEF:outtotal_26=out_tmp_26,TOTAL \
CDEF:in_total_26=in_26,in_26,-,intotal_26,+ \
CDEF:out_total_26=out_26,out_26,-,outtotal_26,+,-1,* \
AREA:in_total_26#00FF00: \
AREA:out_total_26#0000FF \
GPRINT:intotal_26:"Wed 26-10-2005   input\: %3.2lf %sB"  \
GPRINT:outtotal_26:"output\:  %3.2lf %sB\n" \
\
DEF:in_tmp_27=/hdb1/network/rrds/362--1614.rrd:in:AVERAGE:start=1130364000:end=1130450400 \
CDEF:in_27=in_tmp_27,8,* \
DEF:out_tmp_27=/hdb1/network/rrds/362--1614.rrd:out:AVERAGE:start=1130364000:end=1130450400 \
CDEF:out_27=out_tmp_27,8,* \
VDEF:intotal_27=in_tmp_27,TOTAL \
VDEF:outtotal_27=out_tmp_27,TOTAL \
CDEF:in_total_27=in_27,in_27,-,intotal_27,+ \
CDEF:out_total_27=out_27,out_27,-,outtotal_27,+,-1,* \
AREA:in_total_27#00FF00: \
AREA:out_total_27#0000FF \
GPRINT:intotal_27:"Thu 27-10-2005   input\: %3.2lf %sB"  \
GPRINT:outtotal_27:"output\:  %3.2lf %sB\n" \
\
DEF:in_tmp_28=/hdb1/network/rrds/362--1614.rrd:in:AVERAGE:start=1130450400:end=1130536800 \
CDEF:in_28=in_tmp_28,8,* \
DEF:out_tmp_28=/hdb1/network/rrds/362--1614.rrd:out:AVERAGE:start=1130450400:end=1130536800 \
CDEF:out_28=out_tmp_28,8,* \
VDEF:intotal_28=in_tmp_28,TOTAL \
VDEF:outtotal_28=out_tmp_28,TOTAL \
CDEF:in_total_28=in_28,in_28,-,intotal_28,+ \
CDEF:out_total_28=out_28,out_28,-,outtotal_28,+,-1,* \
AREA:in_total_28#00FF00: \
AREA:out_total_28#0000FF \
GPRINT:intotal_28:"Fri 28-10-2005   input\: %3.2lf %sB"  \
GPRINT:outtotal_28:"output\:  %3.2lf %sB\n" \
\
DEF:in_tmp_29=/hdb1/network/rrds/362--1614.rrd:in:AVERAGE:start=1130536800:end=1130623200 \
CDEF:in_29=in_tmp_29,8,* \
DEF:out_tmp_29=/hdb1/network/rrds/362--1614.rrd:out:AVERAGE:start=1130536800:end=1130623200 \
CDEF:out_29=out_tmp_29,8,* \
VDEF:intotal_29=in_tmp_29,TOTAL \
VDEF:outtotal_29=out_tmp_29,TOTAL \
CDEF:in_total_29=in_29,in_29,-,intotal_29,+ \
CDEF:out_total_29=out_29,out_29,-,outtotal_29,+,-1,* \
AREA:in_total_29#00FF00: \
AREA:out_total_29#0000FF \
GPRINT:intotal_29:"Sat 29-10-2005   input\: %3.2lf %sB"  \
GPRINT:outtotal_29:"output\:  %3.2lf %sB\n" \
\
DEF:in_tmp_30=/hdb1/network/rrds/362--1614.rrd:in:AVERAGE:start=1130623200:end=1130713200 \
CDEF:in_30=in_tmp_30,8,* \
DEF:out_tmp_30=/hdb1/network/rrds/362--1614.rrd:out:AVERAGE:start=1130623200:end=1130713200 \
CDEF:out_30=out_tmp_30,8,* \
VDEF:intotal_30=in_tmp_30,TOTAL \
VDEF:outtotal_30=out_tmp_30,TOTAL \
CDEF:in_total_30=in_30,in_30,-,intotal_30,+ \
CDEF:out_total_30=out_30,out_30,-,outtotal_30,+,-1,* \
AREA:in_total_30#00FF00: \
AREA:out_total_30#0000FF \
GPRINT:intotal_30:"Sun 30-10-2005   input\: %3.2lf %sB"  \
GPRINT:outtotal_30:"output\:  %3.2lf %sB\n" \
-t"Datatransfer month GigabitEthernet2/5"

Emmanuel Muncal wrote:
> Nice Work Erik!
> Exactly what I am looking. Care to share the code?
>
> Btw, I was thinking 2 ways to do this. One was the rrdgraph which directly
> graphs the rrd files. Or using JPGRAPH of PHP, which would mean extracting
> rrd info then feeding it to the PHP script.
>
> But I do think the rrdgraph is much better and faster.
>
>
> On 11/10/05, Erik <erik at infopact.nl> wrote:
>
>>You mean something like this?
>>
>>http://dev.infopact.nl/~erik/test.png
>>
>>This graph is made using some quote ugly code
>>
>>Kind regards,
>>
>>Erik
>>Serge Maandag wrote:
>>
>>>>Is this possible with rrdtool graph? Anyone implemented bar graphing?
>>>>Im looking into making an MRTG summary. Time changes the
>>>>height of the bar graph with IN and OUT, maybe interlapping.
>>>
>>>
>>>Perhaps you are looking for something like rrdbar?
>>>http://www.steveshipway.org/software/rrd/rrdbar.html
>>>
>>>Serge.
>>>
>>>
>>>-------------
>>>Op de inhoud van dit e-mailbericht en de daaraan gehechte bijlagen is de
>>
>>inhoud van de volgende disclaimer van toepassing:
>>http://www.zeelandnet.nl/disclaimer.php
>>
>>>-------------
>>>For the content of this e-mail message and its attachment(s) the
>>
>>following disclaimer applies: http://www.zeelandnet.nl/disclaimer.php
>>
>>>--
>>>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://lists.ee.ethz.ch/rrd-users
>>>
>>
>>
>>
>
>
> --
> Regards,
>
> Emmanuel Muncal, ECE
>
> "Why geeks like computers: unzip, strip, touch, finger, grep, mount, fsck,
> more, yes,fsck,fsck,fsck,umount, sleep." --unknown
>
> --
> 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://lists.ee.ethz.ch/rrd-users