YUM安装Zabbix5.4启动失败usmAES192

2021/5/19 7:26:25

本文主要是介绍YUM安装Zabbix5.4启动失败usmAES192,对大家解决编程问题具有一定的参考价值,需要的程序猿们随着小编来一起学习吧!

说明

通过zabbix官网YUM方式安装zabbix5.4后,zabbix server启动失败提示“

/usr/sbin/zabbix_server: symbol lookup error: /usr/sbin/zabbix_server: undefined symbol: usmAES192PrivProtocol

操作系统环境:

[root@zbxserver1 ~]# uname -a

Linux zbxserver1 4.18.0-193.el8.x86_64 #1 SMP Fri May 8 10:59:10 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux

[root@zbxserver1 ~]# cat /etc/redhat-release

CentOS Linux release 8.2.2004 (Core)

图片.pnga1.png



Zabbix5.4安装包:

a2.png





Zabbix5.4启动失败

[root@zbxserver1 ~]# systemctl restart zabbix-server

Job for zabbix-server.service failed because the control process exited with error code.

See "systemctl status zabbix-server.service" and "journalctl -xe" for details.

[root@zbxserver1 ~]# journalctl -xe

--

-- zabbix-server.service 单元已结束停止操作。

5月 18 21:31:00 zbxserver1 systemd[1]: Starting Zabbix Server...

-- Subject: zabbix-server.service 单元已开始启动

-- Defined-By: systemd

-- Support: https://access.redhat.com/support

--

-- zabbix-server.service 单元已开始启动。

5月 18 21:31:00 zbxserver1 zabbix_server[2906]: /usr/sbin/zabbix_server: symbol lookup error: /usr/sbin/zabbix_server: undefined symbol: usmAES192PrivProtocol

5月 18 21:31:00 zbxserver1 systemd[1]: zabbix-server.service: Control process exited, code=exited status=127

5月 18 21:31:00 zbxserver1 systemd[1]: zabbix-server.service: Failed with result 'exit-code'.

5月 18 21:31:00 zbxserver1 systemd[1]: Failed to start Zabbix Server.

-- Subject: zabbix-server.service 单元已失败

-- Defined-By: systemd

-- Support: https://access.redhat.com/support

--

-- zabbix-server.service 单元已失败。

--

-- 结果为“failed”。

a3.png

错误原因:

由于使用系统镜像中的net-snmp-libs-5.8.安装包,不支持usmAES192 privacy protocol,所以导致zabbix-server启动失败。

a4.png



a5.png




解决方法:

根据这篇文章的思路,升级net-snmp到高版本。访问Centos8 YUM仓库下载rpm或者通过网络YUM源方式升级到net-snmp-libs-5.8.18。

YUM源配置参考:

[root@zbxserver1 ~]# cat /etc/yum.repos.d/CentOS-Base.repo

[base]

name=CentOS-$releasever - Base - mirror.centos.org

failovermethod=priority

baseurl=http://mirror.centos.org/centos/$releasever/BaseOS/$basearch/os/

gpgcheck=0

gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-Official

 

#additional packages that may be useful

[extras]

name=CentOS-$releasever - Extras - mirror.centos.org

failovermethod=priority

baseurl=http://mirror.centos.org/centos/$releasever/extras/$basearch/os/

gpgcheck=0

gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-Official

 #additional packages that extend functionality of existing packages

 [AppStream]

name=CentOS-$releasever - AppStream - mirror.centos.org

failovermethod=priority

baseurl=http://mirror.centos.org/centos/$releasever/AppStream/$basearch/os/

gpgcheck=0

gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-Official


升级NET-SNMP:

a6.png

确认NET-SNMP是否支持AES192:

[root@zbxserver1 ~]# ldd /usr/sbin/zabbix_server|grep -i snmp

       libnetsnmp.so.35 => /lib64/libnetsnmp.so.35 (0x00007fb212cb1000)

[root@zbxserver1 ~]# nm -D /lib64/libnetsnmp.so.35 |grep -i aes

                 U EVP_aes_128_cfb128

                 U EVP_aes_192_cfb128

                 U EVP_aes_256_cfb128

00000000002e4560 D usmAES128PrivProtocol

00000000002e3ec0 D usmAES192CiscoPrivProtocol

00000000002e3f80 D usmAES192PrivProtocol

00000000002e3e60 D usmAES256CiscoPrivProtocol

00000000002e3f20 D usmAES256PrivProtocol

00000000002e3fe0 D usmAESPrivProtocol

000000000009e720 T usm_set_aes_iv


a7.png






启动ZABBIX SERVER:

a8.png




这篇关于YUM安装Zabbix5.4启动失败usmAES192的文章就介绍到这儿,希望我们推荐的文章对大家有所帮助,也希望大家多多支持为之网!


扫一扫关注最新编程教程