免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 3559 | 回复: 1
打印 上一主题 下一主题

关于cacti监控网卡流量的问题 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2010-11-12 16:49 |只看该作者 |倒序浏览
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等都关闭了

论坛徽章:
0
2 [报告]
发表于 2010-11-12 22:40 |只看该作者
你的监控软件用的是哪个community?
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP