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

Macro in HTTP LLD discovery is not used

XMLWordPrintable

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

      Steps to reproduce:

      1. Create a template
      2. Create a discovery rule
      3. Use type HTTP agent, in the URL use {HOST.IP1}, for example https://\{HOST.IP1}/api
      4. Assign this template to a host
      5. Execute the discovery rule

       

      Result:

      Discovery fails with message "cannot resolve {HOST.IP1}"

      Expected:

      No error.

      Workaround is to use a macro in the host with value the IP address. But this implies entering the IP address twice (in the host, and in the macro). It also implies that network discovery cannot be used, because it is not possible to create a host macro during this process.

      I would expect that the IP address of a host can be used in the discovery rule for that host?

       

            mgeneralova Marina Generalova (Inactive)
            bartheerman Bart Heerman
            Team D
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: