Zabbix: cannot set resource limit: [13] Permission denied
Zabbix error:
10587:20190212:003514.676 using configuration file: /etc/zabbix/zabbix_server.conf
10587:20190212:003514.676 cannot set resource limit: [13] Permission denied
relates to:
[root@host01 zabbix]# cat ../audit/audit.log|grep -Ei denied|tail
type=AVC msg=audit(1549949714.675:12570): avc: denied { setrlimit } for pid=10587 comm="zabbix_server" scontext=system_u:system_r:zabbix_t:s0 tcontext=system_u:system_r:zabbix_t:s0 tclass=process
[root@host01 zabbix]#
and is solved by:
[root@host01 zabbix]# grep AVC /var/log/audit/audit.log* | audit2allow -M systemd-allow; semodule -i systemd-allow.pp
Cheers,
TK