环境centos7 zabbix 版本 4.0 环境介绍: 10.10.10.38 zabbix_agent 10.10.10.70 zabbix_proxy 10.10.10.71 zabbix_server 故障现象: (1) proxy log 报错 5963:20181023:051422.419 no active checks on server [10.10.10.70:10051]: host [zabbixagent70] not found (2)agent 报错 32088:20181023:160505.117 no active checks on server [10.10.10.38:10051]: host [docker38] not found (3)server 报错 5832:20181023:052640.594 cannot send proxy data to server at "10.10.10.71": proxy "Zabbix-proxy" not found

zabbix server web 无法获取到数据,

故障分析: 1、zabbix 代理、server主机、agent服务器之间的host解析问题 2、zabbix --管理--agent代理程序--agent代理程序名称 的问题

解决方法: 1、讲server、proxy、agent主机名全部写在host表中 shell>hostname shell> vim /etc/hosts 10.10.10.38 docker38 10.10.10.70 zabbix70 10.10.10.71 zabbix_71

2、zabbix_proxy配置文件的设置 shell>grep ^[a-Z] /etc/zabbix/zabbix_proxy.conf Server=10.10.10.71 ==>指向zabbix_server Hostname=Zabbix70 ==>这个名字很重要切记,填写到zabbix --管理--agent代理程序--agent代理程序名称

3、 agent的创建,也需要保持一致 shell>grep ^[a-Z] /etc/zabbix/zabbix_agentd.conf Hostname=docker38