im trying to monitoring the log from httpd but i have this error:

[root@localhost httpd]# tail -f /var/log/zabbix/zabbix_agentd.log
  2446:20210304:102535.671 agent #0 started [main process]
  2451:20210304:102535.683 agent #5 started [active checks #1]
  2447:20210304:102535.688 agent #1 started [collector]
  2448:20210304:102535.688 agent #2 started [listener #1]
  2449:20210304:102535.692 agent #3 started [listener #2]
  2450:20210304:102535.693 agent #4 started [listener #3]
  2451:20210304:102837.516 active check "log[/var/log/httpd/error_log]" is not supported: Cannot obtain information for file "/var/log/httpd/error_log": [13] Permission denied

How i can obtained permission


1 Answer 1


error message suggests that zabbix user cannot read the mentioned file "/var/log/httpd/error_log".

Please know that only making the file readable by all does not help - you need to provide user "zabbix" a way to travese the directory structure where the file is located - i.e. permissions for directories need to be adjusted like so:

chmod o+rx /var
chmod o+rx /var/log
chmod o+rx /var/log/httpd

this provides "others" to read + execute the directory structure where the file is located.

to test you have correct permissions to read the file you can do the following:

~# whoami
~# sudo -u zabbix /bin/bash
/root$ whoami
/root$ cat /var/log/nginx/some-error.log
cat: /var/log/nginx/some-error.log: Permission denied

example above shows that permissions are not correct.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.