记开启 selinux 后监控数据不正常
##问题描述: server开启selinux 后,zabbix监控不到zabbix-server数据,提示zabbix-server is running 的值是 no(client端的 selinux 不用设置, firewall 要开启 10050 端口)
server 关闭selinux 监控正常,开启后监控不到数据
server开启selinux 后的报错信息
[root@localhost ~]# tail /var/log/messages
Jun 1 20:12:41 localhost systemd: zabbix-server.service failed.
Jun 1 20:12:41 localhost systemd: Starting Zabbix Server…
Jun 1 20:12:41 localhost systemd: PID file /run/zabbix/zabbix_server.pid not readable (yet?) after start.
Jun 1 20:12:41 localhost systemd: Started Zabbix Server.
Jun 1 20:12:41 localhost setroubleshoot: SELinux is preventing /usr/sbin/zabbix_server_mysql from name_connect access on the tcp_socket port 3306. For complete SELinux messages. run sealert -l 9776cbd9-2a64-4c42-9dca-549543cc95f9
Jun 1 20:12:41 localhost python: SELinux is preventing /usr/sbin/zabbix_server