Ad Widget

Collapse

Zabbix API how to know when a problem has been solved

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Molusco
    Junior Member
    • Dec 2019
    • 20

    #1

    Zabbix API how to know when a problem has been solved

    Hi, Im using the zabbix api and getting events with trigger.get, every five minutes a crontab gets me the latest problems, Im going to use this data in a custom webpage, but I was wandering, how I can know if a problem has been solved, because if the problem is solved Im not going the get more data froma that triger.
  • exesition
    Senior Member
    • Nov 2019
    • 121

    #2
    Use table event_recovery

    Comment

    • Molusco
      Junior Member
      • Dec 2019
      • 20

      #3
      splitek, I was currently filtering by value = 1, so what you are sugesting is that I bring the events with both values 0 and 1, and then compare them? with what value should I compare them? event id is unique? is not repeated in time for the same host, same type of event?

      Comment

      • Molusco
        Junior Member
        • Dec 2019
        • 20

        #4
        Thanks splitek, Why use the objectid? and not the eventid? they are not the same when event is triggered and when a event is solved?

        Comment

        • Molusco
          Junior Member
          • Dec 2019
          • 20

          #5
          Thanks splitek!
          Last edited by Molusco; 23-01-2020, 22:50.

          Comment

          Working...