Ad Widget

Collapse

Zabbix agent 3 and PID issue again ! centos 7

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • mersiuse
    Junior Member
    • Feb 2014
    • 6

    #1

    Zabbix agent 3 and PID issue again ! centos 7

    Hi
    i just installed zabbix agent 3 from official repo
    but

    ● zabbix-agent.service - Zabbix Agent
    Loaded: loaded (/usr/lib/systemd/system/zabbix-agent.service; disabled; vendor preset: disabled)
    Active: inactive (dead)

    Feb 29 17:47:43 quadverto-uat systemd[1]: zabbix-agent.service holdoff time over, scheduling restart.
    Feb 29 17:47:43 quadverto-uat systemd[1]: Starting Zabbix Agent...
    Feb 29 17:47:43 quadverto-uat systemd[1]: PID file /run/zabbix/zabbix_agentd.pid not readable (yet?) after start.
    Feb 29 17:47:43 quadverto-uat zabbix_agentd[10884]: zabbix_agentd [10886]: cannot open "/var/log/zabbix/zabbix_a...nied
    Feb 29 17:47:43 quadverto-uat systemd[1]: zabbix-agent.service never wrote its PID file. Failing.
    Feb 29 17:47:43 quadverto-uat systemd[1]: Failed to start Zabbix Agent.
    Feb 29 17:47:43 quadverto-uat systemd[1]: Unit zabbix-agent.service entered failed state.
    Feb 29 17:47:43 quadverto-uat systemd[1]: zabbix-agent.service failed.
    Feb 29 17:47:48 quadverto-uat systemd[1]: Stopped Zabbix Agent.
    Feb 29 17:50:55 quadverto-uat systemd[1]: Stopped Zabbix Agent.
    Hint: Some lines were ellipsized, use -l to show in full.
  • mersiuse
    Junior Member
    • Feb 2014
    • 6

    #2
    it's just fixed

    install audit2allow:
    # yum install policycoreutils-python

    Interprete the audit log and create custom SElinux exceptions:
    cat /var/log/audit/audit.log | grep zab | audit2allow -M zabbix-agent


    Apply the generated SElinux rules:
    # semodule -i zabbix-agent.pp

    Restart the Zabbix Agent service:

    Comment

    • donobyte
      Junior Member
      • Jul 2017
      • 1

      #3
      You are a saint.

      -Random googler.

      Comment

      Working...