启动zabbix-agent一直报错:Job for zabbix-agent.service failed because the control process exited with error

1、启动 zabbix-agent服务,
提示错误如下:

Job for zabbix-agent.service failed because the control process exited with error code. See "systemctl status zabbix-agent.service" and "journalctl -xe" for details.

2、根据提示,执行systemctl status zabbix-agent.service
提示:

 zabbix-agent.service - Zabbix Agent
   Loaded: loaded (/usr/lib/systemd/system/zabbix-agent.service; enabled; vendor preset: disabled)
   Active: activating (auto-restart) (Result: exit-code) since 二 2019-04-23 11:26:35 CST; 1s ago
  Process: 8594 ExecStart=/usr/sbin/zabbix_agentd -c $CONFFILE (code=exited, status=1/FAILURE)

4月 23 11:26:35 svr1.tedu.cn systemd[1]: zabbix-agent.service: control process exited,...=1
4月 23 11:26:35 svr1.tedu.cn systemd[1]: Failed to start Zabbix Agent.
4月 23 11:26:35 svr1.tedu.cn systemd[1]: Unit zabbix-agent.service entered failed state.
4月 23 11:26:35 svr1.tedu.cn systemd[1]: zabbix-agent.service failed.
Hint: Some lines were ellipsized, use -l to show in full.

3.再次执行,journalctl -xe
提示:

-- Subject: Unit zabbix-agent.service has finished shutting down
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
-- 
-- Unit zabbix-agent.service has finished shutting down.
4月 23 11:29:08 svr1.tedu.cn systemd[1]: Starting Zabbix Agent...
-- Subject: Unit zabbix-agent.service has begun start-up
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
-- 
-- Unit zabbix-agent.service has begun starting up.
4月 23 11:29:08 svr1.tedu.cn zabbix_agentd[8623]: zabbix_agentd [8623]: ERROR: invalid entry in "Server" co
4月 23 11:29:08 svr1.tedu.cn systemd[1]: zabbix-agent.service: control process exited, code=exited status=1
4月 23 11:29:08 svr1.tedu.cn systemd[1]: Failed to start Zabbix Agent.
-- Subject: Unit zabbix-agent.service has failed
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
-- 
-- Unit zabbix-agent.service has failed.
-- 
-- The result is failed.
4月 23 11:29:08 svr1.tedu.cn systemd[1]: Unit zabbix-agent.service entered failed state.
4月 23 11:29:08 svr1.tedu.cn systemd[1]: zabbix-agent.service failed.

百度翻译了这些提示,没有发现问题所在,说是没systemd没有获取到权限。。
百度各种解决方法,还是没有解决。。

最终,查看了配置文件,vi /etc/zabbix/zabbix_agentd.conf
启动zabbix-agent一直报错:Job for zabbix-agent.service failed because the control process exited with error_第1张图片
启动zabbix-agent一直报错:Job for zabbix-agent.service failed because the control process exited with error_第2张图片
把这两个地方的" , "加上。。
重启服务,成功了

你可能感兴趣的:(运维)