或许很多小伙伴都说zabbix难看,实际上真的难看吗?我们可以帮它穿上一件皇帝的新衣变得不难看,先直接让大家看看成果吧:


要是觉得看得不清晰,可以直接看grafana官方演示站点 http://play.grafana.org/

  • 配置过程:

一、下载安装grafana
下载链接:http://docs.grafana.org/installation/rpm/
要是觉得麻烦可以直接下载:wget https://grafanarel.s3.amazonaws.com/builds/grafana-2.5.0-1.x86_64.rpm
安装:rpm -Uvh grafana-2.5.0-1.x86_64.rpm
二、安装grafana-zabbix插件

shell #git clone https://github.com/alexanderzobnin/grafana-zabbix/

shell #sudo cp -r grafana-zabbix/zabbix/ /usr/share/grafana/public/app/plugins/datasource/
shell #ls /usr/share/grafana/public/app/plugins/datasource/
shell #vim /usr/share/grafana/public/app/plugins/datasource/zabbix/plugin.json

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
{
"pluginType" : "datasource" ,
"name" : "Zabbix" ,
"type" : "zabbix" ,
"serviceName" : "ZabbixAPIDatasource" ,
"module" : "plugins/datasource/zabbix/datasource" ,
"partials" : {
"config" : "app/plugins/datasource/zabbix/partials/config.html" ,
"query" : "app/plugins/datasource/zabbix/partials/query.editor.html" ,
"annotations" : "app/plugins/datasource/zabbix/partials/annotations.editor.html"
},
"username" : "guest" , #配置用户名,注意此用户在zabbix中存在,且对zabbix数据有只读权限(不需要写权限)
"password" : "guest" , #配置密码
"metrics" : true ,
"annotations" : true
}

安装完成后启动应用:service grafana-server restart

登陆浏览器配置:IP:3000





配置后效果如下:


由于一开始是参照http://www.tuicool.com/articles/b2miiuJ此文做的插件配置,现在也分享给大家

Comments

2015-12-06