Uploaded image for project: 'ZABBIX BUGS AND ISSUES'
  1. ZABBIX BUGS AND ISSUES
  2. ZBX-12364

LLD-Macro not resolved in Trigger-Function

XMLWordPrintable

    • Icon: Incident report Incident report
    • Resolution: Duplicate
    • Icon: Trivial Trivial
    • None
    • None
    • None
    • Debian 8 Server, Zabbix 3.0.1

      I'm starting using Context-Macros in LLD-Templates.
      When I use the following-Syntax:

      {Alcatel Lucent Router - General:ALUIClagsifLoadIN[{#SNMPINDEX}].count(30m,{$AVG_MAXLOAD_ICUPGRADE:"{#SNMPINDEX}"},gt)}>5
      

      {#SNMPINDEX} will not be resolved within the function:

      {edge01:ALUIClagsifLoadIN[1342177307].count(30m,{$AVG_MAXLOAD_ICUPGRADE:"{#SNMPINDEX}"},gt)}>5 
      

      If I use the same statement outside a function:

      {Alcatel Lucent Router - General:ALUIClagsifLoadIN[{#SNMPINDEX}].max(20h)}>{$AVG_MAXLOAD_ICUPGRADE:"{#SNMPINDEX}"}
      

      it will be resolved correctly:

      {edge01:ALUIClagsifLoadIN[1342177307].max(20h)}>{$AVG_MAXLOAD_ICUPGRADE:"1342177307"}
      

            Unassigned Unassigned
            kschreoder Kay Schroeder
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: