Book Image

Zabbix Cookbook

By : Patrik Uytterhoeven, patrik uytterhoeven
Book Image

Zabbix Cookbook

By: Patrik Uytterhoeven, patrik uytterhoeven

Overview of this book

Table of Contents (18 chapters)
Zabbix Cookbook
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Passive agents


In this topic, we will show you how to setup your agent as a passive agent only. We will see how to create a passive item for our agent and have a look at how the communication works with our Zabbix server.

Getting ready

For this recipe to work, you need your Zabbix server and the standard login account admin or another super administration account. We also need a host with the agent installed. This can be on another host or on our Zabbix server. There is no need to configure the host configuration file yet.

How to do it …

  1. The first thing we do is make sure that our agent has the proper configuration setup to work as a passive agent. Make sure that in the zabbix_agentd.conf file the ServerActive option is not set and that the option Server is set and points to the Zabbix server.

  2. Remember that the hostname is only for the active agent, so we don't need to define this parameter.

  3. Restart the Zabbix agent (service zabbix-agent restart or RHEL 7 users run systemctl restart zabbix-agent...