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

Incorrect error message shown on the LLD rule list page regarding invalid characters in host prototype name

XMLWordPrintable

      On the Discovery rules list page, the following error is displayed:

      Cannot create host "test {#NAME}": name contains invalid character '{'. 

      However, this error is misleading for the following reasons:

      • The Host name field is correctly set to test {#NAME}{}, which is valid and expected to include an LLD macro;
      • On the Host prototypes tab of the LLD rule, no such error is shown - the configuration is accepted without any issues;
      • If the {{{}}  character is removed from the host name in the host prototype form, a proper validation error appears stating that an LLD macro is required - which is the expected behaviour.

      Steps to reproduce:

      1. Go to the Data Collection -> Hosts -> Zabbix Server ->LLD rule list,
      2. Create new host prototype under inherited LLD rule,
      3. Start Zabbix Server and Agent to collect some data or execute LLD rule,
      4. Observe LLD rule list page.

      Result:

      Expected:
      No error should be shown on the LLD rule list page if the host prototype is correctly configured and uses valid LLD macros.

            zabbix.dev Zabbix Development Team
            dponomarenko Deniss Ponomarenko
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: