Hey, i want a Zabbix template that create those items but from a master dependent item please, to get them at the same time

{
    "zabbix_export": {
        "version": "6.0",
        "date": "2024-11-12T12:00:00Z",
        "templates": [
            {
                "uuid": "550e8400e29b41d4a716446655440000",
                "template": "Template ONU Monitoring",
                "name": "Template ONU Monitoring",
                "description": "Template for monitoring ONU devices via HTTP API",
                "groups": [
                    {
                        "name": "Templates/Network devices"
                    }
                ],
                "discovery_rules": [
                    {
                        "uuid": "550e8400e29b41d4a716446655440001",
                        "name": "ONU Discovery",
                        "type": "HTTP_AGENT",
                        "key": "onu.discovery",
                        "delay": "1h",
                        "url": "http://your-api-endpoint/onu-data",
                        "retrieve_mode": "BODY",
                        "request_method": "GET",
                        "preprocessing": [
                            {
                                "type": "JSONPATH",
                                "parameters": ["$.data[*]"]
                            },
                            {
                                "type": "JAVASCRIPT",
                                "parameters": ["var result = JSON.parse(value);\nreturn JSON.stringify({\n    \"data\": result.map(function(onu) {\n        return {\n            \"{#ONU_ID}\": onu.onu_id,\n            \"{#ONU_NAME}\": onu.name\n        };\n    })\n});"]
                            }
                        ],
                        "item_prototypes": [
                            {
                                "uuid": "550e8400e29b41d4a716446655440002",
                                "name": "RX Power ONU - {#ONU_NAME}",
                                "type": "HTTP_AGENT",
                                "key": "onu.rx_power_onu[{#ONU_ID}]",
                                "delay": "5m",
                                "url": "http://your-api-endpoint/onu-data",
                                "retrieve_mode": "BODY",
                                "request_method": "GET",
                                "preprocessing": [
                                    {
                                        "type": "JSONPATH",
                                        "parameters": ["$.data[?(@.onu_id==\"{#ONU_ID}\")].rx_power_onu"]
                                    }
                                ],
                                "value_type": "FLOAT",
                                "units": "dBm",
                                "description": "RX Power level at ONU side for {#ONU_NAME}"
                            },
                            {
                                "uuid": "550e8400e29b41d4a716446655440003",
                                "name": "TX Power ONU - {#ONU_NAME}",
                                "type": "HTTP_AGENT",
                                "key": "onu.tx_power_onu[{#ONU_ID}]",
                                "delay": "5m",
                                "url": "http://your-api-endpoint/onu-data",
                                "retrieve_mode": "BODY",
                                "request_method": "GET",
                                "preprocessing": [
                                    {
                                        "type": "JSONPATH",
                                        "parameters": ["$.data[?(@.onu_id==\"{#ONU_ID}\")].tx_power_onu"]
                                    }
                                ],
                                "value_type": "FLOAT",
                                "units": "dBm",
                                "description": "TX Power level at ONU side for {#ONU_NAME}"
                            },
                            {
                                "uuid": "550e8400e29b41d4a716446655440004",
                                "name": "RX Power OLT - {#ONU_NAME}",
                                "type": "HTTP_AGENT",
                                "key": "onu.rx_power_olt[{#ONU_ID}]",
                                "delay": "5m",
                                "url": "http://your-api-endpoint/onu-data",
                                "retrieve_mode": "BODY",
                                "request_method": "GET",
                                "preprocessing": [
                                    {
                                        "type": "JSONPATH",
                                        "parameters": ["$.data[?(@.onu_id==\"{#ONU_ID}\")].rx_power_olt"]
                                    }
                                ],
                                "value_type": "FLOAT",
                                "units": "dBm",
                                "description": "RX Power level at OLT side for {#ONU_NAME}"
                            }
                        ],
                        "trigger_prototypes": [
                            {
                                "uuid": "550e8400e29b41d4a716446655440005",
                                "name": "ONU {#ONU_NAME} RX Power Critical ({ITEM.LASTVALUE})",
                                "expression": "last(/Template ONU Monitoring/onu.rx_power_onu[{#ONU_ID}])<-28",
                                "priority": "HIGH",
                                "description": "RX Power at ONU side is critically low"
                            },
                            {
                                "uuid": "550e8400e29b41d4a716446655440006",
                                "name": "ONU {#ONU_NAME} RX Power Warning ({ITEM.LASTVALUE})",
                                "expression": "last(/Template ONU Monitoring/onu.rx_power_onu[{#ONU_ID}])<-25",
                                "priority": "WARNING",
                                "description": "RX Power at ONU side is low"
                            },
                            {
                                "uuid": "550e8400e29b41d4a716446655440007",
                                "name": "ONU {#ONU_NAME} TX Power Warning ({ITEM.LASTVALUE})",
                                "expression": "last(/Template ONU Monitoring/onu.tx_power_onu[{#ONU_ID}])<0",
                                "priority": "WARNING",
                                "description": "TX Power at ONU side is low"
                            },
                            {
                                "uuid": "550e8400e29b41d4a716446655440008",
                                "name": "OLT RX Power Warning for {#ONU_NAME} ({ITEM.LASTVALUE})",
                                "expression": "last(/Template ONU Monitoring/onu.rx_power_olt[{#ONU_ID}])<-28",
                                "priority": "WARNING",
                                "description": "RX Power at OLT side is low"
                            }
                        ],
                        "graph_prototypes": [
                            {
                                "uuid": "550e8400e29b41d4a716446655440009",
                                "name": "ONU Power Levels - {#ONU_NAME}",
                                "graph_items": [
                                    {
                                        "color": "199C0D",
                                        "item": {
                                            "host": "Template ONU Monitoring",
                                            "key": "onu.rx_power_onu[{#ONU_ID}]"
                                        }
                                    },
                                    {
                                        "color": "F63100",
                                        "item": {
                                            "host": "Template ONU Monitoring",
                                            "key": "onu.tx_power_onu[{#ONU_ID}]"
                                        }
                                    },
                                    {
                                        "color": "2774A4",
                                        "item": {
                                            "host": "Template ONU Monitoring",
                                            "key": "onu.rx_power_olt[{#ONU_ID}]"
                                        }
                                    }
                                ]
                            }
                        ]
                    }
                ],
                "tags": [
                    {
                        "tag": "Application",
                        "value": "ONU Monitoring"
                    }
                ]
            }
        ]
    }
}