Ad Widget

Collapse

Zabbix API problem.get method returning r_ns and r_clock as "0"

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • BrandonParks
    Junior Member
    • Jul 2021
    • 1

    #1

    Zabbix API problem.get method returning r_ns and r_clock as "0"

    Hi!
    This is my first post here, so I'm hoping this is the right place for this.

    I'm writing a dashboard in python for our multiple Zabbix environments, and I'm trying to re-create the functionality that the web Zabbix's front end has, where when you hover over the issue, it shows a history of that trigger and shows the duration of the past alerts. I looked into how I could achieve this and the only thing I found was getting the past events for a specific trigger ID using event.get with the list of trigger IDs that are currently showing, and then problem.get with the event IDs from the previous triggers and use the r_ns or r_clock from that to calculate how long the triggers were up (by subtracting ns or clock). Though for some reason, every r_ns and r_clock returns as "0". I've checked by using problem.get with no filter, returning every problem in the DB (I assume that's what it does) and there isn't a r_ns or r_clock that isn't "0".

    I'm not the Zabbix Admin for these environments, so I'm unsure if this is a configuration issue or not.

    We're using Zabbix 5.x.

    Feel free to ask any information that might help lead to a conclusion!

    Thank you
Working...