{HOST.IP} seems not to be resolved correctly when getting items

XMLWordPrintable

    • Type: Problem report
    • Resolution: Fixed
    • Priority: Trivial
    • None
    • Affects Version/s: None
    • Component/s: None
    • None
    • Environment:
      Zabbix LTS v6.0.21
      MySQL v8.0.34
      Apache2 v2.4.52
      Host: Ubuntu Server 22.04 LTS

      Steps to reproduce:

      1. Create an item with 2 interfaces
      2. Create 2 items, one that is retrieved on interface #1, the other item is retrieved from interface #2
      3. The item has to be an HTTP Agent and the item to be obtained has to be referenced using the {HOST.IP} macro
      4. {Host.IP}

        and data retrieved works fine on both interfaces #1,#2 with TEST  button

      5. Then when the device is left to be updated by zabbix, {HOST.IP} is resolved only to interface #1
      6. Using {HOST.IP2} with interface #2 only gives an error

      I will upload images of the item setup for the interface #2 as the #1 works fine always

      Interface #1 has data 1080, interface #2 has data 0080

      Result for interface #2:
      **

      If clicking int est, {HOST.IP} is solved as 192.168.16.16 which is fine, and retrieves the data 0080 which is the correct one

       

      I click in add the item and then once the data is refreshed, it gets the data from 192.168.16.15 (interface #1)

      If i explicitly define the item to be retrieved from the fixed IP. then the result is ok always -> 0080

       

      Here the summary of the data retrieved by {HOST.IP} pointing to the 2nd interface, and pointing the 2nd interface but with the explicit Ip in the http path

       

        1. image-2023-09-11-15-34-39-149.png
          105 kB
          Mauricio Giovagnini
        2. image-2023-09-11-15-34-55-301.png
          44 kB
          Mauricio Giovagnini
        3. image-2023-09-11-15-41-46-271.png
          110 kB
          Mauricio Giovagnini
        4. image-2023-09-11-15-49-54-809.png
          97 kB
          Mauricio Giovagnini

            Assignee:
            Andrei Gushchin (Inactive)
            Reporter:
            Mauricio Giovagnini
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: