Centos 6.5 SNMP客户端安装及配置
SNMP版本:net-snmp-5.7.3.tar.gz
1.下载软件
cd /usr/local/src
yum -y install gcc
wget
http://nchc.dl.sourceforge.net/project/net-snmp/net-snmp/5.7.3/net-snmp-5.7.3.tar.gz
2.解压编译安装
tar -zxvf net-snmp-5.7.3.tar.gz
cd net-snmp-5.7.3
./configure --with-default-snmp-version="2" --with-sys-contact="zjqs" --with-sys-location="XSIDC"
--with-logfile="/var/log/snmpd.log" --with-persistent-directory="/opt/net-snmp"
make
make install
4.配置
/usr/local/sbin/snmpd
/usr/local/sbin/snmpd会在/opt/下生成/opt/net-snmpd/snmpd.conf
cd /opt/net-snmpd/
vim snmpd.conf
添加以下内容
com2sec notConfigUser default public
group notConfigGroup v1 notConfigUser
group notConfigGroup v2c notConfigUser
view all included