Hello Zabbix experts,
I'm trying to get historical disk utilization on my hosts and I crafted the following request (this is after proper authentication):
But Zabbix API doesn't like the parameter "key_" inside my "search" argument.:
Sadly the API 4.4 documentation doesn't provide any examples on how to use the search as opposed to filter by passing multiple itemid's.
Can someone tell me what I'm doing wrong or if there is a better way of doing this? Passing a "key_" argument works fine with the method 'item.get' (I know, different animal).
Thanks,
--Jose
I'm trying to get historical disk utilization on my hosts and I crafted the following request (this is after proper authentication):
Code:
{"jsonrpc": "2.0", "method": "history.get", "params": {"hostids": ["12630"], "output": "extend", "sortfield": "clock", "history": 3, "search": {"key_": "vfs.fs.size[/srv,*]"}, "searchWildcardsEnabled": true, "time_from": 1587562139, "time_till": 1587648539}, "id": "1", "auth": "481cbe460d85a4235a4aa9d69cc9ac9a"})
Code:
Response Body: {
"jsonrpc": "2.0",
"error": {
"code": -32602,
"message": "Invalid params.",
"data": "Invalid parameter \"/search\": unexpected parameter \"key_\"."
},
"id": "1"
}
Sadly the API 4.4 documentation doesn't provide any examples on how to use the search as opposed to filter by passing multiple itemid's.
Can someone tell me what I'm doing wrong or if there is a better way of doing this? Passing a "key_" argument works fine with the method 'item.get' (I know, different animal).
Thanks,
--Jose
Comment