On a template, I created a Master Item which pulls a JSON via HTTP with the correct format ("data" array and so on), then I have a LLD rule as a dependent item with 2 LLD macros that extract {#PARSER_SITE} and {#PARSER_TYPE} (see below) then I have an Item Prototype that uses "parser[{#PARSER_TYPE},{#PARSER_SITE}]" as the item key. For some unknown reason, Zabbix complains that the items key already exists. But why?? I just have a single host and I already tried to unlink & clear the template on which I have the LLD.
As you can see from the JSON, there are no two identical set of keys when using "site" and "type" (MACRO #PARSER_TYPE #PARSER_SITE)
Here is the JSON the Master Item is getting:
LLD MACROS:

ITEM PROTOTYPE

ERROR

Any idea?
As you can see from the JSON, there are no two identical set of keys when using "site" and "type" (MACRO #PARSER_TYPE #PARSER_SITE)
Here is the JSON the Master Item is getting:
Code:
{
"data" : [
{
"site": "aaa.com",
"delta": 223,
"type": "sentinel1"
},
{
"site": "bbb.com",
"delta": 34,
"type": "sentinel1"
},
{
"site": "ccc.com",
"delta": 22,
"type": "sentinel1"
},
{
"site": "ddd.com",
"delta": 55,
"type": "sentinel1"
},
{
"site": "aaa.com",
"delta": 66,
"type": "sentinel2"
},
{
"site": "bbb.com",
"delta": 6,
"type": "sentinel2"
},
{
"site": "ccc.com",
"delta": 0,
"type": "sentinel2"
},
{
"site": "ddd.com",
"delta": 33,
"type": "sentinel2"
}
]
}
ITEM PROTOTYPE
ERROR
Any idea?


Comment