grafana / grafana-zabbix

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

Plugin doesn't work anymore after Zabbix/Grafana Upgrade to v6.4.2 and v9.5.1 #1629

Open OMSKremer opened 1 year ago

OMSKremer commented 1 year ago

Describe the bug I no longer receive any data from localhost Zabbix Server. Grafana Zabbix-Plugin Connection test says it's ok ("Zabbix API version: 6.4.2, DB connector type: postgres").

I updated Zabbix from 6.4.1 to 6.4.2, Grafana from 9.5.0 to 9.5.1 and the plugin from 4.3.0 to 4.3.1 (I downgraded again to 4.3.0. but still the same problem, so i think zabbix server breaking changes oder grafana breaking changes?)

When i directly explore the postgre connection in Grafana i receive data normally. But the grafana-zabbix plugin does not seem to use this connection properly. (But what speaks against the suspicion of an error on the part of Zabbix or Grafana?)

Software versions

Grafana Zabbix Grafana-Zabbix Plugin
9.5.1 6.4.2 4.3.1

2023-04-30 19_44_37-

Foxi352 commented 1 year ago

For what it's worth: I have the same problems than mentioned in this ticket. (+ the missing dashboard from another ticket)

OS Grafana Zabbix Grafana-Zabbix Plugin Database
Debian 11 9.5.1 6.4.2 4.3.1 PostgresQL 15.2-1 with TimeScaleDB 2.10.3

Less important, but still: In plugin configuration the "Dashboard" tab does not work. Files do not seem to exist on disk ? Screenshot 2023-05-02 at 14 03 19

Blocking issue: Plugin does not get data from Zabbix. Tested with and without direct DB connection in plugin.

Plugin Test works: Screenshot 2023-05-02 at 14 02 41

I can also access the tables from PostgreSQL data source. But Zabbix datasource stays empty, without any errors. I once got the host groups to show up, but host was always empty. After server restart i was no more able to even get the host groups populated.

Screenshot 2023-05-02 at 14 06 21

ecrichton0 commented 1 year ago

Same thing here, I just deployed Zabbix in docker earlier in the week and it was working fine. What's confusing me is that nothing should have updated, Zabbix is on V 6.4.2 but it has always been so why did it stop working all of a sudden? Grafana is version 9.4.7

mortenaatkartverket commented 1 year ago

I know it doesnt solve the problem, but you can point to a specific item ID, and it will show the graph for that. So there is some kind of connection...

shaunrampersad commented 1 year ago

Same issue. Zabbix 6.4.0 Grafana 9.5.2 Plugin 4.3.1

Integration succeeds but cannot lookup any metrics. { "request": { "url": "api/ds/query", "method": "POST", "data": { "queries": [ { "schema": 12, "queryType": "0", "group": { "filter": "" }, "host": { "filter": "/.*/" }, "application": { "filter": "" }, "itemTag": { "filter": "" }, "item": { "filter": "" }, "macro": { "filter": "" }, "functions": [], "trigger": { "filter": "" }, "countTriggersBy": "", "tags": { "filter": "" }, "proxy": { "filter": "" }, "textFilter": "", "options": { "showDisabledItems": false, "skipEmptyValues": false, "disableDataAlignment": false, "useZabbixValueMapping": false, "useTrends": "default", "count": false }, "table": { "skipEmptyValues": false }, "refId": "A", "key": "Q-f0134e46-b09e-4c46-baf9-5f1150775ecb-0", "datasource": { "type": "alexanderzobnin-zabbix-datasource", "uid": "000000001" }, "resultFormat": "time_series", "datasourceId": 1, "intervalMs": 2000, "maxDataPoints": 1920 } ], "range": { "from": "2023-06-13T08:35:04.591Z", "to": "2023-06-13T09:35:04.591Z", "raw": { "from": "now-1h", "to": "now" } }, "from": "1686645304591", "to": "1686648904591" }, "hideFromInspector": false }, "response": { "results": { "A": { "status": 200, "frames": [], "refId": "A" } } } }

No results returned

This was working prior to upgrade of the above. Zabbix 3.2 Grafana 7.0

JihadArfat commented 1 year ago

Is this problem still ongoing? Has anyone discovered a workaround?

Thanks in advance!

riversideneyon commented 10 months ago

Same here, Plugin test works but in the query doesn't show anything like groups etc. Zabbix : 6.4 Grafana : v10.2.2 Plugin : 4.4.4

oti-mandrews commented 4 months ago

Hi all,

We had the same issue in our Zabbix-Grafana implementation. The problem was that our grafana user account in Zabbix didn't have permissions to the host groups. Once we configured the grafana user account within Zabbix to have permissions on the host groups, it then worked.