您的位置:首页 > 其它

Zabbix 插件Grafana-zabbix的安装

2016-01-21 10:22 459 查看
一、安装Grafana-zabbix
1、在ZabbixServer服务器上,安装Grafana
https://grafanarel.s3.amazonaws.com/builds/grafana-2.1.1-1.x86_64.rpm 
2、下载Grafana的Zabbix插件,在git上下载,如果无法运行下面命令的话,可以先“# yum install git”安装这个命令
[code;'>[root@localhost ~]# git clone https://github.com/linglong0820/grafana-zabbix[/code] 
3、将插件复制到Grafana文件下

[root@localhost ~]# cp -r grafana-zabbix/zabbix/ /usr/share/grafana/public/app/plugins/datasource/[/code]

4、启动Grafana
[root@localhost ~]# service grafana-server start
[root@localhost ~]# chkconfig grafana-server on


二、登录Grafana并且配置

1、启动Grafana后,在浏览器中输入“http://ServerIP:3000/login”就可以看到页面了。
650) this.width=650;" title="image" src="http://images2015.cnblogs.com/blog/626593/201509/626593-20150908192530512-442320747.png" alt="image" width="1200" height="663" border="0" style="border:none;margin-top:20px;margin-bottom:20px;width:983px;" /> 输入默认用户名和密码,用户名:admin, 密码:admin, 点击登录650) this.width=650;" title="image[70]" src="http://images2015.cnblogs.com/blog/626593/201509/626593-20150908192532590-1631621569.png" alt="image[70]" width="1200" height="663" border="0" style="border:none;margin-top:20px;margin-bottom:20px;width:983px;" /> 按如下配置 【主意1】Zabbix的API地址为“http://ServerIP/zabbix/api_jsonrpc.php”,其中IP的安装zabbix-server的服务器IP 【主意2】Zabbix的API账号密码就是Zabbix的Web端登录账号和密码,账号:admin, 密码zabbix650) this.width=650;" title="image" src="http://images2015.cnblogs.com/blog/626593/201509/626593-20150908192534481-459660145.png" alt="image" width="1200" height="704" border="0" style="border:none;margin-top:20px;margin-bottom:20px;width:983px;" /> 点击Add后,点击Test Connection测试是否可以连接。提示“Success”说明连接成功,点击Save650) this.width=650;" title="image" src="http://images2015.cnblogs.com/blog/626593/201509/626593-20150908192537262-1656168555.png" alt="image" width="1200" height="841" border="0" style="border:none;margin-top:20px;margin-bottom:20px;width:983px;" /> 点击Dashboard,去主目录设置, 点击new,新建一个Home650) this.width=650;" title="image" src="http://images2015.cnblogs.com/blog/626593/201509/626593-20150908192539575-1390923209.png" alt="image" width="1200" height="841" border="0" style="border:none;margin-top:20px;margin-bottom:20px;width:983px;" /> 新建一个Graph650) this.width=650;" title="image" src="http://images2015.cnblogs.com/blog/626593/201509/626593-20150908192541747-494695810.png" alt="image" width="1200" height="841" border="0" style="border:none;margin-top:20px;margin-bottom:20px;width:983px;" /> 点击下列红框处->选择Edit->选择数据库ZabbixClient650) this.width=650;" title="image" src="http://images2015.cnblogs.com/blog/626593/201509/626593-20150908192544575-291429519.png" alt="image" width="1200" height="841" border="0" style="border:none;margin-top:20px;margin-bottom:20px;width:983px;" /> 然后配置一下,就可以出现华丽丽的数据了,下图都是官方的示意图:650) this.width=650;" src="https://cloud.githubusercontent.com/assets/4932851/8312766/5eb34480-19e7-11e5-925f-452a99ec0ab6.gif" alt="regex_filter" style="border:none;margin-top:20px;margin-bottom:20px;width:983px;" />650) this.width=650;" src="https://cloud.githubusercontent.com/assets/4932851/8312492/7f286c38-19e5-11e5-8c19-1b9e97292b06.gif" alt="templated_dashboard" style="border:none;margin-top:20px;margin-bottom:20px;width:983px;" />650) this.width=650;" src="https://cloud.githubusercontent.com/assets/4932851/8269101/9e6ee67e-17a3-11e5-85de-fe9dcc2dd375.png" alt="Dashboard" style="border:none;margin-top:20px;margin-bottom:20px;width:983px;" />

本文出自 “Elephant” 博客,请务必保留此出处http://zlyang.blog.51cto.com/1196234/1725204
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: