ZABBIX服务安装,如在RedHat、CentOS、Ubuntu等上安装
3 篇帖子 分页: 1 / 1
帖子tanhua513 » 2017年 9月 19日 20:52 星期二
实验环境:zabbix-server 192.168.1.125 zabbix-agent端 192.168.1.126
系统环境:centos 7.3 zabbix版本3.4
运行状况:server端服务启动正常,agent端启动一直报错如下:
[root@localhost ~]# systemctl start 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.


[root@localhost ~]# 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 Tue 2017-09-19 08:48:37 EDT; 2s ago
Process: 49524 ExecStart=/usr/sbin/zabbix_agentd -c $CONFFILE (code=exited, status=1/FAILURE)
Main PID: 41255 (code=exited, status=1/FAILURE)

Sep 19 08:48:37 localhost.localdomain systemd[1]: zabbix-agent.service: control process exited, code=exited status=1
Sep 19 08:48:37 localhost.localdomain systemd[1]: Failed to start Zabbix Agent.
Sep 19 08:48:37 localhost.localdomain systemd[1]: Unit zabbix-agent.service entered failed state.
Sep 19 08:48:37 localhost.localdomain systemd[1]: zabbix-agent.service failed.
[root@localhost ~]#

Unit zabbix-agent.service has failed.
--
-- The result is failed.
Sep 19 08:50:30 localhost.localdomain systemd[1]: Unit zabbix-agent.service entered failed state.
Sep 19 08:50:30 localhost.localdomain systemd[1]: zabbix-agent.service failed.
Sep 19 08:50:40 localhost.localdomain systemd[1]: zabbix-agent.service holdoff time over, scheduling restart.
Sep 19 08:50:40 localhost.localdomain systemd[1]: Starting Zabbix Agent...
-- Subject: Unit zabbix-agent.service has begun start-up
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/li ... temd-devel
--
-- Unit zabbix-agent.service has begun starting up.
Sep 19 08:50:40 localhost.localdomain zabbix_agentd[49588]: zabbix_agentd [49588]: unknown parameter "hostname" in config file "/etc/zabbix
/zabbix_agentd.conf", line 149
Sep 19 08:50:40 localhost.localdomain systemd[1]: zabbix-agent.service: control process exited, code=exited status=1
Sep 19 08:50:40 localhost.localdomain systemd[1]: Failed to start Zabbix Agent.
-- Subject: Unit zabbix-agent.service has failed
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/li ... temd-devel
--
-- Unit zabbix-agent.service has failed.
--
-- The result is failed.
Sep 19 08:50:40 localhost.localdomain systemd[1]: Unit zabbix-agent.service entered failed state.
Sep 19 08:50:40 localhost.localdomain systemd[1]: zabbix-agent.service failed.

注:firewalld selinux 都关闭了
帖子tanhua513 » 2017年 9月 20日 12:25 星期三
149 对应的hostname 已经修改成 Hostname 已经没有这个报错了

但是 服务任然启动不了
帖子tanhua513 » 2017年 9月 24日 19:45 星期天
使用centos 6.8 没有做任何其他配置,服务启动正常。 fedora 26 也运行正常。可能是新版本的agent 与7.3的系统需要做一些额外的配置 目前没有继续研究了 有空现在捣腾
3 篇帖子 分页: 1 / 1

登录

在线用户

正在浏览此版面的用户:没有注册用户 和 2 位游客