Ad Widget

Collapse

API not returning history data

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • fed135
    Junior Member
    • Oct 2015
    • 2

    #1

    API not returning history data

    Hi, I'm having a problem with a query to our Zabbix 2.4 instance. The problem only started happening recently.

    I'm asking the API for entries between two dates.

    {
    "output":"extend",
    "itemids: ["200...],
    "sortfield":"clock",
    "sortorder":"ASC",
    "time_from":1442762167,
    "time_till":1444490167
    }

    I'm getting no entries from the call for that specific range, but when I go on the website and show the graph for those itemids, I can see all of the data.

    Any ideas why I'm not getting the entries through the API ?
  • LenR
    Senior Member
    • Sep 2009
    • 1005

    #2
    What is the API returning? An error or nothing?

    Check latest data to make sure you have history for that item, for that time range.

    Try without the time ranges....

    Comment

    • fed135
      Junior Member
      • Oct 2015
      • 2

      #3
      No errors, just an empty dataset.
      The website shows data (through a graph) for the itemids
      Tried with no from/till and I'm still not getting data for my range, or any data older than 5 days.

      I've contacted our Zabbix admins to check if they moved or removed the data.

      I know that one app is hitting the zabbix instance on a fixed interval asking for the last 5 days, is it possible that Zabbix caches these results and returns them (even if it doesn't match the requested from/till) ?

      Comment

      Working...