[ZBX-26225] The 'Max repetition count' value is not inherited in host created from host prototype Created: 2025 Mar 26  Updated: 2025 Mar 27

Status: Confirmed
Project: ZABBIX BUGS AND ISSUES
Component/s: Server (S)
Affects Version/s: None
Fix Version/s: None

Type: Problem report Priority: Trivial
Reporter: Maksym Troshyn Assignee: Zabbix Development Team
Resolution: Unresolved Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Attachments: PNG File Снимок экрана 2025-03-26 в 11.31.58.png     PNG File Снимок экрана 2025-03-26 в 11.34.22.png     PNG File Снимок экрана 2025-03-26 в 11.34.38.png     PNG File Снимок экрана 2025-03-26 в 11.34.47.png     PNG File Снимок экрана 2025-03-26 в 11.35.24.png     PNG File Снимок экрана 2025-03-26 в 11.36.07.png    

 Description   

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).


Generated at Sat Apr 05 10:40:47 EEST 2025 using Jira 9.12.4#9120004-sha1:625303b708afdb767e17cb2838290c41888e9ff0.