Uploaded image for project: 'ZABBIX BUGS AND ISSUES'
  1. ZABBIX BUGS AND ISSUES
  2. ZBX-18243

zabbix-agent2.service fails to start on Centos 7

XMLWordPrintable

    • Sprint 67 (Aug 2020), Sprint 68 (Sep 2020)
    • 0.125

      Steps to reproduce:

      1. install zabbix-agent2 from Centos 7 repo: https://repo.zabbix.com/zabbix/5.0/rhel/7/x86_64/
      2. enable zabbix-agent2.service
      3. start zabbix-agent2.service

      Result:
      See log file /var/log/messages

      zabbix_agent2: 2020/08/12 11:24:25.287696 cannot initialize logger: open /var/log/zabbix/zabbix_agent2.log: permission denied
      zabbix_agent2: zabbix_agent2 [24141]: ERROR: cannot initialize logger: open /var/log/zabbix/zabbix_agent2.log: permission denied
      systemd: zabbix-agent2.service: main process exited, code=exited, status=1/FAILURE
      systemd: Unit zabbix-agent2.service entered failed state.
      systemd: zabbix-agent2.service failed.

       

      zabbix_agent2 fails to start because the zabbix user does not have access right to the log file

      Expected:
      the rpm package should create the log file /var/log/zabbix/zabbix_agent2.log

      with the correct access permission/ownership

      workaround: fix the ownership manually:

      chown zabbix /var/log/zabbix/zabbix_agent2.log

            yurii Jurijs Klopovskis
            tni tni
            Team I
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: