zoukankan      html  css  js  c++  java
  • 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 generation OK 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 expression Logical 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 matching Enter 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.
    Tags Set 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 close Check 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

    实际案例:

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

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

  • 相关阅读:
    PIC18F2455/2550/4455/4550之通用串行总线USB
    今天,一个新的起点
    WM_COPYDATA消息
    图片浏览(附带样式+效果)
    这条路,走远一点,再远一点
    html之table(10种表格)
    数据导出成Excel
    .net 附件下载
    .net Repeater嵌套的数据绑定问题
    AjaxPro.2.dll的使用方法,以实例讲解。
  • 原文地址:https://www.cnblogs.com/QicongLiang/p/10256530.html
Copyright © 2011-2022 走看看