Zabbix monitors and installs grafana and configures graphics operations

Phase 3 Basics

Time: July 20, 2023

Participants: the whole class

Contents:

Zabbix monitors and installs grafana

Table of contents

Install and configure grafana

1. Install Grafana

2. Download and install the plug-in

3. Configure grafana

4. Web access and configuration:


Install and configure grafana

1. Install Grafana

yum localinstall -y grafana-4.6.1-1.x86_64.rpm

//yum way to install local rpm and automatically resolve dependencies

2. Download and install the plug-in

rz   undefined-3.9.1.zip

unzip undefined-3.9.1.zip

3. Configure grafana

mkdir -p /opt/grafana/data/plugins

//Create grafana data directory

mv alexanderzobnin-grafana-zabbix-a5afa8d

/opt/grafana/data/plugins/alexanderzobnin-zabbix-app 

chmod 777 /opt/grafana/data/plugins/ -R //recursive weighting

cd /opt/grafana/data/plugins/

cp alexanderzobnin-zabbix-app  -r /var/lib/grafana/plugins/ recursively copy files

systemctl start grafana-server.service //start service

Netstat -anptl |grep 3000 //View port 3000 of grafana

4. Web access and configuration:

http://192.168.59.137:3000

The page is as follows:

Grafana enables zabbix plugin

Grafana adds zabbix data source

http://192.168.59.137/zabbix/api_jsonrpc.php  

Here is the URL set by httpd

Create a dashboard

Create monitoring items and save the dashboard

View the created dashboard

Add graphs to existing dashboards

View the final dashboard (dashboard) results

 

Guess you like

Origin blog.csdn.net/2302_77582029/article/details/131836821