天天看点

grafana zabbix installation

我的环境是:

Zabbix 是 2.2.7

Zabbix-Grafana 是 2.5

Download: https://github.com/alexanderzobnin/grafana-zabbix/releases/ 

Grafana 是 2.5

Download: http://docs.grafana.org/installation/rpm/ 

关于如何部署的话 可以参考原文:

https://github.com/alexanderzobnin/grafana-zabbix/wiki/Installation#note-for-zabbix-22-or-less

和一个中国哥们写的博客: 

http://blog.csdn.net/wanglei_storage/article/details/48397333 

大致步骤是:

一, 先下载 http://docs.grafana.org/installation/rpm/ 并安装 RPM 包, 这一步只是安装这个 Grafana服务器而已 非常简单

二, 下面就是安装关于zabbix的插件:

先这个文件Grafana-Zabbix 2.5

https://github.com/alexanderzobnin/grafana-zabbix/releases/ 

然后上传到Grafana 的服务器中,然后执行下面的命令

cp -rf grafana-zabbix/zabbix /usr/share/grafana/public/app/plugins/datasource/

上面配置已经okay了

三, 下面就是在zabbix 的server上的配置:

        Mysql赋权用户和在Zabbix Web界面创建用户show:

       (1)、对Zabbix数据库用户赋权

     (2)、在Zabbix Web界面中添加用户show

四、验证Zabbix json配置档api_jsonrpc.php

五,启动服务:

service grafana-server start

六, 登录:

http://your_ip:3000

七, 添加数据源和API:

我们看到已经打开Grafana Web页面啦

Default Account

User:admin

Pass:admin

下面的事情全部是在web中操作了,参考下面的文章:

 https://github.com/alexanderzobnin/grafana-zabbix/wiki/Installation#note-for-zabbix-22-or-less

最重要的是中间多了一个test connection的选项,非常重要

非常感谢Alexander Zobnin的帮忙

如果有什么问题 可以留言。