共计 3732 个字符,预计需要花费 10 分钟才能阅读完成。
解决 CentOS 7 安装 Zabbix 3.0 无法启动 zabbix-server 的问题
[root@localhost sbin]# service zabbix-server start
Redirecting to /bin/systemctl start zabbix-server.service
Job for zabbix-server.service failed. See 'systemctl status zabbix-server.service' and 'journalctl -xn' for details.
[root@localhost sbin]# journalctl -xn
-- Logs begin at Mon 2016-08-15 17:11:32 PDT, end at Mon 2016-08-15 19:34:58 PDT. --
Aug 15 19:34:48 localhost.localdomain systemd[1]: Failed to start Zabbix Server.
-- Subject: Unit zabbix-server.service has failed
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit zabbix-server.service has failed.
--
-- The result is failed.
Aug 15 19:34:48 localhost.localdomain systemd[1]: Unit zabbix-server.service entered failed state.
Aug 15 19:34:52 localhost.localdomain systemd[1]: Starting Zabbix Server...
-- Subject: Unit zabbix-server.service has begun with start-up
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit zabbix-server.service has begun starting up.
Aug 15 19:34:58 localhost.localdomain systemd[1]: zabbix-server.service holdoff time over, scheduling restart.
Aug 15 19:34:58 localhost.localdomain systemd[1]: Stopping Zabbix Server...
-- Subject: Unit zabbix-server.service has begun shutting down
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit zabbix-server.service has begun shutting down.
Aug 15 19:34:58 localhost.localdomain systemd[1]: Starting Zabbix Server...
-- Subject: Unit zabbix-server.service has begun with start-up
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit zabbix-server.service has begun starting up.
Aug 15 19:34:58 localhost.localdomain systemd[1]: zabbix-server.service: control process exited, code=killed status=11
Aug 15 19:34:58 localhost.localdomain systemd[1]: Failed to start Zabbix Server.
-- Subject: Unit zabbix-server.service has failed
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit zabbix-server.service has failed.
--
-- The result is failed.
Aug 15 19:34:58 localhost.localdomain systemd[1]: Unit zabbix-server.service entered failed state.
Aug 15 19:34:58 localhost.localdomain kernel: zabbix_server[46512]: segfault at 18 ip 00007f78842b4bd0 sp 00007fff1995a818 error 4 in libpthread-2.17.so[7f78842ab000+16000]
1. 问题所在
- zabbix_server[46512]: segfault at 18 ip 00007f78842b4bd0 sp 00007fff1995a818 error 4 in libpthread-2.17.so[7f78842ab000+16000]
2. 产生原因
Centos7 中 gnutls.x86_64(gnutls.x86_64 3.3.8-14.el7_2)版本过高,需要降级 3.1.18-8.el7(1.20)
3. 解决办法
1. 下载 gnutls-3.1.18-8.el7.x86_64.rpm
2. 降级 gnutls
rpm -Uvh --force gnutls-3.1.18-8.el7.x86_64.rpm
-
备注:
如果遇到其他库依赖 gnutls 3.3.8 卸载即可[root@localhost ~]# rpm -Uvh --force gnutls-3.1.18-8.el7.x86_64.rpm warning: gnutls-3.1.18-8.el7.x86_64.rpm: Header V4 DSA/SHA1 Signature, key ID 192a7d7d: NOKEY error: Failed dependencies: gnutls(x86-64) = 3.3.8-12.el7 is needed by (installed) gnutls-dane-3.3.8-12.el7.x86_64 gnutls(x86-64) = 3.3.8-12.el7 is needed by (installed) gnutls-utils-3.3.8-12.el7.x86_64 [root@localhost ~]# yum -y remove gnutls-dane-3.3.8-12.el7.x86_64
3. 重启 zabbix
systemctl restart zabbix-server.service
一些 Zabbix 相关教程集合:
CentOS 7.2 安装部署 Zabbix 3.0.4 详解 http://www.linuxidc.com/Linux/2016-11/137671.htm
Ubuntu 14.04 下 Zabbix2.4.5 源码编译安装 http://www.linuxidc.com/Linux/2015-05/117657.htm
安装部署分布式监控系统 Zabbix 2.06 http://www.linuxidc.com/Linux/2013-07/86942.htm
《安装部署分布式监控系统 Zabbix 2.06》http://www.linuxidc.com/Linux/2013-07/86942.htm
CentOS 7.0 x64 下 Zabbix 3.0 安装笔记 http://www.linuxidc.com/Linux/2016-11/137044.htm
Zabbix 分布式监控系统实践 http://www.linuxidc.com/Linux/2013-06/85758.htm
CentOS 6.3 下 Zabbix 监控 apache server-status http://www.linuxidc.com/Linux/2013-05/84740.htm
CentOS 6.3 下 Zabbix 监控 MySQL 数据库参数 http://www.linuxidc.com/Linux/2013-05/84800.htm
64 位 CentOS 6.2 下安装 Zabbix 2.0.6 http://www.linuxidc.com/Linux/2014-11/109541.htm
ZABBIX 的详细介绍:请点这里
ZABBIX 的下载地址:请点这里
本文永久更新链接地址:http://www.linuxidc.com/Linux/2016-11/137718.htm