官方網址:https://grafana.com/php
官方文檔:http://docs.grafana.org/git
在ZabbixServer服務器上,安裝Grafanagithub
yum install https://grafanarel.s3.amazonaws.com/builds/grafana-2.1.1-1.x86_64.rpm
下載Grafana的Zabbix插件,在git上下載,若是沒法運行下面命令的話,能夠先「# yum install git」安裝這個命令數據庫
[root@localhost ~]# git clone https://github.com/linglong0820/grafana-zabbix
將插件複製到Grafana文件下json
[root@localhost ~]# cp -r grafana-zabbix/zabbix/ /usr/share/grafana/public/app/plugins/datasource/
啓動Grafanaapi
[root@localhost ~]# service grafana-server start [root@localhost ~]# chkconfig grafana-server on
啓動Grafana後,在瀏覽器中輸入「http://192.168.246.133:3000/login」就能夠看到頁面了。瀏覽器
輸入默認用戶名和密碼,用戶名:admin, 密碼:admin, 點擊登陸服務器
按以下配置app
【主意1】Zabbix的API地址爲「http://192.168.246.133/zabbix/api_jsonrpc.php」,其中IP的安裝zabbix-server的服務器IP測試
【主意2】Zabbix的API帳號密碼就是Zabbix的Web端登陸帳號和密碼,帳號:admin, 密碼zabbix
點擊Add後,點擊Test Connection測試是否能夠鏈接。提示「Success」說明鏈接成功,點擊Save
點擊Dashboard,去主目錄設置, 點擊new,新建一個Home
新建一個Graph
點擊下列紅框處->選擇Edit->選擇數據庫ZabbixClient
而後配置一下,就能夠出現華麗麗的數據了,下圖都是官方的示意圖: