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

Testing our trigger expressions


We have seen so far that we can build triggers by hand and by selecting triggers from a list. What we have not seen yet is a way to test our triggers before throwing everything in production. In this recipe, we will show you how to test the triggers you have just created.

Getting ready

For this recipe, we will need as always our Zabbix server properly set up with a super administrator account. You should also be familiar with creating items and triggers. In this recipe we will make use again of the ping item that we have created in our recipe, Creating triggers.

How to do it ...

  1. Go back to the trigger that we have created for our item that was checking the availability of our host by making use of ping.

  2. Edit the trigger that we have created in our recipe, Creating triggers:

  3. Click on Expression constructor; you will now see a new box with our expression.

  4. At the left bottom of the box there is a small button named Test. Click on it and a new window will popup:

  5. As you...