Zabbix 服务器不是 运行
Zabbix server not running
我刚刚在 RHEL-8 OS 上安装了 Zabbix 5.0 LTS(Zabbix 的最新版本)。在登录 Zabbix 前端时,我收到一条消息说 "Zabbix server is not working"。 & 下面的栏说:"Zabbix server not working.Information delayed may not be current"。请提供帮助?
编辑:我的服务器端口是 10051。
输入 "service zabbix start" 时,我得到输出:
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",我得到:
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.
"journalctl -xe" 的输出:
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" 时,我得到输出:
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?
已解决。我必须配置 SELinux。只需转到 "vim /etc/selinux/config" 并将 SELinux 从 "enforcing" 更改为 "permissive"。之后,重新启动系统,然后 Zabbix 服务器将开始工作。
您已经在本文件中看到了关于 Zabbix 的 /var/log/messages 内容。在此文件中,您会看到如下文本:
run sealert -l 84e0b04d-d0ad-4347-8317-22e74f6cd020
执行此命令:
#sealert -l 84e0b04d-d0ad-4347-8317-22e74f6cd020
然后你会看到关于这个问题的详细信息,要解决这个问题你需要在环境中允许 Zabbix。命令 audit2allow 执行此操作。
link 下面:
我刚刚在 RHEL-8 OS 上安装了 Zabbix 5.0 LTS(Zabbix 的最新版本)。在登录 Zabbix 前端时,我收到一条消息说 "Zabbix server is not working"。 & 下面的栏说:"Zabbix server not working.Information delayed may not be current"。请提供帮助?
编辑:我的服务器端口是 10051。
输入 "service zabbix start" 时,我得到输出:
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",我得到:
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.
"journalctl -xe" 的输出:
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" 时,我得到输出:
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?
已解决。我必须配置 SELinux。只需转到 "vim /etc/selinux/config" 并将 SELinux 从 "enforcing" 更改为 "permissive"。之后,重新启动系统,然后 Zabbix 服务器将开始工作。
您已经在本文件中看到了关于 Zabbix 的 /var/log/messages 内容。在此文件中,您会看到如下文本:
run sealert -l 84e0b04d-d0ad-4347-8317-22e74f6cd020
执行此命令:
#sealert -l 84e0b04d-d0ad-4347-8317-22e74f6cd020
然后你会看到关于这个问题的详细信息,要解决这个问题你需要在环境中允许 Zabbix。命令 audit2allow 执行此操作。 link 下面: