Ad Widget

Collapse

zabbix API map.update - triggers to links. How to?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • v.goncharov
    Member
    • Mar 2013
    • 58

    #1

    zabbix API map.update - triggers to links. How to?

    I have some network map. Elements - hosts. And I want to add triggers on links between elements by API.
    But I can't find any method in documentation.

    I add trigger to link manually, and then make map.get.

    I received:
    {
    "linkid": "996",
    "sysmapid": "4",
    "selementid1": "328",
    "selementid2": "322",
    "drawtype": "0",
    "color": "81C784",
    "label": "some label",
    "linktriggers": [
    {
    "linktriggerid": "8",
    "linkid": "996",
    "triggerid": "25229",
    "drawtype": "0",
    "color": "DD0000"
    },
    {
    "linktriggerid": "9",
    "linkid": "996",
    "triggerid": "29488",
    "drawtype": "0",
    "color": "DD0000"
    }
    ],
    "permission": 2
    },
    So I try to add triggers to link like:
    "linktriggers" : [ { "triggerid" : 12345, "color":"81C784" }, { "triggerid" : 54321, "color":"81C784" } ], } But it has no effect How I can add triggers to links by API? Where I can get linkid while I creating this link?

Working...