Using discovery with Zabbix proxies
In Chapter 7, Using Discovery for Automatic Creation, we talked about Zabbix and discovery. It is a very good idea to edit your discovery rules if you followed along with that chapter. Let's see how this would work in this recipe.
Getting ready
You'll need to have finished Chapter 7, Using Discovery for Automatic Creation, or have some discovery rules and active agent autoregistration set up.
I'll be using lar-book-lnx-agent-auto
, lar-book-disc-lnx
, and lar-book-disc-win
hosts in this example. We will also need our Zabbix server.
How to do it…
Let's start with editing our discovery rule and then move on to editing our active agent to autoregister to the proxy.
Discovery rules
Starting with Zabbix discovery rules, let's look at how to make sure we do this from the Zabbix proxy:
- Log in to the CLI of
lar-book-disc-lnx
and edit the/etc/zabbix/ zabbix_agent2.conf
file. Edit the following lines...