Ubuntu Configuration snmp/Install SNMP

Source: Internet
Author: User
Tags snmp stdin syslog

Search on the Internet a lot of Ubuntu under the installation method of SNMP, the results can not be used, the following is a summary of their methods, for reference only ~
1.Installation sudo-i apt-get Install snmpd SNMP
2. The configuration file will be/etc/snmp/snmpd.conf and renamed to/ETC/SNMP/SNMPD.CONF.ORG:MV/ETC/SNMP/SNMPD.CONF/ETC/SNMP/SNMPD. conf.org
Create a new/etc/snmp/snmpd.conf file: rocommunity public syslocation "Chengdu" syscontact [email protected]
Open/ETC/DEFAULT/SNMPD:GEDIT/ETC/DEFAULT/SNMPD to find the # SNMPD options (use Syslog, close stdin/out/err).  Snmpdopts= '-lsd-lf/dev/null-u snmp-i-smux-p/var/run/snmpd.pid 127.0.0.1 ' Change it to # SNMPD options (use Syslog, close   Stdin/out/err).  #SNMPDOPTS = '-lsd-lf/dev/null-u snmp-i-smux-p/var/run/snmpd.pid 127.0.0.1 ' snmpdopts= '-lsd-lf/dev/null-u snmp-i -smux-p/var/run/snmpd.pid-c/etc/snmp/snmpd.conf '
Restart SNMPD/ETC/INIT.D/SNMPD restart
3.Test snmpwalk-v 1-c public localhost with information output indicating SNMP and SNMPD installation complete


Ubuntu Configuration snmp/Install SNMP

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.