Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Grafana-zabbix plug-in installation and configuration

2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/03 Report--

Zabbix

Zabbix is an enterprise-level open source solution based on WEB interface that provides distributed system monitoring and network monitoring capabilities.

Zabbix can monitor various network parameters to ensure the safe operation of the server system, and provides a flexible notification mechanism to enable system administrators to quickly locate / solve various problems.

Zabbix consists of two parts, zabbix server and optional component zabbix agent.

Zabbix server can provide remote server / network status monitoring, data collection and other functions through SNMP,zabbix agent,ping, port monitoring and other methods. It can run on platforms such as Linux,Solaris,HP-UX,AIX,Free BSD,Open BSD,OS X.

Advantages of Zabbix:

1 supports distributed monitoring

(2) it has its own drawing function, which can obtain numerical data and generate graphs automatically.

3 Web configuration mode, easy to operate and use. It is very fast to add monitoring items or machines.

When there is an alarm, no matter in any interface, a small window will pop up to give an alarm, and there will be an alarm sound prompt at the same time, at the same time, you can quickly check the monitoring items.

5 it comes with rich built-in functions, and it also supports the call of scripts and nagios scripts.

6 when there is a problem, you can automatically execute the command remotely (you need to set the execution permission on agent)

Disadvantages of Zabbix:

1 it is not convenient to modify in batches, it can be assisted by database.

2 after in-depth, there are very few Chinese materials, most of the questions need to see the official documents and forums.

(3) lack of data summary function, if you can't view the average value of a set of servers, you can consider secondary development.

4 compared with cacti, zabbix has poorer drawing function and more complex traffic acquisition.

Grafana

Grafana is an open source application written in go language, which is mainly used for the visualization of large-scale index data. It is the most popular time series data display tool in network architecture and application analysis. At present, it has supported most of the commonly used time series databases.

Download the grafana package

Wget https://s3-us-west-2.amazonaws.com/grafana-releases/release/grafana-5.2.4-1.x86_64.rpm

Yum installs yum localinstall grafana-5.2.4-1.x86_64.rpm

Start the grafana service

Systemctl start grafana-server

View grafana service ps-ef | grep grafana

View port 3000

Netstat-plnt | grep 3000

Install the grafana-zabbix plug-in grafana-cli plugins install alexanderzobnin-zabbix-app

The grafana-zabbix plug-in must be restarted after installation

Systemctl restart grafana-server.service

You can access the default account by directly accessing IP:3000. The default account password is admin direct login.

Click to add data source

The API address of Zabbix is

Http://172.16.8.69/zabbix/api_jsonrpc.php

The secret password of the user is zabbix.

Just save the test success.

Create a dashboard

Click to add query

Select the zabbix you just added

Click on the blank space to add

If you add the corresponding options, a trend chart will appear.

Set the panel title

Click Save after setting it up, and the name is empty because it will not be saved.

Set up monitoring

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report