Ad Widget

Collapse

Application.Get not applying filters as expected

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Minty
    Junior Member
    • May 2013
    • 1

    #1

    Application.Get not applying filters as expected

    Hi,

    My company uses Zabbix 1.8.4. I am trying to send a POST request to our Zabbix server using the Application.Get method (https://www.zabbix.com/documentation...pplication/get) that returns the applicationid for a known application name on a specific server. The HTTP body of the request is: -

    {
    "jsonrpc":"2.0",
    "method":"application.get",
    "params":{
    "search":[{"name": "ApplicationName"},{"hostids": [10178]}],
    "output": "extend",
    "extend": 1},
    "auth":"9f3282e3c43b34ede8bdb120f71d3fd4",
    "id":2
    }

    The request executes but returns data for all nodeids. I can't get the response filtered on both application name and host ID. Am I going wrong with how I have formatted my request or am I missing a trick here?
Working...