grafana / grafana-zabbix

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

invalid character '<' looking for beginning of value #1089

Open lim4k opened 4 years ago

lim4k commented 4 years ago

Hi, our zabbix provider switch zabbix to HTTPS with cert, so i have updated grafana and zabbix plugin to latest versions

Grafana Zabbix Grafana-Zabbix Plugin
v7.3.2 4.0.5 4.0.1

after enable "Skip TLS Verify" i got only "invalid character '<' looking for beginning of value" on zabbix connection

obraz

logs

t=2020-11-12T10:58:45+0000 lvl=eror msg="Zabbix API request error" logger=plugins.backend pluginId=alexanderzobnin-zabbix-datasource error="invalid character '<' looking for beginning of value"
t=2020-11-12T10:58:45+0000 lvl=eror msg="Request Completed" logger=context userId=1 orgId=1 uname=admin method=POST path=/api/datasources/6/resources/zabbix-api status=500 remote_addr=x.x.x.x time_ms=42 size=103 referer=http://hostname/datasources/edit/6/
t=2020-11-12T10:58:45+0000 lvl=eror msg="Zabbix API request error" logger=plugins.backend pluginId=alexanderzobnin-zabbix-datasource error="invalid character '<' looking for beginning of value"
t=2020-11-12T10:58:45+0000 lvl=eror msg="Request Completed" logger=context userId=1 orgId=1 uname=admin method=POST path=/api/datasources/6/resources/zabbix-api status=500 remote_addr=x.x.x.x time_ms=31 size=103 referer=http://hostname/datasources/edit/6/
mandrivaman commented 4 years ago

@lim4k check the API url. in my case it looks like https://zabbix.host/api_jsonrpc.php

alexanderzobnin commented 3 years ago

@lim4k could you try this again with 4.0.2?

omyhub commented 2 years ago

grafana want get a json to check , but your url return html , your url is not correct

serviceticst commented 2 years ago

image

same problem here, Zabbix 6.2 and grafana 9.2.2

dachaijian commented 1 year ago

image

same problem here, Zabbix 6.2 and grafana 9.2.2

have u ever slove this issue? the same problem here