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

Creating graphs


In this recipe, we will show you how to build some nice looking graphs from the data that we have gathered from our items.

Getting ready

For this recipe, we need a Zabbix installation and an agent installed on the Zabbix server or another host that we can use. We also need admin rights in Zabbix to be able to create our graph.

How to do it…

  1. First we need an item. For this we will monitor our CPU load as it always gives a nice graph. Add an item system.cpu.load[percpu,avg1]. If you don't know how to do this, have look at Chapter 4, Passive agents or Active agents.

  2. Next go to Configuration | Hosts, then go to Configuration | Template if you would like to create it in a template.

  3. Click on the Graphs link after your host and click Create graph in the upper right corner.

  4. In the Name box we add a name for our graph, example: CPU load.

  5. We can set the Width and the Height of our graph.

  6. Next we select the Graph type. This can be Normal, Stacked, Pie, or Exploded. Normal is with lines, Stacked...