I want to see link utilization of my interfaces as percetage, like MRTG.
So I know that:
Code: Select all
[(Inbound DS + Outbound DS)/Link Speed] * 100%
Let's say this is not possible.I can give my line speed...
Then, have to tell what I did step by step:
I create a CDEF, called "Percentage"
Then I go to Hraph templates page and I select Interface - Traffic (bits/sec)Item #1 Special Data Source: ALL_DATA_SOURCES_NODUPS
Item #2 Custom String: 100000000 (as line max speed.. fast ethernet)
Item #3 Operator: /
I create new Graph Template Item, called Item # 9, at the bototm of other Graph template Items.
Values of Item # 9 are;
Then I save my configuration.Data source : Traffic (traffic_out)
Color : None
Graph Item Type : COMMENT
CDEF Function : AVERAGE
Value : (empty)
GPRINT Type : Normal
Text Format : %
Hard Return : (not selected)
Seuence : 9(already exist)
And I trun to my graph page, I see graph in my attachement seen below. I see only "%"
You can see my graph config. here:
What did I mistake?
Code: Select all
/usr/local/rrdtool-1.0.35/bin/rrdtool graph - \
--imgformat=PNG \
--start=-86400 \
--end=1072706233 \
COMMENT:"From 2003-12-28 15:57:13 to 2003-12-29 15:57:13\c" \
COMMENT:"Graph Generated at 2003-12-29 15:57:13\c" \
--title="3rd Party Router 2 - Akbank_64k - 64000 - 192.168.114.173" \
--rigid \
--base=1000 \
--height=120 \
--width=500 \
--alt-autoscale \
--vertical-label="bits per second" \
DEF:a="/www/htdocs/cacti_83/rra/3rd_party_router_2_traffic_in_2376.rrd":traffic_in:AVERAGE \
DEF:b="/www/htdocs/cacti_83/rra/3rd_party_router_2_traffic_out_2356.rrd":traffic_out:AVERAGE \
CDEF:cdefa=a,8,* \
CDEF:cdefb=a,8,* \
CDEF:cdefe=b,8,* \
CDEF:cdefi=a,b,+,100000000,/ \
AREA:cdefa#00CF00:"Inbound" \
GPRINT:cdefb:LAST:" Current\:%8.2lf %s" \
GPRINT:cdefb:AVERAGE:" Average\:%8.2lf %s" \
GPRINT:cdefb:MAX:" Maximum\:%8.2lf %s\n" \
LINE1:cdefe#002A97:"Outbound" \
GPRINT:cdefe:LAST:"Current\:%8.2lf %s" \
GPRINT:cdefe:AVERAGE:"Average\:%8.2lf %s" \
GPRINT:cdefe:MAX:"Maximum\:%8.2lf %s\n" \
COMMENT:"%"