Projekt

Allgemein

Profil

Zabbix server trigger hysteresis » Historie » Version 1

Jeremias Keihsler, 13.01.2017 18:39

1 1 Jeremias Keihsler
h1. Trigger hysteresis
2
3
if an item flaps around the trigger-value you will have multiple "PROBLEM" -> "OK" -> "PROBLEM" -> "OK". To circumvent this using a hysteresis for the trigger is desireable.
4
5
<pre><code class="bash">
6
({TRIGGER.VALUE}=0 & {Zabbix server:system.W510.sensors.temp.1.last(0)}>85) | ({TRIGGER.VALUE}=1 & {Zabbix server:system.W510.sensors.temp.1.last(0)}>75)
7
</code></pre>
8
9
This trigger will fire as soon as temperature raises above 85 but will stay triggered until the temperature is lower 75.
10
11
@TRIGGER.VALUE@ is a Zabbix-macro. It returns=0 if the current state is @OK@ and returns=1 if the current state is @PROBLEM@.
12
13
see also https://www.zabbix.com/documentation/2.0/manual/config/triggers/expression