I need to pull this type of data for many interfaces on a Cisco router... Mainly, 1 aggregate link and a few tail-circuits.
I have looked at CDEFs and am not sure where to start. I don't know rrdtool very well, i'll admit that upfront.
Mainly what I need are availability graphed on a scale of 0 - 100% (Time up/Total time monitor*100). How do I execute this goal in Cacti? I'm not even sure where to start at this point.
After I finished availability, i'd like to move on utilization percentages. I have looked through the forums and none of the posts are complete on these subjects. Can someone give me some help. I've done a lot of reading and feel lost.
Percentages, utilization, availability code
Moderators: Developers, Moderators
Here is my source... I get a funky number: 22.22M. I should be getting something like 1%. Something is not calculating correctly. When my CDEF looks like so:
CDEF:cdefi=a,1,* \
I get a number I don't recognize from the LAST field in the graph. Can someone help me out? Am I starting out with the right type of number?
/usr/local/bin/rrdtool graph - \
--imgformat=PNG \
--start=-86400 \
--title="New Delhi Router - Traffic - Se0/0:0" \
--rigid \
--base=1000 \
--height=120 \
--width=500 \
--alt-autoscale-max \
--lower-limit=0 \
--vertical-label="bits per second" \
DEF:a="/usr/local/www/data/cacti/rra/new_delhi_router_traffic_in_32.rrd":traffic_in:AVERAGE \
DEF:b="/usr/local/www/data/cacti/rra/new_delhi_router_traffic_in_32.rrd":traffic_out:AVERAGE \
CDEF:cdefa=a,8,* \
CDEF:cdefe=b,8,* \
CDEF:cdefi=a,2048000,100,/,* \
AREA:cdefa#00CF00:"Inbound" \
GPRINT:cdefa:LAST:" Current\:%8.2lf %s" \
GPRINT:cdefa:AVERAGE:"Average\:%8.2lf %s" \
GPRINT:cdefa: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" \
GPRINT:cdefi:LAST:"Percent Out Usage\:%8.2lf %s"
CDEF:cdefi=a,1,* \
I get a number I don't recognize from the LAST field in the graph. Can someone help me out? Am I starting out with the right type of number?
/usr/local/bin/rrdtool graph - \
--imgformat=PNG \
--start=-86400 \
--title="New Delhi Router - Traffic - Se0/0:0" \
--rigid \
--base=1000 \
--height=120 \
--width=500 \
--alt-autoscale-max \
--lower-limit=0 \
--vertical-label="bits per second" \
DEF:a="/usr/local/www/data/cacti/rra/new_delhi_router_traffic_in_32.rrd":traffic_in:AVERAGE \
DEF:b="/usr/local/www/data/cacti/rra/new_delhi_router_traffic_in_32.rrd":traffic_out:AVERAGE \
CDEF:cdefa=a,8,* \
CDEF:cdefe=b,8,* \
CDEF:cdefi=a,2048000,100,/,* \
AREA:cdefa#00CF00:"Inbound" \
GPRINT:cdefa:LAST:" Current\:%8.2lf %s" \
GPRINT:cdefa:AVERAGE:"Average\:%8.2lf %s" \
GPRINT:cdefa: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" \
GPRINT:cdefi:LAST:"Percent Out Usage\:%8.2lf %s"
Who is online
Users browsing this forum: anwaraahmad1 and 0 guests