- 论坛徽章:
- 0
|
cacti已经装好,CPU、内存等信息都可以监控,但是网卡流量就是出不了图,翻阅了很多文档,也没找到合适的解决办法。小弟愚笨,请各位老大指点。
我认为是snmp的配置问题,但是不知道如何修改,将snmp文件修改过的地方贴出来,各位老大给看看
# group context sec.model sec.level prefix read write notif
com2sec notConfigUser 127.0.0.1 public
# group context sec.model sec.level prefix read write notif
access notConfigGroup "" any noauth exact all none none
## incl/excl subtree mask
view all included .1 80
# name incl/excl subtree mask(optional)
view all included .1
# Finally, grant the group read-only access to the systemview view.
# group context sec.model sec.level prefix read write notif
access notConfigGroup "" any noauth exact all none none
创建完traffic RRD报错是这样的:
RRDTool Command:
/usr/local/rrdtool/bin/rrdtool graph - \
--imgformat=PNG \
--start=-86400 \
--end=-300 \
--title='Localhost - Traffic' \
--rigid \
--base=1000 \
--height=120 \
--width=500 \
--alt-autoscale-max \
--lower-limit=0 \
--vertical-label='bits per second' \
--slope-mode \
--font TITLE:12: \
--font AXIS:8: \
--font LEGEND:10: \
--font UNIT:8: \
CDEF:cdefa=a,8,* \
CDEF:cdefe=a,8,* \
AREA:cdefa#00CF00FF:"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#002A97FF:"Outbound" \
GPRINT:cdefe:LAST:"Current\:%8.2lf %s" \
GPRINT:cdefe:AVERAGE:"Average\:%8.2lf %s" \
GPRINT:cdefe:MAX:"Maximum\:%8.2lf %s\n" RRDTool Says:
ERROR: invalid rpn expression in: a,8,*
监控的是服务器端的流量图,防火墙、selinux等都关闭了 |
|