Ad Widget

Collapse

How come there is no trigger ID when using configuration.export API?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Sandra
    Junior Member
    • Jun 2020
    • 10

    #1

    How come there is no trigger ID when using configuration.export API?

    Dear all =)


    According to https://www.zabbix.com/documentation...object#trigger a trigger should have a triggerid, however when I do

    Code:
    [FONT=Courier New]const dataudstil = await zabbix.request('configuration.export', {
      format: 'json', 
      options: {
        hosts: ["12261"]
      }
    })
    console.log(JSON.stringify(JSON.parse(dataudstil), null, 2))[/FONT]

    I get

    Code:
    ...
    [FONT=Courier New]"triggers": [
    {
    "expression": "{ex:web.test.fail[Web:ex].last()}<>0",
    "name": "Trigger:ex",
    "priority": "HIGH",
    "tags": [
    {
    "tag": "Alert"
    },
    {
    "tag": "Sandra"
    }
    ]
    },[/FONT]
    ...
    Notice there are no trigger ID's.

    Question

    How come there are no trigger ID's? How can it get the trigger ID, so I e.g. can delete it?

    Hugs
    Sandra =)





Working...