grafana / grafana-zabbix

Zabbix plugin for Grafana dashboard
http://play.grafana-zabbix.org
Apache License 2.0
2.06k stars 458 forks source link

Dashboard Template zabbix_system_status.json e.options is undefined #1639

Open ITfromHell opened 1 year ago

ITfromHell commented 1 year ago

Describe the bug I imported the default dashboard from https://github.com/alexanderzobnin/grafana-zabbix/blob/master/dashboards/zabbix_system_status.json The UI tells me with red exclamation marks "e.options is undefined", see screenshot1 Interestingly, the list of host groups will be shown at upper panel and also the panels ar enumerated for each entry, so its not an roles/rights nor authorization topic.

Expected behavior The panels shows values

Screenshots grafik

Network data Query: {"datasourceId":1,"method":"hostgroup.get","params":{"output":["name","groupid"],"sortfield":"name","real_hosts":true}}

Result: {"result":[{"groupid":"7","name":"Hypervisors"},{"groupid":"2","name":"Linux servers"},{"groupid":"23","name":"Switches"},{"groupid":"22","name":"TrueNAS"},{"groupid":"26","name":"UPS"},{"groupid":"6","name":"Virtual machines"},{"groupid":"4","name":"Zabbix servers"},{"groupid":"24","name":"site_TST01"}]}

Software versions

Grafana Zabbix Grafana-Zabbix Plugin
v9.5.2 (cfcea75916) 6.4.2 4.3.1

Thanks for your help.

jpcapone commented 9 months ago

Did you ever get this fixed? I have the same problem.

ITfromHell commented 9 months ago

Unfortunately no. And also no feedback or questions for details. Do you use same versions? I updated to Zabbix 6.4.8 and Grafana-Zabbix-Plugin 4.4.4, meanwhile, but the problem is the same.

jpcapone commented 9 months ago

Unfortunately no. And also no feedback or questions for details. Do you use same versions? I updated to Zabbix 6.4.8 and Grafana-Zabbix-Plugin 4.4.4, meanwhile, but the problem is the same.

Grafana is version 10.2.2, Grafana-Zabbix-Plugin 4.4.4 and Zabbix is 6.4.10. Let me know if you think of something we can try.

ITfromHell commented 9 months ago

Lets check similarities and differences at our installations: I updated to Zabbix 6.4.10, Grafana 10.2.3, alexanderzobnin-zabbix-app 4.4.4 (its installed via environment var "- GF_INSTALL_PLUGINS=alexanderzobnin-zabbix-app" at docker-compose.yml) Did you configure "Direct DB connection" at Zabbix plugin? For me this doesn´t work for PostgreSQL: I can create a datasource, but I´m unable to select it at Zabbix plugin.

As Grafana image I use "grafana/grafana-oss:latest", today I tried "grafana/grafana-enterprise:latest", also with same result Also Grafana v9.5.15, same. Also alexanderzobnin-zabbix-app 4.3.0, same.

But maybe the Grafana side is the wrong one, maybe its related to how the systems at Zabbix are structured/named/...