Ad Widget

Collapse

[API] Create Trigger and link it to an host

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Matthieu
    Member
    • Mar 2011
    • 41

    #1

    [API] Create Trigger and link it to an host

    Hi,

    I've an hostgroup with 4 hosts inside it. One of them has only informations about the hostgroup and the 3 others have the datas.

    I create triggers by the API calls and I would link each of them on my first host (without datas).
    I've try to add a parameter "hostid" with the hostid of this host but everytime triggers are not linked to this host.
    Furthermore when I create one trigger (the expression is a sum between an item for each of the three "hosts with datas"), I've three triggers and not only one!? The same trigger linked on each these three hosts...

    It's very strange...


    Someone has an idea?

    Thanks

    Matthieu
  • aib
    Senior Member
    • Jan 2014
    • 1615

    #2
    Well, when I tried to create a trigger, which contains the summ of three Items from three hosts, I got an error from WEB frontend.
    I don't think that it can be done correctly even by using API.

    Did you ever check "Aggregate checks" if it works for you?
    Sincerely yours,
    Aleksey

    Comment

    Working...