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

Host level context macro not resolved correctly in name/description fields problem view

XMLWordPrintable

      Where a context macro is used, the trigger name and description fields do not resolve the macro correctly.

      --Trigger--
      Name: Filesystem {#FSNAME} is >{$WARNING_VOLUME_USAGE:"{#FSNAME}"} full: {ITEM.LASTVALUE}
      Expression: {myhost.example.com:netapp.dfPerCentKBytesCapacity[{#FSNAME}].last()}>={$WARNING_VOLUME_USAGE:"{#FSNAME}"}
      
      Description:
      One: {$WARNING_VOLUME_USAGE:{#FSNAME}}
      Two: {$WARNING_VOLUME_USAGE:{"#FSNAME"}}
      
      --Host--
      Macros:
      {$WARNING_VOLUME_USAGE} = 87
      {$WARNING_VOLUME_USAGE:/vol/KVM01} = 70
      

      The item returns a value of 83, and the trigger alerts - but the name in the alert is:

      Filesystem /vol/KVM01 is >87} full: 83 %
      

      So clearly the macro override is being respected in the trigger expression, but just not resolving correctly in the name. The description also has this issue, and displays as:

      One: 87}
      Two: 87
      

      Also tried using the context macro without quotes in the trigger name, but didn't resolve that either.

        1. Screen Shot 2017-01-17 at 8.28.28 PM.png
          64 kB
          David Angelovich
        2. Screen Shot 2017-01-17 at 8.28.43 PM.png
          243 kB
          David Angelovich
        3. Screen Shot 2017-01-18 at 5.39.00 AM.png
          206 kB
          David Angelovich
        4. Screenshot from 2017-01-11 16-57-45.png
          18 kB
          David Angelovich
        5. Screenshot from 2017-01-11 16-58-42.png
          78 kB
          David Angelovich
        6. Screenshot from 2017-01-11 16-59-02.png
          36 kB
          David Angelovich

            Unassigned Unassigned
            dangelovich David Angelovich
            Votes:
            1 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated:
              Resolved: