Ad Widget

Collapse

Zabbix agent version 3.2 fails to start on RHEL 7.4

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • support_eng1561
    Junior Member
    • Oct 2022
    • 1

    #1

    Zabbix agent version 3.2 fails to start on RHEL 7.4

    Hi all,

    After installing the rpm package for the zabbix-agent version 3.2.11 on a RHEL 7.4 system, the agent doesn't start with the following error message :

    zabbix_agentd[29729]: zabbix_agentd [29731]: cannot open "/var/log/zabbix/zabbix_agentd.log": [13] Permission denied
    systemd[1]: PID file /run/zabbix/zabbix_agentd.pid not readable (yet?) after start.
    systemd[1]: Failed to start Zabbix Agent.


    After checking on the /var/log/zabbix/ directory, the log file was not created, we suspect some privileges issues.

    Any tips regarding this ?

    regards

    ​​
  • tim.mooney
    Senior Member
    • Dec 2012
    • 1427

    #2
    Both /var and /var/log should be readable (r) and searchable (x) by all (user, group, other):

    Code:
    drwxr-xr-x. 22 root root 4096 Aug 15  2019 /var/
    drwxr-xr-x. 18 root root 4096 Oct 27 00:12 /var/log/
    /var/log/zabbix should be owned by the 'zabbix' user and have at least 'rwx' permissions for user. The group and other permissions can be tailored for local access policy, if desired.

    If you have SELinux enabled (man selinuxenabled(8)) you will need to have the appropriate labels in place. An agent that old probably didn't come with SELinux labels, so you may need to write your own, or look at the rules/labels that are part of a more recent version of the agent.

    Comment

    Working...