Reconfigure Zabbix Agents to use Zabbix Proxy
I reconfigure my existing Zabbix Agents on my Windows hosts to use the new Zabbix Proxy we've just set up.
For each host that I need to be managed by the proxy, I need to edit its agent configuration to use the proxy for it's Server and ServerActive settings.
On my internal network, I can ping my proxy by hostname, i.e., raspberrypi, from each of the hosts that I now want to reconfigure to use the proxy. So I can use the raspberrypi hostname in the server and serverActive parameters in the agents' configuration file.
If you cannot ping the proxy by hostname from the server you are running the agent from, then you can use the proxies ip address in the server and serverActive parameters in the agents config file instead.
I then go into the Zabbix UI and reconfigure the hosts to now be monitored by proxy. I also update the agent interface information to reference the servers from the perspective of the proxy.
Next, I then restart each agent process, and also do a config cache reload on the proxy.
sudo zabbix_proxy -R config_cache_reload
On Linux, restart the agent using
sudo service zabbix-agent restart
On Windows, open services.msc, right-click the Zabbix Agent service and select restart.