Ad Widget

Collapse

Weird Parameter Behavior on Zabbix API

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • artrune
    Junior Member
    • Aug 2020
    • 16

    #1

    Weird Parameter Behavior on Zabbix API

    Hello! Hope you are doing well.

    I've encountered something weird while testing the host.get method on the zabbix api, the selectItems parameter doesnt seem to work (It only works if i use extend, but I just want one property and not the whole output)

    Code:
    {
        "jsonrpc": "2.0",
        "method": "host.get",
        "params": {
                    "output": ["hostid","name"],
                    "selectItems": "itemid",
                    "selectParentTemplates": ["templateId", "name"],
                    "selectGroups": "groupid"
        },
        "auth": "xxxx",
        "id": 1
    }
    Any clues, or ideas? The other selects do run fine.

    Running Zabbix 5.0.2
  • artrune
    Junior Member
    • Aug 2020
    • 16

    #2
    Turns out if i modify the select to
    Code:
     "selectItems": ["itemid", "key_"],
    It then works.

    Comment

    Working...