Hi,
I can't find format of json to send info into zabbix trapper (Zabbix 3.0).
I tried like this:
"{"request": "sender data","data": [{"host": "LLD_TEST","key": "DISCOVERY_KEY","value": [{"{#ITEM}": "200"}, {"{#ITEM}": "100"}]}]}"
It leads to error with { ""data" -> "JSON-rpc version is not specified."}
For JSON-rpc, it needs know methods
like this "host.get" and header like this :
{"id":3,"jsonrpc":"2.0","method":"host.get","param s":{"filter":{"host":["BaseStation2"]}}}
But documentation doesn't contain info about send JSON. Only link to zabbix_sender.
I can't find format of json to send info into zabbix trapper (Zabbix 3.0).
I tried like this:
"{"request": "sender data","data": [{"host": "LLD_TEST","key": "DISCOVERY_KEY","value": [{"{#ITEM}": "200"}, {"{#ITEM}": "100"}]}]}"
It leads to error with { ""data" -> "JSON-rpc version is not specified."}
For JSON-rpc, it needs know methods
like this "host.get" and header like this :
{"id":3,"jsonrpc":"2.0","method":"host.get","param s":{"filter":{"host":["BaseStation2"]}}}
But documentation doesn't contain info about send JSON. Only link to zabbix_sender.
Comment