неа, всё равно не рисует графики...
Код: Выделить всё
/usr/local/bin/rrdtool graph - \
--imgformat=PNG \
--start=1170490546 \
--end=1170576646 \
--title="127.0.0.1 - CPU Usage" \
--rigid \
--base=1000 \
--height=120 \
--width=500 \
--alt-autoscale-max \
--lower-limit=0 \
COMMENT:"From 2007/02/03 18\:15\:46 To 2007/02/04 18\:10\:46\c" \
COMMENT:" \n" \
--vertical-label="percent" \
--slope-mode \
DEF:a="/usr/local/share/cacti/rra/127_0_0_1_cpu_system_15.rrd":cpu_system:AVERAGE \
DEF:b="/usr/local/share/cacti/rra/127_0_0_1_cpu_user_16.rrd":cpu_user:AVERAGE \
DEF:c="/usr/local/share/cacti/rra/127_0_0_1_cpu_nice_14.rrd":cpu_nice:AVERAGE \
CDEF:cdefbc=TIME,1170576650,GT,a,a,UN,0,a,IF,IF,TIME,1170576650,GT,b,b,UN,0,b,IF,IF,TIME,1170576650,GT,c,c,UN,0,c,IF,IF,+,+ \
AREA:a#FF0000:"System" \
GPRINT:a:LAST:"Current\:%8.2lf %s" \
GPRINT:a:AVERAGE:"Average\:%8.2lf %s" \
GPRINT:a:MAX:"Maximum\:%8.2lf %s\n" \
AREA:b#0000FF:"User":STACK \
GPRINT:b:LAST:" Current\:%8.2lf %s" \
GPRINT:b:AVERAGE:"Average\:%8.2lf %s" \
GPRINT:b:MAX:"Maximum\:%8.2lf %s\n" \
AREA:c#00FF00:"Nice":STACK \
GPRINT:c:LAST:" Current\:%8.2lf %s" \
GPRINT:c:AVERAGE:"Average\:%8.2lf %s" \
GPRINT:c:MAX:"Maximum\:%8.2lf %s\n" \
LINE1:cdefbc#000000:"Total" \
GPRINT:cdefbc:LAST:" Current\:%8.2lf %s" \
GPRINT:cdefbc:AVERAGE:"Average\:%8.2lf %s" \
GPRINT:cdefbc:MAX:"Maximum\:%8.2lf %s"