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

Autoinventory


Besides monitoring values to see if something goes wrong, Zabbix has another nice feature. It is possible to gather certain information of your hardware and use this to create some inventory in Zabbix. Knowing we have an API in Zabbix, it can be used to populate our Configuration Management Database (CMDB) later.

Getting ready

Make sure you have your Zabbix server up and running with super administrator rights. We can do this recipe with only the Zabbix server added as host; having said that, it won't hurt if you add a extra host to monitor the inventory from this machine.

How to do it ...

  1. The first thing we do is go to Configuration | Host then click on the host that we want to configure.

  2. Now click the Host Inventory button and select Automatic from the menu and press Update.

  3. Now go to the menu to add a new item on the host or create a new template and create a new item in the template.

  4. Give our item Name the name Mac Address as we are going to get the MAC address from our host.

  5. As...