cacti监控其他服务器网卡

1.被监控服务器安装snmp

编辑linux主机下的/etc/snmp/snmpd.conf文件

找到62行:
access  notConfigGroup ""      any       noauth    exact  systemview none none
修改成:(如果有#号,把#号去掉)
access  notConfigGroup ""      any       noauth    exact  mib2 none none

找到89行,把改行的#去掉:
#view mib2   included  .iso.org.dod.internet.mgmt.mib-2 fc
修改成:
view mib2   included  .iso.org.dod.internet.mgmt.mib-2 fc

重起snmpd:/etc/init.d/snmpd restart


2.监控服务器devise添加,选择SNMP - Interface Statistics添加网卡,其他默认,勾选网卡Graph Trees中添加新节点


验证snmp是否通:snmpwalk -v 2c -c public IP



备注:

1、查找以下字段:
      sec.name  source          community
com2sec notConfigUser  default       public
将"comunity"字段改为你要设置的密码.比如"public".                                             
将“default”改为你想哪台机器可以看到你的snmp信息,如10.10.10.10。

2、查找以下字段:
# 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
将"read"字段改为all.

3、查找以下字段:
#           incl/excl subtree                          mask
#view all    included  .1                               80
将该行前面的"#"去掉.

可以一试


待测试

access  notConfigGroup ""      any       noauth    exact  mib2  none none
view all    included  .1                               80
view mib2   included  .iso.org.dod.internet.mgmt.mib-2 fc


或者

编辑linux主机下的/etc/snmp/snmpd.conf文件

找到62行:
access  notConfigGroup ""      any       noauth    exact  systemview none none
修改成:(如果有#号,把#号去掉)
access  notConfigGroup ""      any       noauth    exact  mib2 none none

找到89行,把改行的#去掉:
#view mib2   included  .iso.org.dod.internet.mgmt.mib-2 fc
修改成:
view mib2   included  .iso.org.dod.internet.mgmt.mib-2 fc

重起snmpd:/etc/init.d/snmpd restart

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值