Hi,
I use the HTTP Agent type in my LLD for my firewall template and have a question about the item prototypes.
Currently the LLD requests an API Endpoint which returns a list of ethernet interfaces.
GET /interface/ethernet/
The item prototype for the master item than requests an other endpoint for the specific interface, also I have some dependent items which resolve the need values from the master.
GET /interface/ethernet/{REF}
As you can see both requests return the same values, so the second requests is redundant. Also this produces much more request, because the second one is executed for each interface. Is there any possibility to use the value of the LLD in an item prototype? Which type should I use for this scenario.
Btw. I am using Zabbix 4.4.4.
Best regards
I use the HTTP Agent type in my LLD for my firewall template and have a question about the item prototypes.
Currently the LLD requests an API Endpoint which returns a list of ethernet interfaces.
GET /interface/ethernet/
Code:
[
{
"_locked": "", "_ref": "REF_IntEthWan", "_type": "interface/ethernet", "additional_addresses": [ "REF_ItfSecWan101", "REF_ItfSecWan100", "REF_ItfSecLwl", "REF_ItfSecLwlIp99", "REF_ItfSecLwlIp98" ], "bandwidth": 100000000, "comment": "LWL", "inbandwidth": 0, "itfhw": "REF_ItfEthEth1IntelCorpo", "link": true, "mtu": 1500, "mtu_auto_discovery": true, "name": "Hosting)", "outbandwidth": 0, "primary_address": "REF_ItfPri2121004410", "proxyarp": false, "proxyndp": false, "status": true }, { "_locked": "", "_ref": "REF_IntEthDmz", "_type": "interface/ethernet", "additional_addresses": [], "bandwidth": 0, "comment": "", "inbandwidth": 0, "itfhw": "REF_ItfEthEth2IntelCorpo", "link": true, "mtu": 1500, "mtu_auto_discovery": true, "name": "DMZ", "outbandwidth": 0, "primary_address": "REF_ItfPri1010111124", "proxyarp": false, "proxyndp": false, "status": true } ... ]
GET /interface/ethernet/{REF}
Code:
{
"_locked": "",
"_ref": "REF_IntEthWan",
"_type": "interface/ethernet",
"additional_addresses": [ "REF_ItfSecWan101", "REF_ItfSecWan100", "REF_ItfSecLwl", "REF_ItfSecLwlIp99", "REF_ItfSecLwlIp98" ], "bandwidth": 100000000, "comment": "LWL", "inbandwidth": 0, "itfhw": "REF_ItfEthEth1IntelCorpo", "link": true, "mtu": 1500, "mtu_auto_discovery": true, "name": "Hosting", "outbandwidth": 0, "primary_address": "REF_ItfPri2121004410", "proxyarp": false, "proxyndp": false, "status": true }
Btw. I am using Zabbix 4.4.4.
Best regards
Comment