Heads-up:
1. selinux is set to enforcing
2. Using redhat 9.4 x86
3. zabbix 6.4
Required :
Change the log file path for zabbix server to /zabbix filesystem
Problem :
When I start/restart zabbix-server, it says "cannot open /zabbix/zabbix_log/zabbix_server.log" [13] Permisson denied
Changes I did :
1. zabbix server log path from /var/log/zabbix to /zabbix/zabbix_log/
2. Executed the commands
a. setsebool -P httpd_can_network_connect_db on
b. setsebool -P httpd_can_connect_zabbix on
c. chown -R zabbix:zabbix /zabbix/zabbix_log
d. semanage fcontext -a -t zabbix_log_t "/zabbix/zabbix_log(/.*)?"
e. restorecon -Rv /zabbix/zabbix_log
FYI :
I did the same with zabbix agent 2 and it is working ! ( changed log file path, owned the log file and assigned semanage fcontext )
1. selinux is set to enforcing
2. Using redhat 9.4 x86
3. zabbix 6.4
Required :
Change the log file path for zabbix server to /zabbix filesystem
Problem :
When I start/restart zabbix-server, it says "cannot open /zabbix/zabbix_log/zabbix_server.log" [13] Permisson denied
Changes I did :
1. zabbix server log path from /var/log/zabbix to /zabbix/zabbix_log/
2. Executed the commands
a. setsebool -P httpd_can_network_connect_db on
b. setsebool -P httpd_can_connect_zabbix on
c. chown -R zabbix:zabbix /zabbix/zabbix_log
d. semanage fcontext -a -t zabbix_log_t "/zabbix/zabbix_log(/.*)?"
e. restorecon -Rv /zabbix/zabbix_log
FYI :
I did the same with zabbix agent 2 and it is working ! ( changed log file path, owned the log file and assigned semanage fcontext )
Comment