Hi!
I have had some problem getting zabbix 3.4 to work on CentOS7 and it seems I´m not alone with zabbix-server.service refusing to start.
In the docs, at 4 - Installation - 4 - Installation from packages - 1 - RHEL/CentOS
There is a section about SELinux in enforced mode and suggested solution is
# setsebool -P httpd_can_connect_zabbix on
Bu this doesn´t seem to work, or isn´t enough...
These are the error messages that I get:
1. Job for zabbix-server.service failed because a configured resource limit was exceeded. See "systemctl status zabbix-server.service" and "journalctl -xe" for details.
2. PID file /run/zabbix/zabbix_server.pid not readable (yet?) after start.
I have tried quite a few suggestions from different forums as well as zabbix bug reports.
For example:
Reinstall OS, reinstall Zabbix, database and everything else.
Restarted services, network, and so on...
# install policycoreutils-python
# cat /var/log/audit/audit.log | grep zab | audit2allow -M zabbix-server
# semodule -i zabbix-server.pp
# setsebool -P httpd_can_network_connect on
# setsebool -P httpd_can_connect_zabbix on
# setsebool -P zabbix_can_network on
Disable the firewall etc...
When I disabled the firewall, the service actually started just to shut down again a second later.
The only thing I have found that solve this for me is to set SElinux to permissive, which still result in error message nr2 above but the service stays active and seem to work in my frontend.
So... my suggestion is to change the documentation to recommend disabling SELinux (set premissive) until a bugfix is in place.
Hope this wasn´t TL/DR
I have had some problem getting zabbix 3.4 to work on CentOS7 and it seems I´m not alone with zabbix-server.service refusing to start.
In the docs, at 4 - Installation - 4 - Installation from packages - 1 - RHEL/CentOS
There is a section about SELinux in enforced mode and suggested solution is
# setsebool -P httpd_can_connect_zabbix on
Bu this doesn´t seem to work, or isn´t enough...
These are the error messages that I get:
1. Job for zabbix-server.service failed because a configured resource limit was exceeded. See "systemctl status zabbix-server.service" and "journalctl -xe" for details.
2. PID file /run/zabbix/zabbix_server.pid not readable (yet?) after start.
I have tried quite a few suggestions from different forums as well as zabbix bug reports.
For example:
Reinstall OS, reinstall Zabbix, database and everything else.
Restarted services, network, and so on...
# install policycoreutils-python
# cat /var/log/audit/audit.log | grep zab | audit2allow -M zabbix-server
# semodule -i zabbix-server.pp
# setsebool -P httpd_can_network_connect on
# setsebool -P httpd_can_connect_zabbix on
# setsebool -P zabbix_can_network on
Disable the firewall etc...
When I disabled the firewall, the service actually started just to shut down again a second later.
The only thing I have found that solve this for me is to set SElinux to permissive, which still result in error message nr2 above but the service stays active and seem to work in my frontend.
So... my suggestion is to change the documentation to recommend disabling SELinux (set premissive) until a bugfix is in place.
Hope this wasn´t TL/DR
Comment