安裝 ucd-snmp-4.2.1.tar.gz: [root @tsai /root]# cd /usr/local/src
[root @tsai src]# cp /root/ucd-snmp-4.2.1.tar.gz .
[root @tsai src]# tar -zxvf ucd-snmp-4.2.1.tar.gz
[root @tsai src]# cd ucd-snmp-4.2.1
[root @tsai ucd-snmp-4.2.1]# ./configure --prefix=/usr/local/snmp
.......(過程我就省略了)
************** Configuration Section **************
You are about to be prompted by a series of questions. Answer
them carefully, as they determine how the snmp agent and related
applications are to function.
After the configure script finishes, you can browse the newly
created config.h file for further - less important - parameters to
modify. Be careful if you re-run configure though since config.h will
be over written.
-Press return to continue- (這裡按 enter 吧)
disabling above prompt for future runs... yes
checking System Contact Information...
*** System Contact Information:
Describes who should be contacted about the host the agent is
running on. This information is available in the MIB-II tree. This
Can Also Be Over-Ridden Using The "syscontact" Syntax In The Agent'S
Configuration Files.
System Contact Information (root@):root@tsai.adsldns.org (這裡輸入你的 e-mail)
setting System Contact Information to... root@tsai.adsldns.org
checking System Location...
*** System Location:
Describes the location of the system. This information is
available in the MIB-II tree. This Can also be over-ridden using the
"syslocation" syntax in the agent's configuration files.
System Location (Unknown):RedHat 6.1 (這裡可以隨便輸入,不正確也沒關係)
setting System Location to... RedHat 6.1
checking Location to write logfile...
*** Logfile location:
Enter the default location for the snmpd agent to dump
information & errors to. If not defined (enter the keyword "none"
at the prompt below) the agent will use stdout and stderr instead.
(Note: This value can be over-ridden using command line options.)
Location to write logfile (/var/log/snmpd.log):(按 enter 即可)
setting Location to write logfile to... /var/log/snmpd.log
checking Location to write persistent information...
*** snmpd persistent storage location:
Enter a directory for the snmp library to store persistent
data in the form of a configuration file.
Location to write persistent information (/var/ucd-snmp):(按 enter 即可)
[root @tsai ucd-snmp-4.2.1]# make
[root @tsai ucd-snmp-4.2.1]# make install