一切参数设定在客户端。(/etc/snmp/snmpd.conf)

sec.name source community

com2sec notConfigUser 192.168.1.107(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