- 论坛徽章:
- 0
|
安装了cacti 后,运行图形debug mode, rrdtool 不能在cacti 目录下的rrd目录下生成被监控主机的rrd文件,如下。
测试php页也正常,运行snmpwalk -v 2 -c public 被监控主机IP 也能获取数据。
请各位高人指教迷津。谢谢!
RRDTool Command:
/usr/local/bin/rrdtool graph - \
--imgformat=PNG \
--start=-86400 \
--end=-300 \
--title='SZHQ03-DB-112 - CPU Usage' \
--rigid \
--base=1000 \
--height=120 \
--width=500 \
--alt-autoscale-max \
--lower-limit=0 \
--vertical-label='percent' \
--slope-mode \
--font TITLE:12: \
--font AXIS:8: \
--font LEGEND:10: \
--font UNIT:8: \
DEF:a="/usr/local/apache/htdocs/cacti/rra/szhq03-db-112_cpu_system_23.rrd":cpu_system:AVERAGE \
DEF:b="/usr/local/apache/htdocs/cacti/rra/szhq03-db-112_cpu_user_24.rrd":cpu_user:AVERAGE \
DEF:c="/usr/local/apache/htdocs/cacti/rra/szhq03-db-112_cpu_nice_22.rrd":cpu_nice:AVERAGE \
CDEF:cdefbc=TIME,1316597155,GT,a,a,UN,0,a,IF,IF,TIME,1316597155,GT,b,b,UN,0,b,IF,IF,TIME,1316597155,GT,c,c,UN,0,c,IF,IF,+,+ \
AREA:a#FF0000FF:"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#0000FFFF:"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#00FF00FF:"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#000000FF:"Total" \
GPRINT:cdefbc:LAST:" Current\:%8.2lf %s" \
GPRINT:cdefbc:AVERAGE:"Average\:%8.2lf %s" \
GPRINT:cdefbc:MAX:"Maximum\:%8.2lf %s\n"
RRDTool Says:
ERROR: opening '/usr/local/apache/htdocs/cacti/rra/szhq03-db-112_cpu_system_23.rrd': No such file or directory |
|