Ad Widget

Collapse

Agent can't start in CentOS 7

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • nmz
    Member
    • Jan 2016
    • 69

    #1

    Agent can't start in CentOS 7

    When I start to zabbix agent I got this error :
    Code:
    zabbix-agent.service - Zabbix Agent
       Loaded: loaded (/usr/lib/systemd/system/zabbix-agent.service; enabled)
       Active: failed (Result: start-limit) since Mon 2016-02-29 13:43:40 MMT; 14s ago
      Process: 7914 ExecStart=/usr/sbin/zabbix_agentd -c $CONFFILE (code=exited, status=0/SUCCESS)
     Main PID: 5230 (code=exited, status=1/FAILURE)
    How can i fix it? When I search in /usr/sbin there 2 zabbix agent file. zabbix_agent and zabbix_agentd

    There's no pid file according to my agent conf file. According to my conf file pid file path is /var/run/zabbix
    Last edited by nmz; 29-02-2016, 09:27. Reason: more info
  • Firm
    Senior Member
    • Dec 2009
    • 342

    #2
    Show the output of journalctl -n. Can you stry to start zabbix_agent manually? Like /usr/bin/zabbix_agent.
    Last edited by Firm; 29-02-2016, 11:02.

    Comment

    • nmz
      Member
      • Jan 2016
      • 69

      #3
      There's is no zabbix-agent in /usr/bin and I didn't see any zabbix agent related log when I run journalctl -n. Thanks for your reply and waiting more replys

      Comment

      • Firm
        Senior Member
        • Dec 2009
        • 342

        #4
        /usr/sbin/zabbix_agentd -c <your_config_file> (or /usr/sbin/zabbix_agent if exists).

        Comment

        • nmz
          Member
          • Jan 2016
          • 69

          #5
          That's result of journalctl -n
          Code:
          central-db systemd[1]: Failed to start Zabbix Agent.
          central-db systemd[1]: Unit zabbix-agent.service entered failed state.
          central-db systemd[1]: zabbix-agent.service holdoff time over, scheduling restart.
          central-db systemd[1]: Stopping Zabbix Agent...
          central-db systemd[1]: Starting Zabbix Agent...
          central-db systemd[1]: zabbix-agent.service start request repeated too quickly, refusing to start.
          central-db systemd[1]: Failed to start Zabbix Agent.

          Comment

          • Firm
            Senior Member
            • Dec 2009
            • 342

            #6
            Try to start manually as I wrote earlier.

            Comment

            • Balaraju
              Member
              • Jun 2016
              • 40

              #7
              I have same with zabbix agent with centos 6.5

              i have done what you given command as -c

              it's working for first time if we start again its not restarting again failed with 13 permission denied. i have disabled selinux and firewall too.

              Comment

              Working...