Ad Widget

Collapse

Zabbix API and Graph Data

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • mattrk
    Junior Member
    • Mar 2014
    • 18

    #1

    Zabbix API and Graph Data

    I've recently been trying to figure out how to get data out of Zabbix using the API so I can create custom graphs in a third party application. So far, it seems the history.get method in the API is the best way to do this.

    My question to you is: Is this history data i'm getting from the history.get method the same data Zabbix uses to generate the graphs i see in Zabbix? Or is that data coming from somewhere else?

    Thanks
  • ingus.vilnis
    Senior Member
    Zabbix Certified Trainer
    Zabbix Certified SpecialistZabbix Certified Professional
    • Mar 2014
    • 908

    #2
    Hi,

    Data gathered with history.get API method is the same which is used in Zabbix graphs and is located in Zabbix history* database tables.

    Best Regards,
    Ingus

    Comment

    • wamsterdam
      Member
      • Apr 2013
      • 34

      #3
      Be aware that the history.get class only retrieves data for the period set as 'history' for the item. So if you configured a history of 7 days for your item, you will not be able to graph data older than 7 days. For that info you would need a trend.get class, but that one is not (yet) available.

      Although not adviced, you can copy the history.get class to create a new trend.get class and register that new class. That worked for me. Search the forum for trend.get, I think I found it here somewhere...

      HTH,
      Wouter

      Comment

      Working...