如图,配置好了半天,客户端仍无数据;-nan就是不正常的了。
下面就是解决办法:
在客户端操作:
vim /etc/snmp/snmpd.conf #更改如下
# sec.name source community
com2sec notConfigUser 192.168.20.168(cacti服务端的IP) public
# name incl/excl subtree mask(optional)
#view systemview included .1.3.6.1.2.1.1
view systemview included .1.3.6.1.2.1
view systemview included .1.3.6.1.2.1.25.1.1
view all include .1
# group context sec.model sec.level prefix read write notif
access notConfigGroup "" any noauth exact all none none
效果如下图:
重启客户端
service snmpd restart
再查看正常了:
时间: 2024-10-12 21:37:57