Ad Widget

Collapse

zabbix cant read log file due permission

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • mixmox
    Member
    • Apr 2020
    • 54

    #1

    zabbix cant read log file due permission

    hello
    zabbix cant read log file due permission error.
    im talking about this file:
    /var/log/nginx/access_log

    the current permission is:
    -rw-r--r-- 1 nginx root 377723 Dec 15 23:58 access_log

    so ive run these to add zabbix into nginx group:
    usermod -a -G nginx zabbix

    thin confirm by:
    groups zabbix

    output:
    zabbix : zabbix nginx

    and restart zabbix agent.
    still zabbix cant read log file with READ permission error

    also ive enable AllowRoot in agent config file
  • mixmox
    Member
    • Apr 2020
    • 54

    #2
    someone in zabbix forum send this to me which solve the problem by adding zabbix into access list:

    setfacl -Rm d:g:zabbix:rx,g:zabbix:rx /var/log/nginx/

    his/her username is : doogienz

    Comment

    • cyber
      Senior Member
      Zabbix Certified SpecialistZabbix Certified Professional
      • Dec 2006
      • 4807

      #3
      if your file has read permission to all and you still cannot read it... its possibly a directory in front of it, what you cannot enter...
      And that was fixed with modifying ACL for that directory...

      Comment

      Working...