Article title: detailed analysis of Snmp configuration problems in Linux. 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.
1. make sure that the snmp service is installed on the local machine.
[Root @ idc ~] # Rpm-qa | grep snmp
Net-snmp-libs-5.1.2-11.EL4.7
Net-snmp-5.1.2-11.EL4.7
If not, find the snmp rpm package on the linux installation disk for installation, or search for an rpm package suitable for your linux release for installation.
2. snmpd. conf file configuration
Modify the snmpd. conf file as follows:
A. modify the default community string.
Com2sec notConfigUser default public
Modify public to a string that you only know
B. remove the # below
# View mib2 shortded .iso.org. dod. internet. mgmt. mib-2 fc
C. run the following statement
Access notConfigGroup "" any noauth exact systemview none
Changed:
Access notConfigGroup "" any noauth exact mib2 none
3. restart the snmpd service
#/Etc/rc. d/init. d/snmpd restart
Complete snmpd configuration
4. ensure that the linux iptables firewall has enabled udp port 161 access to our traffic monitoring server.
Can I use iptables? L? N view the current iptables rule
You can edit the/etc/sysconfig/iptables file to modify iptables rules.