本文共 1030 字,大约阅读时间需要 3 分钟。
环境centos7
zabbix 版本 4.0环境介绍:10.10.10.38 zabbix_agent10.10.10.70 zabbix_proxy10.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 foundzabbix server web 无法获取到数据,
故障分析:
1、zabbix 代理、server主机、agent服务器之间的host解析问题2、zabbix --管理--agent代理程序--agent代理程序名称 的问题解决方法:
1、讲server、proxy、agent主机名全部写在host表中shell>hostname shell> vim /etc/hosts10.10.10.38 docker3810.10.10.70 zabbix7010.10.10.71 zabbix_712、zabbix_proxy配置文件的设置
shell>grep ^[a-Z] /etc/zabbix/zabbix_proxy.conf Server=10.10.10.71 ==>指向zabbix_serverHostname=Zabbix70 ==>这个名字很重要切记,填写到zabbix --管理--agent代理程序--agent代理程序名称3、 agent的创建,也需要保持一致
shell>grep ^[a-Z] /etc/zabbix/zabbix_agentd.confHostname=docker38转载于:https://blog.51cto.com/7603402/2307997