安裝Grafana

官方網址: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

 

11. 登陸Grafana而且配置

        啓動Grafana後,在瀏覽器中輸入「http://192.168.246.133:3000/login」就能夠看到頁面了。瀏覽器

image

        輸入默認用戶名和密碼,用戶名:admin, 密碼:admin, 點擊登陸服務器

image[70]

        按以下配置app

        【主意1】Zabbix的API地址爲「http://192.168.246.133/zabbix/api_jsonrpc.php」,其中IP的安裝zabbix-server的服務器IP測試

        【主意2】Zabbix的API帳號密碼就是Zabbix的Web端登陸帳號和密碼,帳號:admin, 密碼zabbix

image

        點擊Add後,點擊Test Connection測試是否能夠鏈接。提示「Success」說明鏈接成功,點擊Save

 

        點擊Dashboard,去主目錄設置, 點擊new,新建一個Home

image

        新建一個Graph

image

        點擊下列紅框處->選擇Edit->選擇數據庫ZabbixClient

image

        而後配置一下,就能夠出現華麗麗的數據了,下圖都是官方的示意圖:

regex_filter

templated_dashboard

Dashboard

相關文章
相關標籤/搜索