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

The 'Max repetition count' value is not inherited in host created from host prototype

XMLWordPrintable

    • Icon: Problem report Problem report
    • Resolution: Unresolved
    • Icon: Trivial Trivial
    • None
    • None
    • Server (S)
    • None

      If we set no default 'Max repetition count' for snmp interface in host prototype setting, the host created from host prototype template has default Max repetition count = 10.{}

      Steps to reproduce:

      1. Create new host in you setup with zabbix agent interface, don't link any templates to it.

      2. Create 'Test LLD' Discovery rule in this host, which will get 'system.hostname[shorthost]' item from agent.

      3. Add javascript preprocessing step with such code

      var result = [];
      const obj = {
          "host": value
      };
      result.push(obj);
      return JSON.stringify(result);

      3. Add LLD macros

      4. Create Host prototype with snmp interface and non default 'Max repetition count' value, for example 30.

      5. Wait a minute until LLD create new host.

      Result:

      Host is created but 'Max repetition count' = 10.

      Expected:
      Expect 'Max repetition count' = 30 as defined in host prototype settings (step 4).

            zabbix.dev Zabbix Development Team
            ahmax Maksym Troshyn
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: