Ad Widget

Collapse

What is an "interfaceid"? And where to get them?

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

    #1

    What is an "interfaceid"? And where to get them?

    Dear all =)

    When creating an Item (that executes a remote command on a passive agent), I have to fill out an "interfaceid" as seen here https://www.zabbix.com/documentation...ce/item/create

    However I can't find anywhere how to dump which "interfaceid"'s there are available.

    Question

    Does anyone know how I can extract the available "interfaceid"'s I can choose from?

    Hugs
    Sandra =)
  • Sandra
    Junior Member
    • Jun 2020
    • 10

    #2
    Got it! =)

    let hostInterfaceId = await zabbix.request('hostinterface.get', {
    output: ["interfaceids"],
    hostids: myHostId,
    })
    hostInterfaceId = hostInterfaceId[0].interfaceid
    console.log(hostInterfaceId)


    Comment

    Working...