Reconfigure Zabbix Agents to use Zabbix Proxy
I reconfigure my existing Zabbix Agents on my Centos7, Windows10 and MacOSX to now use the new Zabbix Proxy we just set up.
For each host that I need to be proxied, I need to edit it's agent config file to use the RaspberryPi for it's Server and ServerActive settings.
On my internal network, I can ping my proxy by hostname, ie 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 config 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. ie, the ip address needs to be the local address on the network, or use the host name which can be found in the local network.
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.
sudo launchctl unload /Library/LaunchDaemons/com.zabbix.zabbix_agentd.plist sudo launchctl load /Library/LaunchDaemons/com.zabbix.zabbix_agentd.plist