Article Title: configuration of SNMP on the monitored side of cacti. Linux is a technology channel of the IT lab in China. Includes basic categories such as desktop applications, Linux system management, kernel research, embedded systems, and open source.
Install net-snmp
[Root @ jacktest jackNet-snmp-5.2.1.tar.tar] # tar zxvf
[Root @ jacktest jack] # net-snmp-5.2.1 cd
[Root @ jacktest net-snmp-5.2.1] #./configure
[Root @ jacktest jack] # make
[Root @ jacktest jack] # make install
Open the default/etc/snmp. conf file and change the following Configuration:
1. Search for the following fields:
Code:
# Sec. name source community
Com2sec notConfigUser default public
Change the "comunity" field to the password you want to set, for example, "public ".
Change "default" to which machine you want to view your snmp information, for example, 192.168.1.210.
2. Search for the following fields: code:
####
# 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
Change the "read" field to all.
Code:
# Access notConfigGroup "" any noauth exact systemview none
3. Search for the following fields: code:
# Incl/excl subtree mask
# View all supported ded. 1 80
Remove "#" before this row.
Save and close.
4. Run the/etc/init. d/snmpd start command to run snmpd. or service snmpd start.
5. If a firewall exists, open UDP port 161.
Run netstat-ln to check whether port 161 is enabled.
Use ntsysv to enable the snmp service to run automatically at each startup.
If the snmp service is not installed, find the net-snmp.rpm on the RH installation CD and install it again.
Troubleshooting
On the cacti monitoring management workstation
1. First, check whether there is data In rra /.
2. snmpwalk-v 2c-c public ServerIP if is used to test whether the SNMP service is enabled for the controlled object (serverIP ).
3. snmpwalk-v 2c ServerIP-c public. 1.3.6.1.4.1.2021.10.1.3 check whether the controlled end has CPU load data returned
4./www/php/bin/php/www/htdocs/cacti/poller. php is used to test whether PHP can collect data.