Install snmp on the monitored side
Yum-y install net-snmp-devel
Install and configure snmp on the monitored side
Vim/etc/snmp/snmpd. conf
Com2sec notConfigUser default public
Change to (cacti host IP address)
Com2sec notConfigUser 192.168.0.195 public
Access notConfigGroup "" any noauth exact systemview none
Change
Access notConfigGroup "" any noauth exact all none
# View all supported DED. 1 80
Delete # Comment
View all supported DED. 1 80
Enable snmp
Service snmpd start
Set snmpd startup
Chkconfig snmpd on
Cacti Server Test monitored end
Snmpwalk-c public-v 2c 192.168.0.97
Snmpwalk-v 1-c public 192.168.0.97 IP-MIB: ipAdEntIfIndex
192.168.0.97 is the monitored IP address.
[Root @ cactiez scripts] # snmpwalk-v 1-c public 192.168.0.97 IP-MIB: ipAdEntIfIndex
IP-MIB: ipAdEntIfIndex.127.0.0.1 = INTEGER: 1
IP-MIB: ipAdEntIfIndex.192.168.0.97 = INTEGER: 2
0.97 of data can be obtained, indicating that the controlled end has accepted snmp monitoring.
Configure cacti
After the above test is successful, add the device from cacti and then add the image.