News
Seven days of Black Friday madness — great deal from Serverspace!
Serverspace Black Friday
WT
March 14, 2023
Updated June 7, 2023

Creating and configuring triggers in Zabbix

Monitoring Zabbix

Creating triggers

In this guide, we'll walk through the steps to create and customize Zabbix triggers for notifications.

A trigger in Zabbix is a logical expression used to generate alerts and notifications when the data of the item it looks after is trespassing some threshold we specified. After that happens triggers changes its state. The states are:

  • OK — which speaks for itself.
  • Problem — when data goes beyond acceptable values (for example average availability of a host for 2 minutes goes from logical 1 to logical 0, and so we know it’s offline).
  • Unknown — something went wrong and the trigger value cannot be calculated.

Creating triggers

Click on "Configuration" in the top menu. → "Hosts" in the left menu. → host you want to create a trigger for → "Triggers" tab. → "Create trigger" in the top right corner. Fill in the required information, such as the trigger name, expression, and severity level.

trigger3
Triggers tab
trigger1
Trigger configuration window

The “Expression” line works as a logical expression that defines the acceptable threshold of monitored data when incoming data passes it — the trigger changes its condition. Click on the expression constructor. Choose what item it will refer to, the function which describes the condition, and the result of the function which triggers the condition.

For detailed examples you can look into official documentation https://www.zabbix.com/documentation/6.0/en/manual/config/triggers/expression

trigger2
Expression window

Ok event generation — describes when the trigger will change to OK state:

  • The expression works on the expression from the previous line.
  • Recovery expression works when it becomes True and error expression becomes False.
  • If None is chosen trigger won’t go back to normal on its own.

Problem event generation mode allows choosing between generating events on every occasion of the problem or only on the first one.

The next line defines if the OK event closes all problems on this trigger or only one with matching tags.

“Manual closing” allows closing problems of this trigger by hand.

And “Enable” as usual makes this trigger active.

Click on "insert" to create the trigger.

To check a condition of a trigger you can go to configuration → hosts → triggers tab.

Conclusion

We learned an important aspect of monitoring your network infrastructure- to create and customize Zabbix triggers.

Vote:
5 out of 5
Аverage rating : 5
Rated by: 2
1101 CT Amsterdam The Netherlands, Herikerbergweg 292
+31 20 262-58-98
700 300
ITGLOBAL.COM NL
700 300
We use cookies to make your experience on the Serverspace better. By continuing to browse our website, you agree to our
Use of Cookies and Privacy Policy.