Install and Configure SNMP in Linux RHEL4

Source: Internet
Author: User
Tags snmp snmpwalk


Install and Configure SNMP in Linux RHEL4 -- install ------------- 1. First check whether the snmp service is installed: which snmpd. If not found, it is not installed. 2. Check whether some rpm packages are installed: rpm-qa | grep snmp check whether net-snmp-utils-... is installed -..., net-snmp-libs -..., net-snmp -... three rpm packages: rpm-qa | grep lm check whether lm_sensors -... 3, to the Internet (http://rpm.pbone.net/) download or take the relevant package above, and install in the following order:
Rpm-ivh lm_sensors-2.8.7-2.40.3.i386.rpm rpm-ivh net-snmp-libs-5.1.2-11.EL4.10.i386.rpm rpm-ivh net-snmp-5.1.2-11.EL4.10.i386.rpm rpm-ivh net-snmp-utils-5.1.2-11.EL4.10.i386.rpm www.2cto.com 4. Start snmp:/etc/init. d/snmpd start 5. Enable automatic start of this service at startup: chkconfig snmpd on 6. Check whether the service is enabled: netstat-tanulp | grep snmp 7. verify whether the snmp tool can be used properly: snmptranslate-To | if no error is reported for the head, the snmp tool can be used normally-configure it (no operation on 9-13 may not affect the actual application )---------- ---- 8. cd/etc/snmp/vi snmpd. conf www.2cto.com 9. Find # Make at least snmpwalk-v 1 localhost-c public system fast again. # name incl/excl subtree mask (optional) view systemview encoded ded. 1.3.6.1.2.1.1view systemview added. 1.3.6.1.2.1.25.1.1 insert a row, which means that the client can view it. all device information under Node 1 is inserted as follows: # Make at least snmpwalk-v 1 localhost-c public system fast again. # name incl/excl subtree mask (optional) view systemview Encoded ded. 1 view systemview embedded ded. 1.3.6.1.2.1.1view systemview added. 1.3.6.1.2.1.25.1.1 10. Modify the Process checks configuration and remove the following three option Annotations: # Make sure mountd is runningproc mountd # Make sure there are no more than 4 ntalkds running, but 0 is OK too. proc ntalkd 4 # Make sure at least one sendmail, but less than or equal to 10 are running. proc sendmail 10 1 11. Modify the Executables/scripts configuration and find the following location: # exec echo Test/bin/echo hello world remove comments 12. Modify the disk checks configuration and find the following location: # delete comments in disk/10000 13. Modify the load average checks configuration and find the following location: # load 12 14 14 www.2cto.com remove Comments 14. Set the community name public33e9 (this name can be obtained at will, corresponding to the client): # sec. name source communitycom2sec notConfigUser default public33e9 15, # Finally, grant the group read-only access to the systemview view. # group context sec. model sec. level prefix read write notifaccess notConfigGrou P "" any noauth exact systemview none the third line is changed to: access notConfigGroup "" any noauth exact all none www.2cto.com 16. Find: # incl/excl subtree mask # view all encoded. 1 80 remove the second line #17. Restart the service:/etc/init. d/snmpd restart 18. Final Detection: snmpwalk-v 2c-c public33e9 localhost if a large piece of information appears, it means it is normal. Author wang7dao

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.