ZABBIX客户端的安装、配置
2 篇帖子 分页: 1 / 1
帖子jayshi » 2018年 4月 23日 21:56 星期一
查看agent状态是running的
root@zabbix:~# /etc/init.d/zabbix-agent status
● zabbix-agent.service - Zabbix Agent
Loaded: loaded (/lib/systemd/system/zabbix-agent.service; enabled; vendor preset: enabled)
Active: active (running) since Mon 2018-04-23 21:06:28 CST; 42min ago
Process: 2142 ExecStop=/bin/kill -SIGTERM $MAINPID (code=exited, status=0/SUCCESS)
Process: 2146 ExecStart=/usr/sbin/zabbix_agentd -c $CONFFILE (code=exited, status=0/SUCCESS)
Main PID: 2149 (zabbix_agentd)
CGroup: /system.slice/zabbix-agent.service
├─2149 /usr/sbin/zabbix_agentd -c /etc/zabbix/zabbix_agentd.conf
├─2150 /usr/sbin/zabbix_agentd: collector [idle 1 sec]
├─2151 /usr/sbin/zabbix_agentd: listener #1 [waiting for connection]
├─2152 /usr/sbin/zabbix_agentd: listener #2 [waiting for connection]
├─2153 /usr/sbin/zabbix_agentd: listener #3 [waiting for connection]
└─2154 /usr/sbin/zabbix_agentd: active checks #1 [idle 1 sec]

Apr 23 21:06:28 zabbix systemd[1]: Starting Zabbix Agent...
Apr 23 21:06:28 zabbix systemd[1]: Started Zabbix Agent.

但查看本地agnet日志提示refused
995:20180423:210014.331 active check configuration update from [127.0.0.1:10051] started to fail (cannot connect to [[127.0.0.1]:10051]: [111] Connection refused)
994:20180423:210014.331 agent #4 started [listener #3]
995:20180423:210114.393 active check configuration update from [127.0.0.1:10051] is working again
989:20180423:210628.946 Got signal [signal:15(SIGTERM),sender_pid:2142,sender_uid:0,reason:0]. Exiting ...

在远端agent上查看日志,提示host not found
no active checks on server [10.x.x.x:10051]: host [08F] not found
帖子laolang8888 » 2018年 6月 1日 11:51 星期五
去zabbix_agentd.conf 里注释掉
#ServerActive=127.0.0.1

应该就可以老
2 篇帖子 分页: 1 / 1

登录

在线用户

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