Ad Widget

Collapse

how to use API to create a trigger and bind it to a host ?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • chice
    Junior Member
    • Nov 2012
    • 1

    #1

    how to use API to create a trigger and bind it to a host ?

    how to use API to create a trigger and bind it to a host ?

    I didn't see any 'hostid' field in the API manual.
  • Pavels
    Member
    • Oct 2011
    • 83

    #2
    Triggers are not linked directly to hosts, they are linked via items contained in the expression. If the expression contains items from multiple hosts, the trigger will belong to multiple hosts.

    A basic example on how to create triggers is available here http://www.zabbix.com/documentation/...trigger/create

    Comment

    Working...