grafana / grafana-zabbix

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

Plugin unavailable error 503 #1217

Closed mancio00 closed 1 year ago

mancio00 commented 3 years ago

I'm creating my own grafana 7.5.7 container with zabbix plugin. I'm installing this plugins during container creation RUN ./bin/grafana-cli plugins install 'alexanderzobnin-zabbix-app' RUN chmod -R 472 /var/lib/grafana/plugins/alexanderzobnin-zabbix-app

The plugin is successfully installed but it doesn't work. Looking grafana logs I found these entries t=2021-05-20T15:33:38+0000 lvl=eror msg="Request Completed" logger=context userId=1 orgId=1 uname=admin method=POST path=/api/datasources/4/resources/zabbix-api status=503 remote_addr=192.168.232.107 time_ms=6 size=32 referer="https://XXXXX/grafana/d/N0IM4jXGz/errevi-dashboard-test-logotipo?orgId=1&refresh=30s"

If I try to manually execute the binary into the container it doesn't run bash-5.1$ /var/lib/grafana/plugins/alexanderzobnin-zabbix-app/zabbix-plugin_linux_amd64 bash: /var/lib/grafana/plugins/alexanderzobnin-zabbix-app/zabbix-plugin_linux_amd64: No such file or directory bash-5.1$ ls -l /var/lib/grafana/plugins/alexanderzobnin-zabbix-app/zabbix-plugin_linux_amd64 -rwxr-xr-x 1 grafana root 12505088 May 20 15:18 /var/lib/grafana/plugins/alexanderzobnin-zabbix-app/zabbix-plugin_linux_amd64

Grafana 7.5.7 Zabbix 5.2 Grafana-Zabbix Plugin 4.1.5

Thanks

Matteo

sashganush commented 3 years ago

If you are using alpine based container add libc6-compat package. It's install libc6 files need for running pluging.

apk --update add libc6-compat

arc855 commented 2 years ago

Same issue with me also ,

LOGS : logger=context traceID=00000000000000000000000000000000 userId=1 orgId=1 uname=admin t=2022-11-15T11:01:54.87959673Z level=error msg="Plugin unavailable" error="plugin unavailable" traceID=00000000000000000000000000000000 logger=context traceID=00000000000000000000000000000000 userId=1 orgId=1 uname=admin t=2022-11-15T11:01:54.879689308Z level=error msg="Request Completed" method=POST path=/api/datasources/51/resources/zabbix-api status=503 remote_addr=192.168.14.120 time_ms=2 duration=2.757515ms size=78 referer=XXXXXXXXXXXXXX:3000/datasources/edit/P00C32CCC9C36C788 traceID=00000000000000000000000000000000 handler=/api/datasources/:id/resources/*

garafana 9.2.1 zabbix 5.2.5 plugin 4.10.2

help me to resolve this issue. Thanks

sirmaxru commented 1 year ago

help me to resolve this issue. Thanks

just use grafana on ubuntu, if you using docker tag like 9.3.1-ubuntu