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

It is possible to discover a host prototype that has no LLD macros in its name through nested LLD

XMLWordPrintable

      Problem description: in case if the same LLD macro is used to discover an LLD rule from an LLD prototype and to discover a host prototype that belongs to this LLD prototype, and the name of the host prototype does not use any other LLD macros, then the discovered host prototype under the discovered LLD rule will not have any LLD macros in its name.

      This is against the current validation rules, at it is not allowed to create host prototypes without LLD macros in its name. Furthermore, such host prototype is useless, as it will never discover any host.

      Steps to reproduce:

      1. Create a host
      2. Create an LLD rule under this host with type = Zabbix trapper
      3. Create an LLD prototype for this LLD rule with key = "key{#NAME}"
      4. Create a host prototype under this LLD prototype with name "Host prototype {#NAME}"
      5. Send the following value to the rapper LLD rule:
        {"data":[{"{#NAME}":"HOST 1"}, {"{#NAME}":"HOST 2"}]}
        
      6. Open the list of discovery rules for the host created in step 1
      7. Open the list of host prototypes for any of the two discovered LLD rules

      Result: the host prototype does not have any LLD rules in its name:

      Expected: it should not be possible to create a host prototype with an LLD rule in its name, since such host prototype is useless and will never discover any hosts.

            zabbix.dev Zabbix Development Team
            solonkins Sergejs Olonkins
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: