Ad Widget

Collapse

[2.0.6] API event.get and oryginal item value

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Pemol
    Junior Member
    • Mar 2014
    • 4

    #1

    [2.0.6] API event.get and oryginal item value

    Hi all,
    I'm working on integration zabbix events with external system. I use event.get method to list all events not older than 30 days.
    The problem is how to get original item value on the basis of which a trigger generated a event.

    I've got script which return usage filesystem space in percent. For example: my script returned 80% at 09:15 am and threshold was set to 75%. So event will be generated. Then my script returned 95% at 09:45 am. So same event will be returned because threshold will be exceeded. I would like to know at 09:45 am what was item value at 09:15 am and 09:45 am. I know how to get last item value from API but I dont know how to get oryginal item value at 09:15 am.

    thank you in advance.
  • Pemol
    Junior Member
    • Mar 2014
    • 4

    #2
    Does anyone have an idea how to do it?

    Comment

    • aib
      Senior Member
      • Jan 2014
      • 1615

      #3
      Do you remember that after "History storage period (in days)" all your data are converting to Trends?
      And I'm not sure if you can take any data from Trend which can be exactly correlated with time/date.
      Sincerely yours,
      Aleksey

      Comment

      • Pemol
        Junior Member
        • Mar 2014
        • 4

        #4
        Yes, I know but I keep History data for 90 days. I assume that events won't be displayed for so long. Therefore I don't need data from Trends but only from the history of Item data. I believe that the "original value" in the Events could be useful. But I don't know how to do this in API.

        Comment

        Working...