Ad Widget

Collapse

Zabbix API get items from discovery

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • wamsterdam
    Member
    • Apr 2013
    • 34

    #1

    Zabbix API get items from discovery

    Hi,

    I'm trying to retrieve all items for a host which are created by a discovery rule. The templateid field of an item makes it easy to link an item to a template using the templateids parameter in the API, but I cannot figure out how an item is linked to its discovery rule prototype.

    There seems to be two methods to be able to retrieve the discovery rule of an item (selectDiscoveryRule) or to retrieve the prototype of the item (selectItemDiscovery). But to use these methods I first need to retrieve all items for a host (alternatively filtered by key_ contains vfs.fs.discovery) and then filter out the items linked to a specific prototype. I would rather do it the other way around...

    Or am I - again - missing something?

    TIA,
    Wouter
Working...