After a couple hours of hunting down OIDS and performing SNMPwalks to determine how data is presented, I started creating a test graph. Everything went better than expected, but I have one issue that I cant figure out and was looking for some help. Attached is a screenshot that shows what im talking about.
the graph lines and legend on left, dont correspond to the actual data being collected. Im sure this is a very simple oversight and was hoping someone could clue me in.
Thanks!
Code: Select all
/usr/bin/rrdtool graph - \
--imgformat=PNG \
--start=-86400 \
--end=-300 \
--title='MetaSwitch - Calls Connected' \
--rigid \
--base=1000 \
--height=120 \
--width=500 \
--alt-autoscale-max \
--lower-limit='0' \
--vertical-label='current calls' \
--slope-mode \
--font TITLE:10: \
--font AXIS:7: \
--font LEGEND:8: \
--font UNIT:7: \
DEF:a="/var/www/rra/metaswitch_calls_connected_163.rrd":'calls_connected':AVERAGE \
CDEF:cdefa='a,300,*' \
AREA:cdefa#FF00004C:"" \
LINE1:cdefa#FF0000FF:"Calls Connected" \
GPRINT:a:LAST:"Current\:%8.2lf %s" \
GPRINT:a:AVERAGE:"Average\:%8.2lf %s" \
GPRINT:a:MAX:"Maximum%8.2lf %s\n" \
COMMENT:" \n" \
COMMENT:"The total number of active calls on the CFS\n" \
COMMENT:"Thu 08 Aug 09\:15\:03 PDT 2013"