A Zabbix proxy can collect performance and availability data on behalf of the Zabbix server. This way, a proxy can take on itself some of the load of collecting data and offload the Zabbix server.
Also, using a proxy is the easiest way of implementing centralized and distributed monitoring, when all agents and proxies report to one Zabbix server and all data is collected centrally.
A Zabbix proxy can be used to:
Monitor remote locations
Monitor locations having unreliable communications
Offload the Zabbix server when monitoring thousands of devices 监控上万台服务器就靠他
Simplify the maintenance of distributed monitoring
#server 日志
105825:20170920:155704.097 cannot parse proxy data from active proxy at "xx.xx.xx.xx": proxy "Zabbix proxy final" not found
105826:20170920:155705.108 cannot parse proxy data from active proxy at "xx.xx.xx.xx": proxy "Zabbix proxy final" not found
105826:20170920:155706.119 cannot parse proxy data from active proxy at "xx.xx.xx.xx": proxy "Zabbix proxy final" not found
105825:20170920:155707.128 cannot parse proxy data from active proxy at "xx.xx.xx.xx": proxy "Zabbix proxy final" not found
105826:20170920:155708.139 cannot parse proxy data from active proxy at "xx.xx.xx.xx": proxy "Zabbix proxy final" not found
105825:20170920:155709.149 cannot parse proxy data from active proxy at "xx.xx.xx.xx": proxy "Zabbix proxy final" not found
105826:20170920:155710.160 cannot parse proxy data from active proxy at "xx.xx.xx.xx": proxy "Zabbix proxy final" not found
105825:20170920:164017.897 sending configuration data to proxy "Zabbix proxy final" at "xx.xx.xx.xx", datalen 8172
105800:20170920:165042.107 executing housekeeper
105800:20170920:165052.563 housekeeper [deleted 37754 hist/trends, 0 items, 0 events, 0 problems, 0 sessions, 0 alarms, 0 audit items in 10.439203 sec, idle for 1 hour(s)]
#按照我的推断是,server端没有及时发送配置数据给proxy,应该是同步配置问题。这个过程中,我差不多度娘了一个小时,突然发现自己可以监控数据了。
后面我都试验了几次,时间长就可以正常同步了。只要server端发送数据给proxy
#proxy日志
1
2
3
4
5
6
#zabbix_proxy日志
t [nginx02] not found
17523:20170920:163748.893 cannot send list of active checks to "127.0.0.1": host [nginx02] not found
17523:20170920:163948.912 cannot send list of active checks to "127.0.0.1": host [nginx02] not found
17504:20170920:164140.772 received configuration data from server at "xx.xx.xx.xx", datalen 8172
17516:20170920:164150.825 enabling Zabbix agent checks on host "nginx02": host became available
刚配置提示的错误
17506:20170920:154253.213 cannot send proxy data to server at "xx.xx.xx.xx": proxy "Zabbix proxy final" not found
17506:20170920:154254.228 cannot send proxy data to server at "xx.xx.xxx.xx": proxy "Zabbix proxy final" not found