Ad Widget

Collapse

history of ack's per user

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • elemeledudki
    Junior Member
    • Sep 2014
    • 2

    #1

    history of ack's per user

    Hi Guys,

    Is there a way to list the events acknowledged by a certain Zabbix user, or at least by me? (In the web UI, via API or, as a last resort, directly on the MySQL DB.)

    Maciek
  • elemeledudki
    Junior Member
    • Sep 2014
    • 2

    #2
    Here's a query I've come up with:

    Code:
    {"jsonrpc": "2.0",
      "method": "event.get",
      "params": {"output": "extend",
                 "select_acknowledges": "extend",
                 "time_from": "1411466640",
                 "time_till": "1412236260"},
      "auth": "ad509e97fd4909c1fb8fd0de2afa8a00",
      "id": 1
    }
    Now, how do I tweak this query so that only events acknowledged by a certain user are returned? I tried using "filter" as follows, but it doesn't make a difference to the query output:

    Code:
    {"jsonrpc": "2.0",
      "method": "event.get",
      "params": {"output": "extend",
                 "select_acknowledges": "extend",
    [B]             "filter": {"alias": ["some_user"]},[/B]
                 "time_from": "1411466640",
                 "time_till": "1412236260"},
      "auth": "ad509e97fd4909c1fb8fd0de2afa8a00",
      "id": 1
    }
    I must be missing something obvious...

    Comment

    Working...