Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Operational data display issue in Zabbix problems panel #1832

Open
dvaltmoli opened this issue Jun 4, 2024 · 7 comments
Open

Operational data display issue in Zabbix problems panel #1832

dvaltmoli opened this issue Jun 4, 2024 · 7 comments

Comments

@dvaltmoli
Copy link

Describe the bug
When using the {ITEM.VALUE} macro in operational data and multiple event generation, Grafana displays the latest item value in the operational data inside the event detail, rather than the value that originally created the problem event.
This behavior is different from Zabbix, where the operational data correctly reflects the value that triggered the problem event.

Steps to Reproduce

  • Create an item with the following trigger configuration, and populate the item to generate problems.
    trigger

latest_data

  • Observe the behavior in both Zabbix and Grafana.
    zabbix_problems

grafana_problems

In Zabbix, the operational data column works as expected, showing the value that triggered the problem event. Grafana, however, displays the latest item value in the operational data, which may not accurately represent the problem.

Upon inspecting the API calls in the browser's developer mode, I noticed that the calls being made are 'trigger.get' and 'problem.get'. The first one obtains the operational data correctly, but the second one obtains only the last value of the item.
I suppose that's the problem, use the last value of the item obtained with the problem.get method instead the operational data obtained with the trigger.get call.

grafana_problem get

grafana_trigger get

Note: If you enable the operational data column in the Zabbix problems panel, it will correctly display the operational data.

grafana_opdata_column

Software versions

Grafana Zabbix Grafana-Zabbix Plugin
10.0.1 5.0.30 4.3.1
10.1.4 5.0.30 4.4.1
10.1.4 5.0.42 4.4.9
11.0 5.0.42 4.4.9
11.0 6.0.30 4.4.9
@msantpine
Copy link

+1

2 similar comments
@jjffall
Copy link

jjffall commented Jun 4, 2024

+1

@atelleira
Copy link

+1

@real-t0mg
Copy link

I'm getting the same error with operational data with a similar trigger configuration:

  • the value that triggered the event in zabbix is not what I get in grafana.

@rtarditi
Copy link

rtarditi commented Jun 4, 2024

+1

2 similar comments
@Geekul
Copy link

Geekul commented Jun 5, 2024

+1

@josemfh
Copy link

josemfh commented Jun 5, 2024

+1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: No status
Development

No branches or pull requests

8 participants