Hello there,
I'm trying to make a fresh install of Zabbix :
- CentOS 7 / Zabbix-Server 4.0
No problems so far, I use the "From packages" method.
Now I'm facing the real issue : SELinux ...
When I disable it and restart the machine, the agent of zabbix-server itself has no trouble to fetch the data.
But I would like to let SELinux activated, and I'm trying to follow some workarounds I found on the web (apparently no official guidelines in the zabbix wiki)
By the way, I know nothing about SELinux ... Pretty much like John Snow.
So I create the following text file "zabbix_agent_setrlimit.pp" :
I have absolutely no idea on how to make this work... If someone has implemented Zabbix on a machine running SELinux could help me, I would be very grateful
I'm trying to make a fresh install of Zabbix :
- CentOS 7 / Zabbix-Server 4.0
No problems so far, I use the "From packages" method.
Now I'm facing the real issue : SELinux ...
When I disable it and restart the machine, the agent of zabbix-server itself has no trouble to fetch the data.
But I would like to let SELinux activated, and I'm trying to follow some workarounds I found on the web (apparently no official guidelines in the zabbix wiki)
By the way, I know nothing about SELinux ... Pretty much like John Snow.
So I create the following text file "zabbix_agent_setrlimit.pp" :
Code:
module zabbix_agent_setrlimit 1.0;
require {
type zabbix_agent_t;
class process setrlimit;
}
#============= zabbix_agent_t ==============
allow zabbix_agent_t self:process setrlimit;
Code:
[root@VZABBIX ~]# semodule -i zabbix_agent_setrlimit.pp libsepol.module_package_read_offsets: wrong magic number for module package: expected 0xf97cff8f, got 0x75646f6d (No such file or directory). libsemanage.semanage_pipe_data: Child process /usr/libexec/selinux/hll/pp failed with code: 255. (No such file or directory). zabbix_agent_setrlimit: libsepol.module_package_read_offsets: wrong magic number for module package: expected 0xf97cff8f, got 0x75646f6d zabbix_agent_setrlimit: Failed to read policy package libsemanage.semanage_direct_commit: Failed to compile hll files into cil files. (No such file or directory). semodule: Failed!
Comment