grafana-zabbix icon indicating copy to clipboard operation
grafana-zabbix copied to clipboard

Wrong status for the same alerts on Historical Alerts panel while showing history

Open OCrylic opened this issue 3 years ago • 2 comments

Describe the bug
While showing history in Historical Alerts panel, when an alerts occurs several times for a same host, it is showing the last status for all alerts instead of the real status (previous alerts in Resolved status and last alert in Problem status), as you can see in the attached screenshots comparing Zabbix output and Grafana output;

image

image

Software versions

Grafana Zabbix Grafana-Zabbix Plugin
7.5.9 5.2.7 4.1.5

OCrylic avatar Aug 31 '21 09:08 OCrylic

I did not received any update on this issue, is there something missing in the template or description ?

OCrylic avatar Dec 01 '21 16:12 OCrylic

Same problem here. In Zabbix, everything works as expected, but in Grafana, the Zabbix problems panel shows the last trigger state instead of the event state. This is why old resolved events are displayed in wrong state if the same trigger raise again.

zabbix grafana

Upon inspecting the API calls in the browser's developer mode, I noticed that the calls being made are 'trigger.get' and 'problem.get,' instead of 'event.get,' which would provide the real state of the problem event.

trigger get problem get

Zabbix documentation

Software version

Grafana Zabbix Plugin
10.0.3 6.4.4 4.3.1

dvaltmoli avatar Aug 30 '23 07:08 dvaltmoli

Hey. Any updates on this? Looks like the plugin is querying events and triggers nowadays, but still seems to show past events as active if the trigger is same. In addition to this fix, i'd love to see the possibility to show event duration which might be very different than the age calculated from the even time and recovery time.

ronivay avatar Jul 26 '24 10:07 ronivay

Hi, I hope this bug is fixed.

minhyukz avatar Aug 07 '24 07:08 minhyukz