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.
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.
1
and 0
and press the Test button to check the outcome. If everything was created fine then 1 should return us the status True and 0 False.With the expression constructor, it is easy to build more complex constructions but also to test our expressions. By faking a positive or a negative outcome of the input we can see what the outcome will be for our trigger. Zabbix will show us True or False to let us know what the output will be. This way, it is possible to test the triggers that we have build before putting them in production without knowing if they will work or not.
We have seen in this chapter that the severity can be chosen for each trigger that we build. However, it is possible to rename them and to change the colors per severity. The GUI elements can be configured in Administration | General | Trigger severities. Users can also set audio alerts. Remember this was explained in Chapter 2, Exploring the frontend.