Zabbix Documentation 4.2

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
Next revision
Previous revision
manual:config:triggers:trigger [2018/09/04 08:07]
martins-v updating link target
manual:config:triggers:trigger [2019/02/14 13:39] (current)
martins-v more on viewing inherited template tags in trigger config
Line 14: Line 14:
 The **Trigger** tab contains all the essential trigger attributes. ​ The **Trigger** tab contains all the essential trigger attributes. ​
  
-{{trigger_a.png|}}+{{trigger_a0.png|}}
  
 All mandatory input fields are marked with a red asterisk. ​ All mandatory input fields are marked with a red asterisk. ​
Line 21: Line 21:
 |//​Name// ​  ​|Trigger name.\\ The name may contain the supported [[manual:​appendix:​macros:​supported_by_location|macros]]:​ ''​{HOST.HOST},​ {HOST.NAME},​ {HOST.CONN},​ {HOST.DNS}, {HOST.IP}, {ITEM.VALUE},​ {ITEM.LASTVALUE}''​ and ''​{$MACRO}''​.\\ **$1, $2...$9** macros can be used to refer to the first, second...ninth constant of the expression.\\ //Note//: $1-$9 macros will resolve correctly if referring to constants in relatively simple, straightforward expressions. For example, the name "​Processor load above $1 on {HOST.NAME}"​ will automatically change to "​Processor load above 5 on New host" if the expression is {New host:​system.cpu.load[percpu,​avg1].last()}>​5 ​ | |//​Name// ​  ​|Trigger name.\\ The name may contain the supported [[manual:​appendix:​macros:​supported_by_location|macros]]:​ ''​{HOST.HOST},​ {HOST.NAME},​ {HOST.CONN},​ {HOST.DNS}, {HOST.IP}, {ITEM.VALUE},​ {ITEM.LASTVALUE}''​ and ''​{$MACRO}''​.\\ **$1, $2...$9** macros can be used to refer to the first, second...ninth constant of the expression.\\ //Note//: $1-$9 macros will resolve correctly if referring to constants in relatively simple, straightforward expressions. For example, the name "​Processor load above $1 on {HOST.NAME}"​ will automatically change to "​Processor load above 5 on New host" if the expression is {New host:​system.cpu.load[percpu,​avg1].last()}>​5 ​ |
 |//​Severity// ​ |Set the required trigger [[severity|severity]] by clicking the buttons. ​ | |//​Severity// ​ |Set the required trigger [[severity|severity]] by clicking the buttons. ​ |
-|//Problem expression//   ​|Logical [[expression|expression]] used to define the conditions of a problem. ​ |+|//Expression//   ​|Logical [[expression|expression]] used to define the conditions of a problem.\\ A problem is created after all the conditions included in the expression are met, i.e. the expression evaluates to TRUE. The problem will be resolved as soon as the expression evaluates to FALSE, unless additional recovery conditions are specified in //Recovery expression//​.  |
 |//OK event generation// ​  |OK event generation options:\\ **Expression** - OK events are generated based on the same expression as problem events;\\ **Recovery expression** - OK events are generated if the problem expression evaluates to FALSE and the recovery expression evaluates to TRUE;\\ **None** - in this case the trigger will never return to an OK state on its own.\\ Supported since Zabbix 3.2.0. ​ | |//OK event generation// ​  |OK event generation options:\\ **Expression** - OK events are generated based on the same expression as problem events;\\ **Recovery expression** - OK events are generated if the problem expression evaluates to FALSE and the recovery expression evaluates to TRUE;\\ **None** - in this case the trigger will never return to an OK state on its own.\\ Supported since Zabbix 3.2.0. ​ |
-|//Recovery expression// ​  ​|Logical [[expression|expression]] ​used to define the conditions ​when the problem is resolved.\\ Recovery expression is evaluated only after the problem ​expression ​evaluates to FALSE. It is not possible to resolve a problem by recovery expression if the problem ​condition ​still persists.\\ This field is optional and only available if '​Recovery expression'​ is selected for //OK event generation//​.\\ Supported since Zabbix 3.2.0. ​ |+|//Recovery expression// ​  ​|Logical [[expression|expression]] ​(optional) defining additional ​conditions ​that have to be met before ​the problem is resolved, after the original problem expression has already been evaluated as FALSE.\\ Recovery expression is useful for trigger [[:​manual/​config/​triggers/​expression#​hysteresis|hysteresis]]. It is **not** possible to resolve a problem by recovery expression ​alone if the problem ​expression is still TRUE.\\ This field is only available if '​Recovery expression'​ is selected for //OK event generation//​.\\ Supported since Zabbix 3.2.0. ​ |
 |//PROBLEM event generation mode// ​  |Mode for generating problem events:\\ **Single** - a single event is generated when a trigger goes into the '​Problem'​ state for the first time;\\ **Multiple** - an event is generated upon //every// '​Problem'​ evaluation of the trigger. ​ | |//PROBLEM event generation mode// ​  |Mode for generating problem events:\\ **Single** - a single event is generated when a trigger goes into the '​Problem'​ state for the first time;\\ **Multiple** - an event is generated upon //every// '​Problem'​ evaluation of the trigger. ​ |
 |//OK event closes// ​ |Select if OK event closes:\\ **All problems** - all problems of this trigger\\ **All problems if tag values match** - only those trigger problems with matching event tag values\\ Supported since Zabbix 3.2.0. ​ | |//OK event closes// ​ |Select if OK event closes:\\ **All problems** - all problems of this trigger\\ **All problems if tag values match** - only those trigger problems with matching event tag values\\ Supported since Zabbix 3.2.0. ​ |
 |//Tag for matching// ​ |Enter event tag name to use for event correlation.\\ This field is displayed if 'All problems if tag values match' is selected for the //OK event closes// property and is mandatory in this case.\\ Supported since Zabbix 3.2.0. ​ | |//Tag for matching// ​ |Enter event tag name to use for event correlation.\\ This field is displayed if 'All problems if tag values match' is selected for the //OK event closes// property and is mandatory in this case.\\ Supported since Zabbix 3.2.0. ​ |
-|//​Tags// ​ |Set custom tags to mark trigger events.\\ [[:​manual/​config/​event_correlation/​trigger/​event_tags|Event tags]] can be used for event correlation,​ in action conditions and will also be seen in //​Monitoring//​ -> //​Problems//​ or the //​Problems//​ widget.\\ Tags are a pair of tag name and value. You can use only the name or pair it with a value.\\ User macros, user macro context, low-level discovery macros and macro [[:​manual/​config/​macros/​macro_functions|functions]] with ''<​nowiki>​{{ITEM.VALUE}}</​nowiki>'',​ ''<​nowiki>​{{ITEM.LASTVALUE}}</​nowiki>''​ and low-level discovery macros are supported in event tags. Low-level discovery macros can be used inside macro context.\\ If the total length of expanded value exceeds 255, it will be cut to 255 characters.\\ See all [[:​manual/​config/​event_correlation/​trigger/​event_tags#​macro_support|macros]] supported for event tags.\\ Supported since Zabbix 3.2.0. ​ | 
 |//Allow manual close// ​ |Check to allow [[:​manual/​config/​events/​manual_close|manual closing]] of problem events generated by this trigger. Manual closing is possible when acknowledging problem events.\\ Supported since Zabbix 3.2.0. ​ | |//Allow manual close// ​ |Check to allow [[:​manual/​config/​events/​manual_close|manual closing]] of problem events generated by this trigger. Manual closing is possible when acknowledging problem events.\\ Supported since Zabbix 3.2.0. ​ |
 |//​URL// ​  |If not empty, the URL entered here is available as a link in several frontend locations, e.g. when clicking on the problem name in //​Monitoring -> Problems// (//URL// option in the //Trigger// menu) and //​Problems//​ dashboard widget.\\ Supported macros: {ITEM.VALUE},​ {ITEM.LASTVALUE},​ {TRIGGER.ID},​ several [[:​manual/​appendix/​macros/​supported_by_location|{HOST.*}]] macros, user macros. ​ | |//​URL// ​  |If not empty, the URL entered here is available as a link in several frontend locations, e.g. when clicking on the problem name in //​Monitoring -> Problems// (//URL// option in the //Trigger// menu) and //​Problems//​ dashboard widget.\\ Supported macros: {ITEM.VALUE},​ {ITEM.LASTVALUE},​ {TRIGGER.ID},​ several [[:​manual/​appendix/​macros/​supported_by_location|{HOST.*}]] macros, user macros. ​ |
 |//​Description// ​  |Text field used to provide more information about this trigger. May contain instructions for fixing specific problem, contact detail of responsible staff, etc.\\ //Starting with Zabbix 2.2//, the description may contain the same set of macros as trigger name.  | |//​Description// ​  |Text field used to provide more information about this trigger. May contain instructions for fixing specific problem, contact detail of responsible staff, etc.\\ //Starting with Zabbix 2.2//, the description may contain the same set of macros as trigger name.  |
 |//​Enabled// ​  ​|Unchecking this box will disable the trigger if required. ​ | |//​Enabled// ​  ​|Unchecking this box will disable the trigger if required. ​ |
 +
 +The **Tags** tab allows you to define trigger-level [[:​manual/​config/​event_correlation/​trigger/​event_tags|tags]]. All problems of this trigger will be tagged with the values entered here.
 +
 +{{:​manual:​config:​triggers:​trigger_b0.png?​600|}}
 +
 +In addition the //Inherited and trigger tags// option allows to view tags defined on template level, if the trigger comes from that template. If there are multiple templates with the same tag, these tags are displayed once and template names are separated with commas. A trigger does not %%"​%%inherit%%"​%% and display host-level tags.
 +
 +^Parameter^Description^
 +|//​Name/​Value// ​ |Set custom tags to mark trigger events.\\ Tags are a pair of tag name and value. You can use only the name or pair it with a value.\\ User macros, user macro context, low-level discovery macros and macro [[:​manual/​config/​macros/​macro_functions|functions]] with ''<​nowiki>​{{ITEM.VALUE}}</​nowiki>'',​ ''<​nowiki>​{{ITEM.LASTVALUE}}</​nowiki>''​ and low-level discovery macros are supported in event tags. Low-level discovery macros can be used inside macro context.\\ If the total length of expanded value exceeds 255, it will be cut to 255 characters.\\ See all [[:​manual/​config/​event_correlation/​trigger/​event_tags#​macro_support|macros]] supported for event tags.\\ [[:​manual/​config/​event_correlation/​trigger/​event_tags|Event tags]] can be used for event correlation,​ in action conditions and will also be seen in //​Monitoring//​ -> //​Problems//​ or the //​Problems//​ widget.\\ Supported since Zabbix 3.2.0. ​ |
  
 The **Dependencies** tab contains all the [[dependencies|dependencies]] of the trigger. ​ The **Dependencies** tab contains all the [[dependencies|dependencies]] of the trigger. ​