1.基础环境配置
为了防止防火墙及selinux等的影响,需关闭防火墙及selinux等,具体参考:
2.安装snmp
yum源配置,具体参考:
snmp安装命令:
yum install -y net-snmp net-snmp-utils
[root@kibana ~]# yum install -y net-snmp net-snmp-utils
已加载插件:fastestmirror
Loading mirror speeds from cached hostfile
epel/x86_64/metalink | 5.1 kB 00:00:00
* base: mirrors.aliyun.com
* epel: d2lzkl7pfhq30w.cloudfront.net
* extras: mirrors.aliyun.com
* updates: mirrors.aliyun.com
CentOS79 | 3.6 kB 00:00:00
base | 3.6 kB 00:00:00
docker-ce-stable | 3.5 kB 00:00:00
extras | 2.9 kB 00:00:00
nginx-stable | 2.9 kB 00:00:00
updates | 2.9 kB 00:00:00
软件包 1:net-snmp-5.7.2-49.el7_9.4.x86_64 已安装并且是最新版本
软件包 1:net-snmp-utils-5.7.2-49.el7