1. install and configure snmp
A. yum install-y net-snmp-utils
B. chkconfig snmpd on
C. chkconfig-list | grep snmpd
D. vi/etc/snmp/snmpd. conf
Set
View systemview embedded ded. 1.3.6.1.2.1.1
Change
View systemview embedded ded. 1.3.6.1.2.1
Set
Com2sec notConfigUser default public
Change
Com2sec notConfigUser default XDXDXD (more complicated)
E. Restart the snmp service.
Service snmpd restart
2. test whether the snmp service is effective
On the server where cacti is installed, run:
Snmpwalk-v 2c-c XDXDXD (based on actual modification) ip address of the monitored Device
3. Add device information on cacti
A. Enter the IP address or domain name corresponding to cacti in the browser to go to, for example:
B. Access from Managemnet-> Devices
C. Click Add in the upper right corner to Add
D. Enter the correct information.
E. After adding, as shown in figure
4. Add Images
A. After adding a host, clickCreate Graphs for this Host
B. Add the NIC to be monitored
C. Enter the corresponding graph tree
D. Add the previous graph to the corresponding graph tree.
Add hosts to the graph tree
E. Check the Add result.