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

Displaying macro context in graphs is wrong, only one representation works well.

XMLWordPrintable

    • Icon: Incident report Incident report
    • Resolution: Duplicate
    • Icon: Minor Minor
    • None
    • 3.2.3
    • Frontend (F)

      When I configure macro context in template for disk ussage in trigger prototype like:

      {Template OS Windows:vfs.fs.size[{#FSNAME},pused].last(0)}>{$LIMIT_DISK_PFILLED_HIGH:"{#FSNAME}"}
      

      and define macro on template level like:
      {$LIMIT_DISK_PFILLED_HIGH} = 95
      It works well, exactly as supposed. If I redefine macro at host level for one of disk drive like:
      {$LIMIT_DISK_PFILLED_HIGH:C:} = 97
      Graph is displayed as supposed. - picture C_OK.png

      But if I use more macro contexts at Host level like:
      {$LIMIT_DISK_PFILLED_HIGH:E:} = 98
      {$LIMIT_DISK_PFILLED_HIGH:C:} = 97
      Graph for Disk C: is with bad trigger value and OK for Disk E.

      • pictures C_BAD1png,E_OK.png

      If I add macro for disk F:
      {$LIMIT_DISK_PFILLED_HIGH:F:} = 99
      then Graphs for disk C: and E: are with bad trigger value.

      • picture E_BAD.png

      It looks like evaluation of trigger values in graphs with macro context works only for the last one macro context. The others are in default macro level without context. But as I wrote before, trigger evaluation of macro context works well.

      Alois Zadrazžil

        1. E_OK.PNG
          E_OK.PNG
          29 kB
        2. E_BAD.PNG
          E_BAD.PNG
          29 kB
        3. C_OK.PNG
          C_OK.PNG
          29 kB
        4. C_BAD1.PNG
          C_BAD1.PNG
          30 kB

            Unassigned Unassigned
            alois.zadrazil Alois Zadrazil
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: