zabbix--触发器中调用系统内部函数

参数描述
Name触发器名称。
这个名称可能包含支持的macros:{HOST.HOST}, {HOST.NAME}, {HOST.CONN}, {HOST.DNS}, {HOST.IP}, {ITEM.VALUE},{ITEM.LASTVALUE} 和 {$MACRO}
$1, $2…$9宏可以用来指代第一、第二至第九个表达式的常量。
备注:$1-$9如果引用了相对简单的常量或易懂的表达式,宏将会正确解析。例如,如果表达式为{New host:system.cpu.load[percpu,avg1].last()}>5,则名为“Processor load above $1 on {HOST.NAME}“的触发器名称将自动更改为”Processor load above 5 on New host”
Severity通过点击对应的按钮来设置所需的触发器severity
Problem expression用于定义问题条件的逻辑expression
OK event generationOK event generation选项:\\Expression - OK events are generated based on the same expression as problem events;
Recovery expression - OK events are generated if the recovery expression evaluates to TRUE and the problem expression evaluates to FALSE;
None - in this case the trigger will never return to an OK state on its own.
Supported since Zabbix 3.2.0.
Recovery expressionLogical expression used to define the conditions when the problem is resolved.
This field is optional and only available if 'Recovery expression' is selected for OK event generation.
Supported since Zabbix 3.2.0.
Tag for matchingEnter 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.
TagsSet custom tags to mark trigger events.
Event tags can be used for event correlation, in action conditions and will also be seen in Monitoring → Problems.
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 functions{{ITEM.VALUE}.regsub(pattern, output)}, {{ITEM.VALUE}.iregsub(pattern, output)} 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.
Supported since Zabbix 3.2.0.
Allow manual closeCheck to allow manual closing of problem events generated by this trigger. Manual closing is possible when acknowledging problem events.
This field is available if event acknowledgement is activated in Administration → General
Supported since Zabbix 3.2.0.
URL如果此处不为空,则在此处输入的URL可在点击Monitoring → Triggers的trigger name的时候链接于此。
可以在触发器URL字段 - {TRIGGER.ID}, 多个{HOST.*}宏(Zabbix3.0.0以后的版本)和用户宏(Zabbix3.0.0以后的版本)中使用宏。
Description文本字段用来提供更多关于触发器的信息。可能包含修复特定问题的说明、相关负责人的联系方式等。
从Zabbix2.2开始,描述可能包含与触发器名称相同的一组宏。
Enabled如果需要,取消选中此框将禁用触发器。

Dependencies标签页包含触发器的所有dependencies

 

实际案例:

把监控项获取到的值直接打印在触发器名称中。

当触发事件的时候,前台展示的效果为。

 

转载于:https://www.cnblogs.com/QicongLiang/p/10256530.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值