I tried invoking zabbix/api_jsonrpc.php with the below request body, its throwing 500 internal server error. When I pass limit=1000 as parameter then its working fine.
If there are 15000 results, how can we have the pagination support for items.get method, saying that first send 1000 results, then send next 1000 results. how can we specify the next page details along with limit paramater. In response also I dont see any "nextLink" url to give the url to access the next page results.
Can you please help me with this.
And one more thing if I get internal error while calling api_jsonrpc.php, I dont see any exception in the log saying that they are too many results and causing this exception. which log files do I need to see for these exceptions
{
"jsonrpc": "2.0",
"method": "item.get",
"params": {
"webitems": "true",
"selectHosts": "extend",
"selectInterfaces": "extend",
"selectApplications": "extend",
"sortfield": [
"itemid"
],
"filter": {
"value_type": 3
},
"monitored": "true"
},
"id": "1",
"auth": "authencitation"
}
Tags: api, item, zabbix