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