ExportXMLWordPrintable

      Steps to reproduce:

      1. Import template ZBX_nested_discovery_template.yaml
      2. Create host: 
        • Host name: ZBX nested discovery
        • Host group: choose any group
        • Link template: ZBX_nested_discovery_z8
      3. Go to Zabbix-server machine commandline and create there file ZBX_nested_discovery.json
      4. 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.

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

      1. 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.
        
      1. Move to Monitoring -> Latest data, select item ZBX master and copy from it history example of output
      2. 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.

        1. ZBX_nested_discovery_preprocessing_test_results.png
          285 kB
          Genadijs Jeniceks
        2. ZBX_nested_discovery_preprocessing_test.png
          231 kB
          Genadijs Jeniceks
        3. ZBX_nested_discovery_result.png
          142 kB
          Genadijs Jeniceks
        4. ZBX_nested_discovery_template_74.yaml
          3 kB
          Genadijs Jeniceks
        5. ZBX_nested_discovery_template.yaml
          3 kB
          Genadijs Jeniceks
        6. ZBX_nested_discovery.json
          5 kB
          Genadijs Jeniceks

            Assignee:
            Zabbix Development Team
            Reporter:
            Genadijs Jeniceks
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: