grafana-zabbix icon indicating copy to clipboard operation
grafana-zabbix copied to clipboard

Grafana 7.2 authentication loop

Open d1nuc0m opened this issue 4 months ago • 2 comments

Describe the bug Trying to use a Zabbix 7.2 instance as a data source, the plugin stucks into a login loop:

Jun 05 17:07:17 example.com grafana[47402]: logger=plugin.alexanderzobnin-zabbix-datasource t=2025-06-05T17:07:17.461626188+02:00 level=debug msg="Successfully authenticated" url=http://example.com/api_jsonrpc.php user=Admin
Jun 05 17:07:17 example.com grafana[47402]: logger=plugin.alexanderzobnin-zabbix-datasource t=2025-06-05T17:07:17.461735343+02:00 level=debug msg="Zabbix request" method=hostgroup.get
Jun 05 17:07:17 example.com grafana[47402]: logger=plugin.alexanderzobnin-zabbix-datasource t=2025-06-05T17:07:17.461838216+02:00 level=debug msg="performing query params migration" pluginId=alexanderzobnin-zabbix-datasource uname=admin dsUid=ae2jad4pmlzb4a method=hostgroup.get version=72 dsName=zabbix-datasource endpoint=callResource
Jun 05 17:07:17 example.com grafana[47402]: logger=plugin.alexanderzobnin-zabbix-datasource t=2025-06-05T17:07:17.545784022+02:00 level=debug msg="Authentication token expired, performing re-login"
Jun 05 17:07:17 example.com grafana[47402]: logger=plugin.alexanderzobnin-zabbix-datasource t=2025-06-05T17:07:17.545940966+02:00 level=debug msg="performing query params migration" dsName=zabbix-datasource dsUid=ae2jad4pmlzb4a method=user.login version=72 endpoint=callResource pluginId=alexanderzobnin-zabbix-datasource uname=admin
Jun 05 17:07:17 example.com grafana[47402]: logger=plugin.alexanderzobnin-zabbix-datasource t=2025-06-05T17:07:17.72095098+02:00 level=debug msg="Successfully authenticated" url=http://example.com/api_jsonrpc.php user=Admin
Jun 05 17:07:17 example.com grafana[47402]: logger=plugin.alexanderzobnin-zabbix-datasource t=2025-06-05T17:07:17.721046048+02:00 level=debug msg="Zabbix request" method=hostgroup.get
Jun 05 17:07:17 example.com grafana[47402]: logger=plugin.alexanderzobnin-zabbix-datasource t=2025-06-05T17:07:17.721088808+02:00 level=debug msg="performing query params migration" dsUid=ae2jad4pmlzb4a pluginId=alexanderzobnin-zabbix-datasource endpoint=callResource method=hostgroup.get uname=admin version=72 dsName=zabbix-datasource
Jun 05 17:07:17 example.com grafana[47402]: logger=plugin.alexanderzobnin-zabbix-datasource t=2025-06-05T17:07:17.801329516+02:00 level=debug msg="Authentication token expired, performing re-login"

Credentials are correct, manual queries with curl and these credentials work on HTTP and HTTPS

Expected behavior Plugin works with Zabbix 7.2

Software versions

Grafana Zabbix Grafana-Zabbix Plugin
12.0.1 7.2.7 5.1.0

d1nuc0m avatar Jun 05 '25 15:06 d1nuc0m