[ZBX-17836] Zabbix server 5.0 does not start under CentOS 8.1 Created: 2020 May 28 Updated: 2020 Jun 01 Resolved: 2020 Jun 01 |
|
Status: | Closed |
Project: | ZABBIX BUGS AND ISSUES |
Component/s: | None |
Affects Version/s: | None |
Fix Version/s: | None |
Type: | Problem report | Priority: | Trivial |
Reporter: | Gerd | Assignee: | Renats Valiahmetovs (Inactive) |
Resolution: | Done | Votes: | 0 |
Labels: | None | ||
Remaining Estimate: | Not Specified | ||
Time Spent: | Not Specified | ||
Original Estimate: | Not Specified | ||
Environment: |
CentOS 8.1 |
Description |
Hello, i think it is a bug because the zabbix agent has both parameters set for systemd. Steps to reproduce:
Result: STATUS Output: Messages LOG: May 28 16:55:15 testserver zabbix_server[7211]: zabbix_server [7211]: Cannot initialize IPC services: Cannot access path "/var/run/zabbix": [13] Permission denied.
[root@testserver zabbix]# ls -l /var/run/ | grep zabbix ######## [Unit] [Service] [Install] |
Comments |
Comment by Renats Valiahmetovs (Inactive) [ 2020 May 29 ] |
Dear Gerd, Unfortunately I am unable to reproduce the issue, however I'd like to check your zabbix-server.conf file, if possible. Another thing that comes to mind, what is the status of SElinux? |
Comment by Gerd [ 2020 May 29 ] |
Hi Renats, ok there is something wrong with selinux according to the zabbix documentation but I couldn't find anything in the standard RHEL/CentOS documentation either. If I set "setenforce 0" now the service starts but it is not that cool. With the zabbix-agent it works with out, if I give the zabbix-server service the user and group "zabbix" in the service config it works too. But I had now to notice that the Zabbix-Server restarts again and again some time, because it can't start certain socks because of selinux denied. Unfortunately there is nothing in the RHEL/CentOS manual how to set up selinux here for new Zabbix 5.0. What I already noticed under CentOS 8.1 must be "setsebool -P zabbix_can_network on". Otherwise neither the zabbix server nor the zabbix proxy can be reached over the network or cumunicate or is there another way ? I have now tested a Debian system for comparison here is no problem if you go by the documentation. This is now a bug in the software including the "setsebool -P zabbix_can_network on" or an incorrect documentation? All that remains are the socket errors caused by selinux which I do not understand at the moment. Best Regards
|
Comment by Renats Valiahmetovs (Inactive) [ 2020 Jun 01 ] |
Hi Gerd,
While checking this, I've ran the following commands, which resulted in a stable zabbix server instance: grep zabbix_agent_t /var/log/audit/audit.log | audit2allow -M zabbix_server_custom semodule -i zabbix_server_custom.pp
I must however, let you know that this is an expected behavior with SELinux enabled, therefore this case cannot qualify as bug report case, so please reach out to [email protected]
With that said, I will be closing this ticket, I hope this helps and thank You for understanding. |