Zabbix Documentation 3.0

2.23.04.04.2 (current)In development:4.4 (devel)Unsupported:1.82.02.43.23.4

User Tools

Site Tools


manual:config:triggers:trigger

Differences

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

Link to this comparison view

Both sides previous revision Previous revision
manual:config:triggers:trigger [2018/04/21 08:41]
natalja.cernohajeva "Testing expressions" section added with corresponding screenshots
manual:config:triggers:trigger [2018/04/21 12:07] (current)
natalja.cernohajeva "Testing expressions" section added with corresponding screenshots
Line 34: Line 34:
  
 It is possible to test the configured trigger expression as to what the expression result would be depending on the received value. It is possible to test the configured trigger expression as to what the expression result would be depending on the received value.
- 
-Following expression from an official template is taken as an example: 
- 
-  {Template Net Cisco IOS SNMPv2:​sensor.temp.value[ciscoEnvMonTemperatureValue.{#​SNMPINDEX}].avg(5m)}>​{$TEMP_WARN} 
-  or 
-  {Template Net Cisco IOS SNMPv2:​sensor.temp.status[ciscoEnvMonTemperatureState.{#​SNMPINDEX}].last(0)}={$TEMP_WARN_STATUS} 
  
 To test the expression, click on //​Expression constructor//​ under the expression field. To test the expression, click on //​Expression constructor//​ under the expression field.
  
-{{:​manual:​config:​triggers:​expr_constructor_link.png|}}+{{:​manual:​config:​triggers:​expr_constructor_link_new.png|}}
  
 In the Expression constructor,​ all individual expressions are listed. To open the testing window, click on //Test// below the expression list. In the Expression constructor,​ all individual expressions are listed. To open the testing window, click on //Test// below the expression list.
  
-{{:​manual:​config:​triggers:​expr_constructor_test.png|}}+{{:​manual:​config:​triggers:​expr_constructor_test_new.png|}}
  
-In the testing window you can enter sample values ("80, 70, 0, 1" in this example) and then see the expression result, by clicking on the //Test// button.+In the testing window you can enter sample values ("6" in this example) and then see the expression result, by clicking on the //Test// button.
  
-{{:​manual:​config:​triggers:​expression_test.png?600|}}+{{:​manual:​config:​triggers:​expression_test_new.png?600|}}
  
 The result of the individual expressions as well as the whole expression can be seen. The result of the individual expressions as well as the whole expression can be seen.
  
-"​TRUE"​ result means the specified expression is correct. In this particular ​case A, "​80"​ is greater than {$TEMP_WARN} specified ​value, "​70"​ in this example. Respectively,​ "​TRUE"​ result appears.+"​TRUE"​ result means the specified expression is correct. In that case current ​value exceeds the warning value and a Problem has occurred
  
-"​FALSE"​ result means the specified expression is incorrect. ​In this particular case B, {$TEMP_WARN_STATUS},​ "​1"​ in this example, needs to be equal with specified "​0" ​value, ​that is wrong. Respectively"​FALSE"​ result appears. ​     +"​FALSE"​ result means the specified expression is incorrect. ​Warning ​value hasn't been exceededrespectively, Problem has not occurred. ​      ​
-  +
-Chosen Expression type is "​OR"/"​TRUE"​. If at least one of the specified conditions (A or B in this case) is TRUE, overall result will be TRUE as well. That means, current value exceeds the warning value and a Problem has occurred. ​    ​+