I've a problem creating a graph, ok, have to learn a little better how it works. Btw, I've create a graph with sum of different interfaces. I would like to print ad the end a line for incoming and outgoing traffic, like:
Total INCOMING: Current - Average - Max - Total
Total OUTGOING: Current - Average - Max - Total
Total INCOMING+OUTGOING
How can I print these vaules?
RRDTOOL COMMAND:
Code: Select all
/usr/local/rrdtool/bin/rrdtool graph - \
--imgformat=PNG \
--start=-86400 \
--end=-300 \
--title="Posta FrontEnd" \
--base=1000 \
--height=200 \
--width=600 \
--alt-autoscale-max \
--lower-limit=0 \
--vertical-label="bits per second" \
--slope-mode \
DEF:a="/opt/cacti/rra/dis2tn__traffic_in_35.rrd":traffic_in:AVERAGE \
DEF:b="/opt/cacti/rra/dis2tn__traffic_in_36.rrd":traffic_in:AVERAGE \
DEF:c="/opt/cacti/rra/dis2tn__traffic_in_34.rrd":traffic_in:AVERAGE \
DEF:d="/opt/cacti/rra/dis3tn__traffic_in_32.rrd":traffic_in:AVERAGE \
DEF:e="/opt/cacti/rra/dis3tn__traffic_in_33.rrd":traffic_in:AVERAGE \
DEF:f="/opt/cacti/rra/dis3tn__traffic_in_31.rrd":traffic_in:AVERAGE \
DEF:g="/opt/cacti/rra/dis2tn__traffic_in_35.rrd":traffic_out:AVERAGE \
DEF:h="/opt/cacti/rra/dis2tn__traffic_in_36.rrd":traffic_out:AVERAGE \
DEF:i="/opt/cacti/rra/dis2tn__traffic_in_34.rrd":traffic_out:AVERAGE \
DEF:j="/opt/cacti/rra/dis3tn__traffic_in_32.rrd":traffic_out:AVERAGE \
DEF:ba="/opt/cacti/rra/dis3tn__traffic_in_33.rrd":traffic_out:AVERAGE \
DEF:bb="/opt/cacti/rra/dis3tn__traffic_in_31.rrd":traffic_out:AVERAGE \
CDEF:cdefa=a,8,* \
CDEF:cdefb=b,8,* \
CDEF:cdefc=c,8,* \
CDEF:cdefd=d,8,* \
CDEF:cdefe=e,8,* \
CDEF:cdeff=f,8,* \
CDEF:cdefg=g,8,*,-1,* \
CDEF:cdefh=h,8,*,-1,* \
CDEF:cdefi=i,8,*,-1,* \
CDEF:cdefj=j,8,*,-1,* \
CDEF:cdefba=ba,8,*,-1,* \
CDEF:cdefbb=bb,8,*,-1,* \
AREA:cdefa#004359:"LAN1 Inbound (dis2)\n" \
AREA:cdefb#005D57:"LAN2 Inbound (dis2)\n":STACK \
AREA:cdefc#00694A:"NTMAIL Inbound (dis2)\n":STACK \
AREA:cdefd#157419:"LAN1 Inbound (dis3)\n":STACK \
AREA:cdefe#008A6D:"LAN2 Inbound (dis3)\n":STACK \
AREA:cdeff#009F67:"NTMAIL Inbound (dis3)\n":STACK \
AREA:cdefg#FFF200:"LAN1 Outbound (dis2)\n" \
AREA:cdefh#FFD660:"LAN2 Outbound (dis2)\n":STACK \
AREA:cdefi#FFC73B:"NTMAIL Outbound (dis2)\n":STACK \
AREA:cdefj#FFAB00:"LAN1 Outbound (dis3)\n":STACK \
AREA:cdefba#FF7D00:"LAN2 Outbound (dis3)\n":STACK \
AREA:cdefbb#FF5700:"NTMAIL Outbound (dis3)\n":STACK \
COMMENT:"Thu 05 Apr 10\:50\:03 CEST 2007\n"