Post
by gwhite » Wed May 14, 2014 3:43 pm
I am having trouble with these commands. For CPU & Memory I am getting only a NaN reply. Any advice would be appreciated. I've tried importing the .xml file twice as suggested. I'm running Cacti 0.8.8b
Config Details:
/usr/bin/rrdtool graph - \
--imgformat=PNG \
--start=1400084997 \
--end=1400099397 \
--title='inst.1m0a.doma.lsc.lco.gtn - CPU Usage' \
--rigid \
--base=1000 \
--height=120 \
--width=500 \
--alt-autoscale-max \
--lower-limit='0' \
COMMENT:"From 2014/05/14 16\:29\:57 To 2014/05/14 20\:29\:57\c" \
COMMENT:" \n" \
--vertical-label='percent' \
--slope-mode \
--font TITLE:10: \
--font AXIS:7: \
--font LEGEND:8: \
--font UNIT:7: \
DEF:a='/usr/share/cacti/rra/inst_1m0a_doma_lsc_lco_gtn_cpu_idle_1352.rrd':'cpu_idle':AVERAGE \
DEF:b='/usr/share/cacti/rra/inst_1m0a_doma_lsc_lco_gtn_cpu_system_1354.rrd':'cpu_system':AVERAGE \
DEF:c='/usr/share/cacti/rra/inst_1m0a_doma_lsc_lco_gtn_cpu_user_1355.rrd':'cpu_user':AVERAGE \
DEF:d='/usr/share/cacti/rra/inst_1m0a_doma_lsc_lco_gtn_cpu_nice_1353.rrd':'cpu_nice':AVERAGE \
CDEF:cdefb='b,100,*,TIME,1400099104,GT,b,b,UN,0,b,IF,IF,TIME,1400099104,GT,c,c,UN,0,c,IF,IF,TIME,1400099104,GT,d,d,UN,0,d,IF,IF,TIME,1400099104,GT,a,a,UN,0,a,IF,IF,+,+,+,/' \
CDEF:cdefg='c,100,*,TIME,1400099104,GT,b,b,UN,0,b,IF,IF,TIME,1400099104,GT,c,c,UN,0,c,IF,IF,TIME,1400099104,GT,d,d,UN,0,d,IF,IF,TIME,1400099104,GT,a,a,UN,0,a,IF,IF,+,+,+,/' \
CDEF:cdefbb='d,100,*,TIME,1400099104,GT,b,b,UN,0,b,IF,IF,TIME,1400099104,GT,c,c,UN,0,c,IF,IF,TIME,1400099104,GT,d,d,UN,0,d,IF,IF,TIME,1400099104,GT,a,a,UN,0,a,IF,IF,+,+,+,/' \
CDEF:cdefbg='TIME,1400099104,GT,b,b,UN,0,b,IF,IF,TIME,1400099104,GT,c,c,UN,0,c,IF,IF,TIME,1400099104,GT,d,d,UN,0,d,IF,IF,TIME,1400099104,GT,a,a,UN,0,a,IF,IF,+,+,+,a,-,100,*,TIME,1400099104,GT,b,b,UN,0,b,IF,IF,TIME,1400099104,GT,c,c,UN,0,c,IF,IF,TIME,1400099104,GT,d,d,UN,0,d,IF,IF,TIME,1400099104,GT,a,a,UN,0,a,IF,IF,+,+,+,/' \
COMMENT:' ' \
AREA:cdefb#FF0000FF:'System' \
GPRINT:cdefb:LAST:' Last\:%6.2lf%%' \
GPRINT:cdefb:MIN:'Min\:%6.2lf%%' \
GPRINT:cdefb:AVERAGE:'Avg\:%6.2lf%%' \
GPRINT:cdefb:MAX:'Max\:%6.2lf%%\n' \
AREA:cdefg#0000FFFF:'User':STACK \
GPRINT:cdefg:LAST:' Last\:%6.2lf%%' \
GPRINT:cdefg:MIN:'Min\:%6.2lf%%' \
GPRINT:cdefg:AVERAGE:'Avg\:%6.2lf%%' \
GPRINT:cdefg:MAX:'Max\:%6.2lf%%\n' \
AREA:cdefbb#00FF00FF:'Nice':STACK \
GPRINT:cdefbb:LAST:' Last\:%6.2lf%%' \
GPRINT:cdefbb:MIN:'Min\:%6.2lf%%' \
GPRINT:cdefbb:AVERAGE:'Avg\:%6.2lf%%' \
GPRINT:cdefbb:MAX:'Max\:%6.2lf%%\n' \
LINE1:cdefbg#000000FF:'Total Usage' \
GPRINT:cdefbg:LAST:'Last\:%6.2lf%%' \
GPRINT:cdefbg:MIN:'Min\:%6.2lf%%' \
GPRINT:cdefbg:AVERAGE:'Avg\:%6.2lf%%' \
GPRINT:cdefbg:MAX:'Max\:%6.2lf%%\n'
Attachments
Screenshot of problem nan.jpeg (38.05 KiB) Viewed 1675 times