Hi Guys
I have a bit of a strange problem with the JSON-RPC 2.0 API - I have managed to get single requests working fine but my problem comes when making concurrent requests.
Below is an example of a multiple request I am trying to make:
However I am getting the error "JSON-rpc version is not specified" as the response.
Can anyone confirm that they can send multiple requests at once? My zabbix version is 2.4.0.
Any help much appreciated
I have a bit of a strange problem with the JSON-RPC 2.0 API - I have managed to get single requests working fine but my problem comes when making concurrent requests.
Below is an example of a multiple request I am trying to make:
PHP Code:
[
{
"jsonrpc": "2.0",
"method": "item.get",
"params": {
"output": "extend",
"hostids": "10109",
"search": {
"key_": "proc.num[apache2,www-data]"
}
},
"id": 2,
"auth": "xxxxxxxxxxxxxxxxxx"
},
{
"jsonrpc": "2.0",
"method": "item.get",
"params": {
"output": "extend",
"hostids": "10109",
"search": {
"key_": "vfs.fs.size[/,used]"
}
},
"id": 3,
"auth": "xxxxxxxxxxxxxxxxx"
}
]
Can anyone confirm that they can send multiple requests at once? My zabbix version is 2.4.0.
Any help much appreciated
Comment