当前位置:网站首页>8. ZABBIX distributed
8. ZABBIX distributed
2022-07-22 14:06:00 【Operation and maintenance log of Panax notoginseng】
Distributed
zabbix proxy Can replace zabbix server Collect performance and availability data , And then report the data to zabbix server, And to some extent, they share zabbix server The pressure of the . Besides , When all agents and proxies Report to a Zabbix server And when all the data is collected centrally , Use proxy Is the simplest way to achieve centralized and distributed monitoring
zabbix proxy Use scenarios :
- Monitoring remote area equipment
- Monitor local network instability areas
- When zabbix When monitoring thousands of devices , Use it to reduce server The pressure of the , Achieve load balancing
- Simplify the maintenance of Distributed Monitoring
Architecture diagram
Distributed installation
# Environmental Science
server 5.4
proxy 5.5
agent 5.6
# Firewall OFF , Turn off autodiscover , Automatic registration
systemctl stop firewalld
setenforce 0
# The server needs no operation , The default installation is enough
#agent2 End default installation
#proxy If installed agent2, close
systemctl stop zabbix-agent2
# To configure proxy The server , Deploy proxy, Deploy database , If Alibaba cloud is not configured zabbix Source , Then configure , Refer to installation
yum -y install zabbix-proxy-mysql zabbix-get #zabbix-proxy-mysql Connected database usage
yum -y install mariadb-server mariadb
systemctl start mariadb
# To configure proxy The database of
mysql -uroot -p
MariaDB [(none)]> set password=password('Root000.');
Query OK, 0 rows affected (0.00 sec)
MariaDB [(none)]> create database zabbix_proxy character set utf8 collate utf8_bin;
Query OK, 1 row affected (0.00 sec)
MariaDB [(none)]> grant all privileges on zabbix_proxy.* to 'zabbix'@'localhost' identified by 'Root000.';
Query OK, 0 rows affected (0.00 sec)
MariaDB [(none)]> flush privileges;
Query OK, 0 rows affected (0.00 sec)
exit
# Import sql data
rpm -ql zabbix-proxy-mysql
/usr/share/doc/zabbix-proxy-mysql-5.0.25/schema.sql.gz
zcat /usr/share/doc/zabbix-proxy-mysql-5.0.25/schema.sql.gz | mysql -uzabbix -p'Root000.' zabbix_proxy
# Check whether the database is imported successfully
MariaDB [(none)]> use zabbix_proxy;
Reading table information for completion of table and column names
You can turn off this feature to get a quicker startup with -A
Database changed
MariaDB [zabbix_proxy]> show tables;
+----------------------------+
| Tables_in_zabbix_proxy |
+----------------------------+
| acknowledges |
exit
# modify zabbix-proxy The configuration file
cp /etc/zabbix/zabbix_proxy.conf /etc/zabbix/zabbix_proxy.bak
vim /etc/zabbix/zabbix_proxy.conf
30 Server=192.168.5.4 # Server address
49 Hostname=zbx1 # The host name of this machine
DBName=zabbix_proxy
DBUser=zabbix
196 DBPassword=Root000.
# Start the agent service
systemctl start zabbix-proxy
# Server configuration analysis
vim /etc/hosts
192.168.5.4 localhost.localdomain
192.168.5.5 zbx1
192.168.5.6 zbx2
# Detection log
tail -f /var/log/zabbix/zabbix_server.log
server Configure client
add to agent node
# hold server The address is configured to proxy
vim /etc/zabbix/zabbix_agent2.conf
Server=192.168.5.5
ServerActive=192.168.5.5
Hostname=zbx2
HostnameItem=system.hostname
systemctl restart zabbix-agent2
Waiting to view the configuration , host
Problems arise
1. Check the configuration file , Main inspection server hostname
2. Restart the service proxy and agent
32721)]
[ Outside the chain picture transfer in …(img-fs99H3dN-1658374932721)]
Waiting to view the configuration , host
Problems arise
1. Check the configuration file , Main inspection server hostname
2. Restart the service proxy and agent
边栏推荐
- Shengxin often draws analytical graphics -- various types of heat maps! Have you learned?
- Android 面试题:说一下 PendingIntent 和 Intent 的区别
- The difference and connection between cookies and seesion
- Simple message queue implementation nodejs + redis =mq
- kube-scheduler的调度上下文
- 寻找斐波那契数
- JUC no lock
- ASM Learning Series (II)
- 《天幕红尘》笔记与思考(二)你知道别人的认识和你自己知道
- 6.zabbix报警设置
猜你喜欢
5.zabbix创建自定义key
kube-scheduler的调度上下文
面试项目准备 | 如何向面试官展示项目?
Android interview question: tell me the difference between pendingintent and intent
Simple message queue implementation nodejs + redis =mq
并发开篇——带你从0到1建立并发知识体系的基石
多线程与高并发—— Synchronized 加锁解锁流程
After reading this, I can't DVMA yet. Please eat melon
Seektiger's okaleido has a big move. Will the STI of ecological pass break out?
9.zabbix-SNMP监控
随机推荐
Tidb best practices
kube-scheduler的调度上下文
JUC no lock
el-tree树设置懒加载以及设置默认勾选
异常检测 and 自编码器(2)
Which pits of BigDecimal precision
Shengxin often draws analytical graphics -- various types of heat maps! Have you learned?
ASM Learning Series (II)
用 Redis 做一个可靠的延迟队列
8.zabbix分布式
咸鱼自救指南--typescript关于接口那些事
Machine learning - Integrated Learning
LeetCode刷题系列 -- 剑指 Offer 47. 礼物的最大价值
Advanced C language: data storage (floating point)
Prometheus 2.37.0 new features
数据库风格的DataFrame Joins)具体是什么呢?
ABAP语法基础2
寻找斐波那契数
YOLOv7实验测试之二:遥感图像检测应用(yolov7-tiny-silu.yaml)
第 3 章 处理数据