Ad Widget

Collapse

Issue when retrieving historical data through Zabbix API

Collapse
This topic has been answered.
X
X
 
  • Time
  • Show
Clear All
new posts
  • machinelearningdingetjes
    Junior Member
    • Oct 2023
    • 10

    #1

    Issue when retrieving historical data through Zabbix API

    Hey,

    I want to extract historical data from items from a month back using API calls. I've created a Python script to do so, but I'm having an issue.
    From certain items I obtain data from a month back and from other items I obtain data from just 7 days ago while using the same script and parameters in my history.get function.
    I think it might be due to a limitation of the amount of values retrieved but I'm not totally sure. The reason behind this is because I can obtain data up to a month ago from items that send their data each hour.
    I can only obtain data from 7 days ago from the items that send their data with a 5 minute interval.

    Can anyone confirm my thought and might give me a solution to this?

    Greetings,
    machinelearningdingetjes
  • Answer selected by machinelearningdingetjes at 01-11-2023, 17:18.
    cyber
    Senior Member
    Zabbix Certified SpecialistZabbix Certified Professional
    • Dec 2006
    • 4807

    Whats the "keep history" setting on those items? Maybe you have just 7d of data...

    Comment

  • cyber
    Senior Member
    Zabbix Certified SpecialistZabbix Certified Professional
    • Dec 2006
    • 4807

    #2
    Whats the "keep history" setting on those items? Maybe you have just 7d of data...

    Comment

Working...