-
Type:
Problem report
-
Resolution: Unresolved
-
Priority:
Major
-
None
-
Affects Version/s: 7.4.15, 8.0.0
-
Component/s: Frontend (F), Server (S)
Steps to reproduce:
- Import template ZBX_nested_discovery_template.yaml

- Create host:
- Host name: ZBX nested discovery
- Host group: choose any group
- Link template: ZBX_nested_discovery_z8
- Go to Zabbix-server machine commandline and create there file ZBX_nested_discovery.json

- From CLI run command:
zabbix_sender -z 127.0.0.1 -p 10051 -s "ZBX nested discovery" -k "zbx.master" -o "$(cat ZBX_nested_discovery.json)"
Run this command twice - first should create all items and nested discoveries, the second will populate them with values.
- Move to Data collection -> Hosts, choose ZBX nested discovery host and select Discovery section. There should be 4 discovery rules. Three of them created from nested LLD. All three should be Not Supported with error:
cannot extract value from json by path "$.[?(@.['vrf-router-id'] == '12.12.12.12')].TABLE_af.ROW_af[*].TABLE_saf.ROW_saf.TABLE_neighbor.ROW_neighbor": no data matches the specified path

- As follows from LLD documentation:
If you select "Nested" as Type in the opened discovery prototype form, then discovery rules (from the discovery prototype) are generated based on a JSON object from the same JSON value as the parent discovery rule.
- Move to Monitoring -> Latest data, select item ZBX master and copy from it history example of output
- Move back to Data collection -> Hosts, to Discovery section, select some discovery Preprocessing tab, set Test all steps:

Result:
In manual testing mode Nested LLD resolved to list of JSON objects that could be discovered with nested LLD macro. In automatic mode nested LLD can`t resolve the preprocessing.
Expected:
Nested LLD Preprocessing will resolved to list of JSON objects that could be discovered with the rule.