Ad Widget

Collapse

Retrieve items of type SSH via zabbix api?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • jmusbach
    Member
    • Sep 2013
    • 37

    #1

    Retrieve items of type SSH via zabbix api?

    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.
  • MaxM
    Member
    • Sep 2011
    • 42

    #2
    {
    "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

    • jmusbach
      Member
      • Sep 2013
      • 37

      #3
      Perfect thanks.

      Comment

      Working...