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

Incorrect indexed macros description

XMLWordPrintable

    • Icon: Documentation task Documentation task
    • Resolution: Fixed
    • Icon: Trivial Trivial
    • 5.4 (plan)
    • None
    • Documentation (D)
    • None
    • 0.5

      https://www.zabbix.com/documentation/current/manual/appendix/macros/supported_by_location

      {ITEM.VALUE}

       and {ITEM.LASTVALUE} macro description

      The description is wrong, because these macros reference to first, second, third, etc item in a trigger expression.

      This macro may be used with a numeric index e.g. {ITEM.VALUE<1-9>} to point to the first, second, third, etc. host in a trigger expression. See indexed macros.
      

      It is still correct for all  {HOST.*} macros, because they reference a host.

      The INDEXED MACROS section at the bottom of the page is incomplete, it talks only about hosts

      INDEXED MACROS
      The indexed macro syntax of {MACRO<1-9>} is limited to the context of trigger expressions. It can be used to reference hosts in the order in which they appear in the expression. Macros like {HOST.IP1}, {HOST.IP2}, {HOST.IP3} will resolve to the IP of the first, second and third host in the trigger expression (providing the trigger expression contains those hosts).
      

            mgeneralova Marina Generalova
            kaspars.mednis Kaspars Mednis
            Team D
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: