首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >无法安装Zabbix服务器

无法安装Zabbix服务器
EN

Unix & Linux用户
提问于 2020-06-02 22:08:25
回答 1查看 4K关注 0票数 0

我刚刚在RHEL-8操作系统上安装了Zabbix-5.0LTS。登录到Zabbix前端后,我收到消息:"Zabbix服务器没有运行:显示的信息可能不正确“。请帮助我安装服务器。

我的Zabbix服务器端口是10051。

在输入service zabbix start时,我得到了输出:

代码语言:javascript
复制
Redirecting to /bin/systemctl start zabbix.service
Failed to start zabbix.service:Unit zabbix.service not found.

当我进入systemctl restart zabbix-server zabbix-agent httpd php-fpm时,我得到:

代码语言:javascript
复制
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.

“日志-xe”的输出:

代码语言:javascript
复制
RHEL8 platform-python[5746]: SELinux is preventing zabbix_server from using the dac_override capability.

*** Plugin dac_overrride (91.4 confidence) suggests ************************
If you want to help identify if domain needs this access or you have a file with the wrong permissions on your system
Then turn on full auditing to get path information about the offending file and generate the error again.
Do

Turn on full auditing
#auditctl -w /etc/shadow -p w
Try to recreate AVC.Then execute
#ausearch -m avc -ts recent
If you see PATH record check ownership/permissions on file, and fix it,
otherwise report as a bugzilla

*** Plugin catchall (9.59 confidence) suggests *************************

If you believe that zabbix_server should have the dac_override capability by default.
Then you should report this as a bug.
You can generate a local policy module to allow this access.
Do
allow this access for now by executing:
#ausearch -c 'zabbix_server' --raw | audit2allow -M my-zabbixserver
#semodule -X 300 -i my-zabbixserver.pp           

RHEL8 dbus-daemon[779]: [system] Activating service name='org.fedoraproject.Setroubleshootd' requested by ':1.40' (uid=0 pid=748 comm="/usr/sbin/sedispatch " label="sytem_u:system_r:auditd_t:s0") (using servicehelper)

在输入"systemctl status zabbix-server.service“时,将得到输出:

代码语言:javascript
复制
zabbix-server.service-Zabbix server: Loaded:....
                                   Active:....
                                   Process: 4959 
ExecStart=/usr/sbin/zabbix_server -c $CONFILE (code=exited,status=1/FAILURE)
RHEL8 systemd[1]:zabbix-server.service:Control process exited,code=exited status=1
RHEL8 systemd[1]:zabbix-server.service:Failed with result 'exit-code'.
RHEL8 systemd[1]:Failed to start Zabbix Server. What do I do now?
EN

回答 1

Unix & Linux用户

回答已采纳

发布于 2020-06-04 23:41:50

解决了。我不得不配置SELinux。只需转到"vim /etc/ SELinux /config“,并将SELinux从”强制“更改为”允许的“.After,重新启动系统&然后Zabbix服务器将开始工作。

票数 -1
EN
页面原文内容由Unix & Linux提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://unix.stackexchange.com/questions/590529

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档