欢迎来到尧图网

客户服务 关于我们

您的位置:首页 > 科技 > 能源 > 2. grafana插件安装并接入zabbix

2. grafana插件安装并接入zabbix

2025/2/13 5:17:21 来源:https://blog.csdn.net/weixin_50877409/article/details/145593912  浏览:    关键词:2. grafana插件安装并接入zabbix

一、在线安装

如果不指定安装位置,则默认安装位置为/var/lib/grafana/plugins 插件安装完成之后需要重启grafana

命令在上一篇讲到过

//查看相关帮助
[root@localhost ~]# grafana-cli plugins --help
//从列举中的插件过滤zabbix插件
[root@localhost ~]# grafana-cli plugins  list-remote |grep zabbix 
id: alexanderzobnin-zabbix-app version: 3.12.4
//依据id安装插件
[root@localhost ~]# grafana-cli plugins install alexanderzobnin-zabbix-appinstalling alexanderzobnin-zabbix-app @ 3.12.4
from: https://grafana.com/api/plugins/alexanderzobnin-zabbix-app/versions/3.12.4/download
into: /var/lib/grafana/plugins✔ Installed alexanderzobnin-zabbix-app successfully Restart grafana after installing plugins . <service grafana-server restar

二、离线安装

访问https://grafana.com/grafana/plugins/all-plugins/

1. 搜索需要的插件,选好与grafana版本匹配的版本。

2. 点击installtion然后下拉选择与服务器匹配的安装包

 3. 下载好后上传到服务器解压并移动到插件目录

 # 解压 
[root@localhost ~]# unzip alexanderzobnin-zabbix-app-5.0.0.gpx_zabbix-datasource_linux_amd64.zip
# 移动到plugins 文件夹中 
[root@localhost ~]# mv alexanderzobnin-zabbix-app  /var/lib/grafana/plugins
# 重启grafana-server使生效。 
[root@localhost ~]# systemctl restart grafana-server

三、配置zabbix数据源

先要enable才能看的到,一次点击 管理 - 插件 -  zabbix

在 连接 - 数据 - 添加数据源 - 选择zabbix

url写zabbix的api接口

http://192.168.199.123:80/api_jsonrpc.php

这边只填写登录zabbix的账号密码即可(一般都是给一个只读用户就好)

 下拉到最后保存测试(绿色装填为成功)

版权声明:

本网仅为发布的内容提供存储空间,不对发表、转载的内容提供任何形式的保证。凡本网注明“来源:XXX网络”的作品,均转载自其它媒体,著作权归作者所有,商业转载请联系作者获得授权,非商业转载请注明出处。

我们尊重并感谢每一位作者,均已注明文章来源和作者。如因作品内容、版权或其它问题,请及时与我们联系,联系邮箱:809451989@qq.com,投稿邮箱:809451989@qq.com