Ad Widget

Collapse

API Alert returning []

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • cssonddos
    Junior Member
    • Nov 2011
    • 1

    #1

    API Alert returning []

    Can somebody help with this?
    I'm sending the following request:
    {"id":1,"method":"alert.get","params":{"output":"r efer","groupids":"21"},"jsonrpc":"2.0","auth":"6a0 92e2bbda2d1f4fe5a8e17f7ad6a0a"}

    And i'm getting this response:
    {"id":1,"result":[],"jsonrpc":"2.0"}

    if i send this request:
    {"id":1,"method":"alert.get","params":{"limit":2," output":"refer"},"jsonrpc":"2.0","auth":"72b6ce373 8d801d0254cf2b50cfca8b4"}

    I get this response:
    {"id":1,"result":[{"alertid":"520111"},{"alertid":"520112"}],"jsonrpc":"2.0"}

    This problem happens if i pass other parameter than output; such as groupids, triggerids or hostids.

    Anybody knows how to fix this??? I only need that the response has the triggerid, or the countOutput return something different than [].

    Thanks
    Ericsson
Working...