Zabbix Documentation 4.0

3.04.05.0 (current)| In development:5.2 (devel)| Unsupported:1.82.02.22.43.23.44.24.4Guidelines

User Tools

Site Tools


manual:config:notifications:action:conditions

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:notifications:action:conditions [2018/10/19 07:40]
basilgon revert changes (only for 4.2)
manual:config:notifications:action:conditions [2020/05/22 08:21] (current)
martins-v condition matching is case-sensitive (ZBX-17671)
Line 3: Line 3:
 === Overview === === Overview ===
  
-An action is executed only in case an event matches a defined set of conditions. Conditions are set when configuring ​an [[:​manual/​config/​notifications/​action#​configuring_an_action|action]].+It is possible to define that an action is executed only if the event matches a defined set of conditions. Conditions are set when configuring ​the [[:​manual/​config/​notifications/​action#​configuring_an_action|action]]
 + 
 +Condition matching is case-sensitive.
  
 The following conditions can be set for trigger-based actions: The following conditions can be set for trigger-based actions:
Line 15: Line 17:
 |//Tag value//​|equals\\ does not equal\\ contains\\ does not contain ​ |Specify event tag and value combination or tag and value combination to exclude.\\ **equals** - event has this tag and value\\ **does not equal** - event does not have this tag and value\\ **contains** - event has a tag and value containing these strings\\ **does not contain** - event does not have a tag and value containing these strings ​ | |//Tag value//​|equals\\ does not equal\\ contains\\ does not contain ​ |Specify event tag and value combination or tag and value combination to exclude.\\ **equals** - event has this tag and value\\ **does not equal** - event does not have this tag and value\\ **contains** - event has a tag and value containing these strings\\ **does not contain** - event does not have a tag and value containing these strings ​ |
 |//​Trigger//​|equals\\ does not equal|Specify triggers or triggers to exclude.\\ **equals** - event is generated by this trigger.\\ **does not equal** - event is generated by any other trigger, except this one.| |//​Trigger//​|equals\\ does not equal|Specify triggers or triggers to exclude.\\ **equals** - event is generated by this trigger.\\ **does not equal** - event is generated by any other trigger, except this one.|
-|//Trigger name//​|contains\\ does not contain|Specify a string in the trigger name or a string to exclude.\\ **contains** - event is generated by a trigger, containing this string in the name. Case sensitive.\\ **does not contain** - this string cannot be found in the trigger name. Case sensitive.\\ //Note//: Entered value will be compared to trigger name with all macros expanded.|+|//Trigger name//​|contains\\ does not contain|Specify a string in the trigger name or a string to exclude.\\ **contains** - event is generated by a trigger, containing this string in the name.\\ **does not contain** - this string cannot be found in the trigger name.\\ //Note//: Entered value will be compared to trigger name with all macros expanded.|
 |//Trigger severity//​|equals\\ does not equal\\ %%is greater than or equals%%\\ is less than or equals|Specify trigger severity.\\ **equals** - equal to trigger severity\\ **does not equal** - not equal to trigger severity\\ **%%is greater than or equals%%** - more or equal to trigger severity\\ **is less than or equals** - less or equal to trigger severity| |//Trigger severity//​|equals\\ does not equal\\ %%is greater than or equals%%\\ is less than or equals|Specify trigger severity.\\ **equals** - equal to trigger severity\\ **does not equal** - not equal to trigger severity\\ **%%is greater than or equals%%** - more or equal to trigger severity\\ **is less than or equals** - less or equal to trigger severity|
 |//Time period//​|in\\ not in|Specify a time period or a time period to exclude.\\ **in** - event time is within the time period.\\ **not in** - event time is not within the time period.\\ See the [[manual:​appendix:​time_period|time period specification]] page for description of the format.\\ [[:​manual/​config/​macros/​usermacros|User macros]] are supported, since Zabbix 3.4.0. ​ | |//Time period//​|in\\ not in|Specify a time period or a time period to exclude.\\ **in** - event time is within the time period.\\ **not in** - event time is not within the time period.\\ See the [[manual:​appendix:​time_period|time period specification]] page for description of the format.\\ [[:​manual/​config/​macros/​usermacros|User macros]] are supported, since Zabbix 3.4.0. ​ |
Line 31: Line 33:
 |//​Discovery status//​|equals|**Up** - matches 'Host Up' and '​Service Up' events\\ **Down** - matches 'Host Down' and '​Service Down' events\\ **Discovered** - matches 'Host Discovered'​ and '​Service Discovered'​ events\\ **Lost** - matches 'Host Lost' and '​Service Lost' events| |//​Discovery status//​|equals|**Up** - matches 'Host Up' and '​Service Up' events\\ **Down** - matches 'Host Down' and '​Service Down' events\\ **Discovered** - matches 'Host Discovered'​ and '​Service Discovered'​ events\\ **Lost** - matches 'Host Lost' and '​Service Lost' events|
 |//​Uptime/​Downtime//​|is greater than or equals\\ is less than or equals|Uptime for 'Host Up' and '​Service Up' events. Downtime for 'Host Down' and '​Service Down' events.\\ **is greater than or equals** - is more or equal to. Parameter is given in seconds.\\ **is less than or equals** - is less or equal to. Parameter is given in seconds.| |//​Uptime/​Downtime//​|is greater than or equals\\ is less than or equals|Uptime for 'Host Up' and '​Service Up' events. Downtime for 'Host Down' and '​Service Down' events.\\ **is greater than or equals** - is more or equal to. Parameter is given in seconds.\\ **is less than or equals** - is less or equal to. Parameter is given in seconds.|
-|//Received value//​|equals\\ does not equal\\ is greater than or equals\\ is less than or equals\\ contains\\ does not contain|Specify the value received from an agent (Zabbix, SNMP) check in a discovery rule. Case sensitive string ​comparison. If several Zabbix agent or SNMP checks are configured for a rule, received values for each of them are checked (each check generates a new event which is matched against all conditions).\\ **equals** ​ - equal to the value.\\ **does not equal** ​ - not equal to the value.\\ **is greater than or equals** - more or equal to the value.\\ **is less than or equals** - less or equal to the value.\\ **contains** - contains the substring. Parameter is given as a string.\\ **does not contain** - does not contain the substring. Parameter is given as a string.|+|//Received value//​|equals\\ does not equal\\ is greater than or equals\\ is less than or equals\\ contains\\ does not contain|Specify the value received from an agent (Zabbix, SNMP) check in a discovery rule. String ​comparison. If several Zabbix agent or SNMP checks are configured for a rule, received values for each of them are checked (each check generates a new event which is matched against all conditions).\\ **equals** ​ - equal to the value.\\ **does not equal** ​ - not equal to the value.\\ **is greater than or equals** - more or equal to the value.\\ **is less than or equals** - less or equal to the value.\\ **contains** - contains the substring. Parameter is given as a string.\\ **does not contain** - does not contain the substring. Parameter is given as a string.|
 |//​Proxy//​|equals\\ does not equal|Specify a proxy or a proxy to exclude.\\ **equals** - using this proxy.\\ **does not equal** - using any other proxy except this one.| |//​Proxy//​|equals\\ does not equal|Specify a proxy or a proxy to exclude.\\ **equals** - using this proxy.\\ **does not equal** - using any other proxy except this one.|