Ad Widget

Collapse

Zabbix cant read LOG file - Permission denied

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

    #1

    Zabbix cant read LOG file - Permission denied

    Hello
    i want to send /var/log/messages file to zabbix server.
    i have solve my issue by set chown zabbix.zabbix /var/log/messages
    which isnt good idea,

    any alternative solution ?

    my question is why ive got permission deny when set AllowRoot=1 in agent config file?

    Selinux is diable az well.
  • tim.mooney
    Senior Member
    • Dec 2012
    • 1427

    #2
    As the comments for "AllowRoot" mention:

    # Has no effect if started under a regular user.
    Your agent is probably being started as a normal user.

    At my site, we create a special group called 'log' and then modify the permissions on system log files (including with the logrotate.d/* config files) so they are readable by group 'log'.

    If you do that, then you just need to add the 'zabbix' user (or whatever your agent runs as) to the 'log' group.

    Comment

    Working...