Ad Widget

Collapse

Get Problems like appear in widget Problems with API 4.4

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • aleixap95
    Junior Member
    • Mar 2020
    • 2

    #1

    Get Problems like appear in widget Problems with API 4.4

    Hi everyone,

    I have a problem with the Method Problems.get of Zabbix Api. In the documentation of the Method "Problems" appear that "It is also possible, if specified, to additionally retrieve recently resolved problems. The period that determines how old is “recently” is defined in AdministrationGeneral"


    In my general configuration i have
    Click image for larger version  Name:	Capture.PNG Views:	4 Size:	1.9 KB ID:	397197


    I don't get the recent problems.... I get all problems from enabled/disabled hosts, enabled/disabled triggers.....


    Request
    {
    "method": problem.get
    "id": "Some id"
    "auth": "Some auth"
    "params": {
    "output": ["name","severity",acknowledged","clock"],
    "recent": "true",
    "sortfield": "eventid",
    "sortorder": "DESC"
    }
    }

    Can yo explain me why this request return me problems from last year?

    If the request is not correct, the only thing i want to do is to get the problems like widget "Problems" in Web interface

    Thanks in advance
    Last edited by aleixap95; 08-03-2020, 22:12.
Working...