Hello, I'm having the following problem, I'm trying to use the LLD method in zabbix to crawl a value.
I would like to generate the item as follows:
NAME ANY = VALUE (Numeric Type)
But I'm having a question if I'm generating my JSON correctly, because when I play it for Zabbix, it says that my JSON is generating the {# QTD} strong> String , and would like to generate it in type interger . So my doubt is if my JSON is performing the cast to interger correctly?
{
"data":[
{"type": "integer","{#QTD}": 1 },
{"type": "integer","{#QTD}": 5 },
{"type": "integer","{#QTD}": 6 },
{"type": "integer","{#QTD}": 5 },
{"type": "integer","{#QTD}": 7 },
{"type": "integer","{#QTD}": 2 },
{"type": "integer","{#QTD}": 4 },
{"type": "integer","{#QTD}": 4 },
{"type": "integer","{#QTD}": 7 },
{"type": "integer","{#QTD}": 8 }
]
}
Performing test on the jsonlint site it informs that my JSON has no syntax errors.
Error that is occurring:
PS: GET_ALARM_LLD is a Macro that I use to run .sh that creates the indexing of my text output any to the JSON format.