1.基础环境配置
为了防止防火墙及selinux等的影响,需关闭防火墙及selinux等,具体参考:
2.安装snmp
yum源配置,具体参考:
snmp安装命令:
yum install -y net-snmp net-snmp-utils
[root@logstash net-snmp]# yum install -y net-snmp net-snmp-utils
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
Package matching 1:net-snmp-5.7.2-49.el7.x86_64 already installed. Checking for update.
Package matching 1:net-snmp-utils-5.7.2-49.el7.x86_64 already installed. Checking for update.
Nothing to do
[root@logstash net-snmp]#
3.snmpd v3配置
1.创建v3用户
命令:
net-snmp-create-v3-user -a SHA -A p