Ad Widget

Collapse

Zabbix Api avg_value

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • imjules
    Junior Member
    • Sep 2015
    • 11

    #1

    Zabbix Api avg_value

    Hello

    Is there a way to get the avg_value of an Item via the Zabbix Api?

    I can't find something in the Zabbix Documentation but I think there should
    be an option to get the avg_value of an item.

    Thx for your help!
  • ingus.vilnis
    Senior Member
    Zabbix Certified Trainer
    Zabbix Certified SpecialistZabbix Certified Professional
    • Mar 2014
    • 908

    #2
    Hi,

    You can get only exact data points from item history


    Any additional calculations have to be done afterwards with help of custom scripting.

    Best Regards,
    Ingus

    Comment

    • imjules
      Junior Member
      • Sep 2015
      • 11

      #3
      Hey ingus.vlinis

      Thanks for your answer. But I found a way to get also the trends via API.



      On this site is a patch which adds CTrend.php to your Zabbix install folder so you can get trends as well.

      I had to manually add some lines to my ZabbixPHPAPI but now everything works very well!

      Comment

      Working...