Monitoring hosts through a proxy
After setting up a proxy, we want to add some hosts to our proxy. In this recipe, we will show you how to link your hosts to the installed proxies.
Getting ready
For this recipe, we need our Zabbix server with an active or passive proxy configured like we have done in one of the previous recipes. We also need a host that we can use to connect to our proxy.
How to do it…
Adding a host to a proxy is a very straightforward method and doesn't take much time:
First we have to change the
Server
and/orActiveServer
values in the configuration of our Zabbix client. This can be done in thezabbix_agentd.conf
configuration file. Instead of the Zabbix server's IP we add the IP of our proxy.Restart the agent:
service zabbix-proxy restart
In the Zabbix server, go to the agent in the menu Configuration | Hosts. Select the correct host and at the bottom of the host page, select from Monitored by proxy the correct proxy from the list.
Now, go to Administration | Proxies. You will...