zabbix监控中动作的配置是收到报警信息的前提。
可以为三种事件源定义动作
Triggers - when trigger status changes#触发器动作设置是报警信息常用的Discovery - when discovery takes placeAuto registration - when new active agents auto-register
动作的配置步骤:
1.配置-动作-创建新动作
2.动作设置
3.条件设置
计算方式:有三种
AND - all conditions must be met#所有的条件必须满足OR - enough if one condition is met#至少有一个条件满足AND/OR - combination of the two: AND with different condition types and OR with the same condition type, for example:#and和or的配合使用表达Host group = Oracle serversHost group = MySQL serversTrigger name like 'Database is down'Trigger name like 'Database is unavailable'is evaluated as(Host group = Oracle servers or Host group = MySQL servers) and (Trigger name like 'Database is down' or Trigger name like 'Database is unavailable')
触发条件:
(A) 维护状态 不在 "维护"(B) 触发器值 = "问题"#这两个是新建动作时默认的,意思是主机不在维护模式,同时触发器的状态是“问题”
支持的触发条件种类有:
对应的官网解释:
触发器的状态:
动作操作:
属性:
步骤:。。。
操作类型:发送消息和远程指令两种