Hi,
I'm trying to monitor the Centos 7 log [/var/log/messages] from my zabbix server and created a item for this.
However, I received the below error in the agent log:
Cannot open file "/var/log/messages": [13] Permission denied
I understand the problem is in the access to the log file, as only root/admins have access to log files. Had the same problem on Ubuntu, and solved it with adding the zabbix user to admin group
sudo usermod -aG adm zabbix
Same command doesn't help/work on Centos. Any help/ideas on how to grant permission to zabbix user to access logs?
Thank you
I'm trying to monitor the Centos 7 log [/var/log/messages] from my zabbix server and created a item for this.
However, I received the below error in the agent log:
Cannot open file "/var/log/messages": [13] Permission denied
I understand the problem is in the access to the log file, as only root/admins have access to log files. Had the same problem on Ubuntu, and solved it with adding the zabbix user to admin group
sudo usermod -aG adm zabbix
Same command doesn't help/work on Centos. Any help/ideas on how to grant permission to zabbix user to access logs?
Thank you
Comment