Grafana-zabbix: "Direct DB connection" config isn't stay enabled on 3.10.2

Created on 26 Apr 2019  路  10Comments  路  Source: alexanderzobnin/grafana-zabbix

Describe the bug
The datasource validates and saves successfully, but when refreshing the page the "Enable" switch from Direct DB connection appears turned off.

Screenshots
image

saved.
Then F5:

image

Software versions

| Grafana | Zabbix | Grafana-Zabbix Plugin |
| ------- | ------ | --------------------- |
| 6.1.4 | 4.2.1 | 3.10.2 |

DB connector bug

All 10 comments

Confirm same issue
Grafana - Grafana v5.4.2 (d812109)
Zabbix - 3.4.15
Grafana-Zabbix Plugin - 3.10.1, 3.10.2

On 3.10.0 work

Can confirm the same with MySQL

Grafana - v6.1.6 (cf9cb45)
Zabbix - 4.2.1.
Grafana-Zabbix Plugin - 3.10.2

same for PSQL
Grafana - v6.0.2
Zabbix - 4.0.7
Plugin - 3.10.2

same for InfluxDB FYI

Yes, some issue.
Grafana - v6.1.6
Zabbix - 4.2.1
grafana-zabbix - 3.10.2

Same here. Noticed when trying to add the same DB connection on a second Org. The first one (create a while ago) is still working.

Grafana - v6.1.6
Zabbix - 4.2.1
grafana-zabbix - 3.10.2

so i have a temp workaround that seems to work

manually edit the row in the data_source table and edit the json_data column

NOTE: the zabbix api user/pass is in this field so only amend the dbConnectionDatasourceName and
dbConnectionRetentionPolicy fields as required

example (mysql/PGSQL):

{"addThresholds":false,"alerting":false,"alertingMinSeverity":3,"dbConnectionDatasourceId":null,"dbConnectionEnable":true, "dbConnectionDatasourceName":"Zabbix-PostgreSQLTSDB", "dbConnectionRetentionPolicy":"","disableReadOnlyUsersAck":true,"keepCookies":[],"oauthPassThru":false,"password":"xxxxxxxxx","trends":true,"trendsFrom":"7d","trendsRange":"4d","username":"xxxxxxxxx","zabbixVersion":4}

InfluxDB:

{"addThresholds":false,"alerting":false,"alertingMinSeverity":3,"dbConnectionDatasourceId":null,"dbConnectionEnable":true, "dbConnectionDatasourceName":"Zabbix-InfluxDB", "dbConnectionRetentionPolicy":"SomeRetentionPolicy","disableReadOnlyUsersAck":true,"keepCookies":[],"oauthPassThru":false,"password":"xxxxxxxxx","trends":true,"trendsFrom":"7d","trendsRange":"4d","username":"xxxxxxxxx","zabbixVersion":4}

Then you can view the data source in the GUI to verify the change worked just don't save it again via the GUI

Same thing here, env:

  • zabbix-server-mysql-4.0.5-1.el7.x86_64
  • grafana-6.2.0-1.x86_64
  • zabbix plugin for grafana version 3.10.2

Same while testing with InfluxDB (with Effluence):
Zabbix 4.0
Grafana 5.4.2
Plugin 3.10.2

What the feature broken, or just the UI? Thanks for the quick fix! 馃憤

Was this page helpful?
0 / 5 - 0 ratings

Related issues

jameskirsop picture jameskirsop  路  8Comments

tolstiyman picture tolstiyman  路  7Comments

KevinInphos picture KevinInphos  路  4Comments

heyrod picture heyrod  路  7Comments

divanikus picture divanikus  路  7Comments