Recently configured Zabbix distributed monitoring, using the proxy method, after the configuration is completed, the server side of the Web interface to add the host, using proxy mode for monitoring.
The normal client configuration is as follows and can be monitored normally
Vim zabbix_agentd.conf
Logfile=/tmp/zabbix_agentd.log
server=192.168.111.172 # Enter the IP address of the zabbix_proxy
serveractive=192.168.111.172
hostname=192.168.111.190
the zabbix_agentd.conf configuration on the proxy host is as follows
Vim zabbix_agentd.conf
Logfile=/tmp/zabbix_agentd.log
server=127.0.0.1 # Enter zabbix_proxy IP address, because this is the machine, wrote the 127.0.0.1 address
serveractive=127.0.0.1
Hostname=proxy_server
After the configuration is completed, it is found that normal clients can be monitored normally, and the proxy host always prompts:
Zabbix agent on 192.168.110.53 are unreachable for 5 minutes
began to think that the host name is not recognized, modified hostname for the IP address still prompt this error,
Finally think of normal client can monitor, configuration is sure to be OK, so the proxy host configuration changes as follows
Vim zabbix_agentd.conf
Logfile=/tmp/zabbix_agentd.log
server=192.168.111.172 # Enter the IP address of the zabbix_proxy
serveractive=192.168.111.172
Hostname=proxy_server
After the modification is complete, it can be monitored normally.
I understand that it is due to the web-side configuration when selecting the host through Proxy server 192.168.111.172来 agent monitoring, when monitoring their own when the use of agents, but zabbix_ The server entry in agentd.conf does not match the proxy address after it is written as 127.0.0.1, resulting in an error
Zabbix Proxy host monitoring itself when prompted, Zabbix agent on 192.168.110.53 are unreachable for 5 minutes