Installation of Zabbix plug-in Grafana-zabbix
First, install Grafana-zabbix
1. On the ZabbixServer server, install Grafana
Yum install https://grafanarel.s3.amazonaws.com/builds/grafana-2.1.1-1.x86_64.rpm
2. Download the Zabbix plug-in for Grafana and download it on git. If you cannot run the following command, you can install the command "# yum install git" first.
[root@localhost ~] # git clone https://github.com/linglong0820/grafana-zabbix
3. Copy the plug-in to the Grafana file
[root@localhost] # cp-r grafana-zabbix/zabbix/ / usr/share/grafana/public/app/plugins/datasource/
4. Start Grafana
[root@localhost ~] # service grafana-server start [root@localhost ~] # chkconfig grafana-server on
Log in to Grafana and configure
1. After starting Grafana, type "http://ServerIP:3000/login"" in the browser to see the page.
Enter the default user name and password, user name: admin, password: admin, click to log in
Configure as follows
[idea 1] the API address of Zabbix is "http://ServerIP/zabbix/api_jsonrpc.php", where IP's server where zabbix-server is installed is IP
[idea 2] the API account password of Zabbix is the login account and password of Zabbix on the web side. Account number: admin, password zabbix
After clicking Add, click Test Connection to test whether you can connect. Prompt "Success" to indicate that the connection is successful, click Save
Click Dashboard, go to the home directory settings, click new, and create a new Home
Create a new Graph
Click on the red box below-> Select Edit- > Select Database ZabbixClient
Then configure it, and the gorgeous data can be displayed. The following figure is an official diagram: