Hello, I am wondering if it's possible to use the zabbix api to retrieve items based on their type (agent, ssh check, etc)? If so can someone please provide an example as to the syntax that could accomplish this kind of query? Thanks.
Ad Widget
Collapse
Retrieve items of type SSH via zabbix api?
Collapse
X
-
{
"jsonrpc": "2.0",
"method": "item.get",
"params": {
"filter": {
"type": "13"
},
},
"auth": "038e1d7b1735c6a5436ee9eae095879e",
"id": 1
}
Using pyzabbix:
zapi.item.get(filter={"type":13})
You can get a list of the different types out of the api info from the item object: https://www.zabbix.com/documentation...ce/item/object
Comment