• 幕客老师召集小伙伴
  • 运维高手36项修炼
  • python自动化运维项目实战
  • nginx从入门到实战
  • 阿里云与Centos7实战

zabbix监控系统-配置篇(监控项- action)

zabbix 服务的action支持如下事件:

发器事件 - 触发器状态在OK和PROBLEM之间变化

现事件

动注册时间 - 新的客户端注册进来

内部事件 - item转变为unsupported状态,触发器转变为unknown状态

 一、action执行的条件

action执行需要匹配每一个定义的条件。

Condition type Supported operators Description
Application =
like
not like

执行应用匹配

= - 指定一个应用

like - 包含在应用中的triger所触发的事件

not like - 不包含在应用中的triger所触发的事件

Host group =
<>

匹配主机组

= - 等于
<> -不等于

Template =
<>

指定模版

= - 等于模版中的触发器事件
<> - event does not belong to a trigger inherited from this template.

Host =
<>

指定主机

= - event belongs to this host.
<> - event does not belong to this host.

Tag =
<>
like
not like

利用event tag

= - event has this tag
<> - event does not have this tag
like - event has a tag containing this string
not like - event does not have a tag containing this string

Tag value =
<>
like
not like

指定tag的数值

= - event has this tag and value
<> - event does not have this tag and value
like - event has a tag and value containing these strings
not like - event does not have a tag and value containing these strings

Trigger =
<>
Specify triggers or triggers to exclude.
= - event is generated by this trigger.
<> - event is generated by any other trigger, except this one.
Trigger name like
not like

匹配trigger触发器名字

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 =
<>
>=
<=
根据 trigger severity.
= - equal to trigger severity
<> - not equal to trigger severity
>= - more or equal to trigger severity
<= - less or equal to trigger severity
Time period in
not in

匹配时间格式

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 status in
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.

 

 

zabbix监控系统-配置篇(监控项- action)

Pingbacks已打开。

引用地址

暂无评论

发表评论