grafana / grafana-zabbix

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

Unable to Install Plugin #1631

Open carter-coder opened 1 year ago

carter-coder commented 1 year ago

I am failing to install the grafana-zabbix plugin. Can you please assist?

I am on a server that is running Centos7. I used the command sudo grafana-cli plugins install alexanderzobnin-zabbix-app and this is the output I got ✔ Downloaded and extracted alexanderzobnin-zabbix-app v4.3.1 zip successfully to /var/lib/grafana/plugins/alexanderzobnin-zabbix-app. Please restart Grafana after installing or removing plugins. Refer to Grafana documentation for instructions if necessary. When I login on the Grafana GUI and navigate to Plugins, I do not have the option to enable it. I only have the option to install it and when I do press install it fails to install.

image
achraf-sani commented 11 months ago

Hey there, would you check what are the permissions for this folder /var/lib/grafana/plugins ? I had the same problem but i was installing the plugin through Ansible.

willzhang commented 2 days ago

I have same error

https://grafana.com/docs/plugins/alexanderzobnin-zabbix-app/latest/installation/

if you install with this command

root@zabbix-server:~# grafana-cli plugins install alexanderzobnin-zabbix-app

you will find the plugins directory is root user

root@zabbix-server:~# ll /var/lib/grafana/ | grep plugins
drwxr-x---  2 root    root          6 Jul  1 20:29 plugins/

and then you must change owner

chown -R grafana.grafana /var/lib/grafana/plugins/
systemctl restart grafana-server

Or you must uninstall it and remove plugins dir

root@zabbix-server:~# grafana-cli plugins  uninstall alexanderzobnin-zabbix-app
root@zabbix-server:~# rm -rf /var/lib/grafana/plugins

then install in dashboard will success image