码迷,mamicode.com
首页 > 其他好文 > 详细

触发器条件详解

时间:2015-01-17 06:37:44      阅读:194      评论:0      收藏:0      [点我收藏+]

标签:following   specified   linked   触发器   

技术分享

The following conditions can be set for trigger-based actions:

Condition typeSupported operatorsDescription
Application=
like
not like
Specify an application or an application to exclude.
= - event belongs to a trigger of the item that is linked to the specified application.
like - event belongs to a trigger of the item that is linked to an application containing the string.
not like - event belongs to a trigger of the item that is linked to an application not containing the string.
Host group=
<>
Specify host groups or host groups to exclude.
= - event belongs to this host group.
<> - event does not belong to this host group.
Template=
<>
Specify templates or templates to exclude.
= - event belongs to a trigger inherited from this template.
<> - event does not belong to a trigger inherited from this template.
Host=
<>
Specify hosts or hosts to exclude.
= - event belongs to this host.
<> - event does not belong to this host.
Trigger=
<>
Specify triggers or triggers to exclude.
= - event is generated by this trigger.
<> - event is generated by any other trigger, except this one.
Trigger namelike
not like
Specify a string in the trigger name or a string to exclude.
like - event is generated by a trigger, containing this string in the name. Case sensitive.
not like - 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 severity=
<>
>=
<=
Specify trigger severity.
= - equal to trigger severity
<> - not equal to trigger severity
>= - more or equal to trigger severity
<= - less or equal to trigger severity
Trigger value=Specify a trigger value.
=  - equal to trigger value (OK or PROBLEM)
Time periodin
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 Time period specification page for description of the format.
Maintenance statusin
not in
Specify a host in maintenance or not in maintenance.
in - host is in maintenance mode.
not in - host is not in maintenance mode.
Note: If several hosts are involved in the trigger expression, the condition matches if at least one of the hosts is/is not in maintenance mode.

Trigger value:

  • if a trigger changes status from OK to PROBLEM, trigger value is PROBLEM

  • if a trigger changes status from PROBLEM to OK, trigger value is OK

tips:

    When a new action for triggers is created, it gets two automatic conditions (both can be removed by the user):

  • “Trigger value = PROBLEM” - so that only problem notifications are sent. This means that if you configure an action without setting any more specific conditions, messages will be sent for all problems. This makes the recovery message checkbox operate in a more intuitive way.

  • “Maintenance status = not in maintenance” - so that notifications are not sent for hosts in maintenance.(因为该主机不在维护状态,所以不会发送通知主机的维护)


    

本文出自 “Linux革命” 博客,请务必保留此出处http://kaibinyuan.blog.51cto.com/7304008/1604965

触发器条件详解

标签:following   specified   linked   触发器   

原文地址:http://kaibinyuan.blog.51cto.com/7304008/1604965

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!