Hi everyone,
I am out of ideas and i would appreciate any kind of help
I want to create a LLD from this below content available at an URL.
1. I created a http agent master item (granit.api.master.item) which is storing this json. This is working correctly.
2. I created a discovery rule (granit.api.dependent.discovery) as a dependent item on the http agent master item (granit.api.master.item) and i created a LLD macro

Macro:

3.
a) I created a test item prototype

and
b) a preprocessing step

Now the problem:
It keeps the bracket and the double quotes and therefore JSONPath is not finding the .status in the json. see the screenshot below
How can i prevent the brackets und quotes from being used by zabbix ?
What am i doing wrong?
Incorrect item prototype:
["granit_check_1"].status
Desired item_prototype:
granit_check_1.status
granit_check_1.metric

Any help or hints appreciated..
I am out of ideas and i would appreciate any kind of help

I want to create a LLD from this below content available at an URL.
1. I created a http agent master item (granit.api.master.item) which is storing this json. This is working correctly.
Code:
[
{
"name": "granit_check_1",
"status": "OK",
"metric": 1,
"metric_array": {
"value1": 1111,
"value2": 1222
}
},
{
"name": "granit_check_2",
"status": "OK",
"metric": 2,
"metric_array": {
"value1": 2222,
"value2": 2111
}
}
]
2. I created a discovery rule (granit.api.dependent.discovery) as a dependent item on the http agent master item (granit.api.master.item) and i created a LLD macro
Macro:
3.
a) I created a test item prototype
and
b) a preprocessing step
Now the problem:
It keeps the bracket and the double quotes and therefore JSONPath is not finding the .status in the json. see the screenshot below
How can i prevent the brackets und quotes from being used by zabbix ?
What am i doing wrong?
Incorrect item prototype:
["granit_check_1"].status
Desired item_prototype:
granit_check_1.status
granit_check_1.metric
Any help or hints appreciated..
Comment