Ad Widget

Collapse

API problem.get with time till/from does not retrieve actual problems

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • viktorkho
    Member
    • Jul 2013
    • 90

    #1

    API problem.get with time till/from does not retrieve actual problems

    I'm going to request problems for the past hour (day or week), like in the time-filter at "Monitoring - Problems" page. Zabbix 3.4.

    My request and corresponding responce:
    Code:
    {
    "jsonrpc": "2.0",
    "method": "problem.get",
    "params": {
    "output": "extend",
    "time_from": "1568103177",
    "time_till": "1568106777"
    },
    "auth": "97b4f8287196d9107cc5b231a875a593",
    "id": 1
    }
    
    {"jsonrpc":"2.0","result":[],"id":1}
    In UI I have 2 pages of problems in given time period (1568103177...1568106777).

    If I send "recent": "true" in params, Zabbix returns some problems like when "Recent problems" show-filter in UI is selected.


    UPD

    I found in debug mode, that "Monitoring - Problems" page uses not obvious combination of event.get, trigger.get and host.get


    How to select problems properly?

    Last edited by viktorkho; 10-09-2019, 13:55.
  • Admin-SIS-56
    Junior Member
    • Oct 2018
    • 11

    #2
    Hi,
    I have the same problem,
    did you find a solution?

    I am trying to list all problems on host over the last 2 days.

    Comment

    Working...