manual:config:triggers

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Previous revision
manual:config:triggers [2011/11/08 09:21]
manual:config:triggers [2021/05/13 05:19] (current)
martins-v new trigger syntax (ZBXNEXT-6451)
Line 1: Line 1:
 +===== 3 Triggers =====
 +
 +=== Overview ===
 +
 +Triggers are logical expressions that "​evaluate"​ data gathered by items and represent the current system state. ​
 +
 +While items are used to gather system data, it is highly impractical to follow these data all the time waiting for a condition that is alarming or deserves attention. The job of "​evaluating"​ data can be left to trigger expressions. ​
 +
 +Trigger expressions allow to define a threshold of what state of data is "​acceptable"​. Therefore, should the incoming data surpass the acceptable state, a trigger is "​fired"​ - or changes status to PROBLEM.
 +
 +A trigger may have the following status:
 +
 +^VALUE ​ ^DESCRIPTION^
 +|OK       |This is a normal trigger state. ​ |
 +|PROBLEM ​ |Normally means that something happened. For example, the processor load is too high.  |
 +
 +Trigger status (the expression) is recalculated every time Zabbix server receives a new value that is part of the expression. ​
 +
 +Most trigger functions are evaluated based on [[:​manual/​config/​items/​history_and_trends|history]] data, while some trigger functions for long-term analytics, e.g. **trendavg()**,​ **trendcount()**,​ etc, use trend data.
 +
 +Time-based functions (**nodata()**,​ **date()**, **dayofmonth()**,​ **dayofweek()**,​ **time()**, **now()**) are recalculated every 30 seconds by a Zabbix //history syncer// process. Time-based functions can only be used alongside at least one non-time-based function; in this case the trigger is recalculated when a new value is received **and** every 30 seconds. ​
 +
 +You can [[manual:​config:​triggers:​expression|build trigger expressions]] with different degrees of complexity.