-
Problem report
-
Resolution: Unresolved
-
Trivial
-
None
-
7.4.0rc2
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:
- Create a host
- Create an LLD rule under this host with type = Zabbix trapper
- Create an LLD prototype for this LLD rule with key = "key{#NAME}"
- Create a host prototype under this LLD prototype with name "Host prototype {#NAME}"
- Send the following value to the rapper LLD rule:
{"data":[{"{#NAME}":"HOST 1"}, {"{#NAME}":"HOST 2"}]}
- Open the list of discovery rules for the host created in step 1
- 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.