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

Cannot read property '1' of null #1124

Closed
yurtesen opened this issue Dec 28, 2020 · 13 comments
Closed

Cannot read property '1' of null #1124

yurtesen opened this issue Dec 28, 2020 · 13 comments

Comments

@yurtesen
Copy link

yurtesen commented Dec 28, 2020

Describe the bug
I updated to 4.1.0. The data alignment feature is causing Cannot read property '1' of null error in some graphs

Expected behavior
I expected graphs to work fine.

Screenshots
Without data alignment feature:
image
With the data alignment feature:
image

Software versions

Grafana Zabbix Grafana-Zabbix Plugin
7.3.6 5.0.7 4.1.0
@diegocanton
Copy link

I see the same problem.

Grafana: 7.3.4
Zabbix: 4.2.8
Grafana-Zabbix Plugin: 4.1.0

The information below may perhaps help to identify the source of the problem.

I removed "Trends" parameters from the configuration, as I found in another issue that incorrect values could cause this. That did not solve it.

I found that when using "/.*/" in application the error does not appear, but neither does the data. One of my DASH had the value of "application" filled with the value used in Zabbix and presented data in 3 of the 9 panels. All panels have "application" defined.

I returned to Grafana-Zabbix Plugin: 4.0.2 and the problem is fixed

@mglants
Copy link

mglants commented Dec 29, 2020

Same here

@WillemWever
Copy link

We are having the same issue.

Grafana: 7.3.6
Zabbix: 5.0.3
Grafana-Zabbix Plugin: 4.1.0

We returned to Grafana-Zabbix Plugin: 4.0.2 and the dashboards are working as expected.

@estevaocm14
Copy link

We had the same problem.

Grafana: 7.3.6
Zabbix: 5.2.3
Grafana-Zabbix Plugin: 4.1.0

As soon as we downgraded to version 4.0.2, everything was back to normal.

@yurtesen
Copy link
Author

I have a question for people who downgraded it. I simply disabled it in data source settings by enabling "Disable data alignment" knob. Didn't this fix your problem?

@WillemWever
Copy link

I have a question for people who downgraded it. I simply disabled it in data source settings by enabling "Disable data alignment" knob. Didn't this fix your problem?

Yes it does, but I cannot find a central place to change this for all the items on our dashboards.

@yurtesen
Copy link
Author

@WillemWever isn't the Configuration -> Data Sources -> Zabbix the central place?
image
image
Anyway, perhaps not that important detail, I was just wondering why people were downgrading the plugin because it seemed like that knob turned off the problem globally for me.

@alexanderzobnin
Copy link
Collaborator

Duplicates #1123
Workaround described in the issue.

@alexanderzobnin
Copy link
Collaborator

As @yurtesen mentioned, you can disable data alignment for all queries in the data source config. However, this option required for proper stacked graphs in the next Grafana release. So make sure you enable it back after updating plugin (fix is on the way).

@alexanderzobnin
Copy link
Collaborator

Fixed in the latest release (4.1.1). So you can upgrade plugin to fix this issue.

@WillemWever
Copy link

Fixed in the latest release (4.1.1). So you can upgrade plugin to fix this issue.

Upgraded succesfull to 4.1.1. No problems at all.

Thanks!

@diegocanton
Copy link

4.1.1 - solved

@yurtesen
Copy link
Author

yurtesen commented Dec 31, 2020

The graphs are working with 4.1.1 when data alignment is enabled, but I am not sure if the feature is working. I am not able to achieve graphs like the author mentioned at:
#1109 (comment)
Mine look like :(
image

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

No branches or pull requests

6 participants