grafana-zabbix: Can't use a query with data source Zabbix
Describe the bug Can’t use a query with data source Zabbix because there is no field to create the query.
Expected behavior Create a new empty panel at any dashboard with data source Zabbix. Expected to add and edit the query for the data source but there are no input fields to edit the query. Also, I see multiple errors in the browser console. It happened after the Zabbix server update probably.
Screenshots
Software versions
Grafana | Zabbix | Grafana-Zabbix Plugin |
---|---|---|
8.3.1 | 5.4.8 | 4.2.4 |
Important update
I’m using Apache as reverse proxy, so I tried to access the Grafana directly (http:// and port 3000) but it doesn’t resolve the problem and I see the same errors so it’s not in Apache. I’m getting errors like Error: [$templateRequest:tpload] Failed to load template: public/plugins/alexanderzobnin-zabbix-datasource/datasource-zabbix/partials/query.editor.html (HTTP status: 404 Not Found) https://errors.angularjs.org/1.8.2/$templateRequest/tpload?p…-zabbix%2Fpartials%2Fquery.editor.html&p1=404&p2=Not%20Found
.
About this issue
- Original URL
- State: closed
- Created 3 years ago
- Reactions: 12
- Comments: 45 (2 by maintainers)
Ok, confirmed. This is Grafana 8.3.2-8.3.3 bug. The fix will be available in both 8.4 and 8.3.4, so next Grafana release will fix the issue. I will let this open for a while until I we are sure that’s fixed.
How I fixed it:
@alexanderzobnin Hello! Unfortunately, it still does not work in the latest version of Grafana v8.3.4.
I can confirm that with version 8.3.4 the problem is not solved, updated this morning 😦
I had the same issue after adding a new organization to grafana and then installing the zabbix plugin in this second organization. Then in this second organization I had this problem, which then also showed up on the first organization suddenly. Then I deleted the second organization again with all its users (and the corresponding dashboards and data sources, of course). However in my first organization the problem persisted. Uninstalling and reinstalling the plugin made it work again. I will check later which step caused the problem and try to reproduce it. For now I suspect the problem shows up when grafana is configured with multiple organizations with at least two trying to use the zabbix plugin. My grafana is 8.3.6, plugin 4.2.4 running on linux armv7l (raspberry pi 4 Debian buster).
It worked at the beginning, but unfortunately stopped suddenly. But checking grafana logs, I’ve found this error:
t=2021-12-14T23:25:55-0300 lvl=eror msg=“Plugin file not found” logger=context userId=1 orgId=1 uname=admin error=“open /var/lib/grafana/plugins/alexanderzobnin-zabbix-app/partials/query.editor.html: no such file or directory”
So in order to fix this, in my case on linux, I just created a symbolic link as shown bellow:
#ln -s /var/lib/grafana/plugins/alexanderzobnin-zabbix-app/datasource-zabbix/partials/ /var/lib/grafana/plugins/alexanderzobnin-zabbix-app/partials
Since then I’m using without problems. I hope my fix can help you guys!
Same here. Workaround: rollback to 4.2.3
Works here with 8.4.1 and 4.2.5. Just installed from scratch to verify. 🤔
Version 4.2.5 seems to resolve the issue for me.
@mjtrangoni @Henry78 @neothematrix @fauust @alexanderzobnin Hello! Great news! Update to v8.3.6 fix it problem!
I also confirm. 8.3.4 + 4.2.4 does not work. after each restart, the service may stop working or start. none of the above options solves the problem, errors still occur in the logs
I noticed this issue in one of the 8.3.x versions. But after a while it was fixed, so I thoughts that’s it. But looks like the fix is only in main branch now, but it’s not backported into 8.3. I ask grafana team about this, probably, fix is not complicated.
To resolve the issue in easiest way, just remove the datasource plugin and install it again. Then restart the Grafana service.
sudo grafana-cli plugins remove alexanderzobnin-zabbix-app
sudo grafana-cli plugins install alexanderzobnin-zabbix-app
sudo systemctl restart grafana-server