zabbix分布式监控被动模式代理

Zabbix分布式监控系统:代理配置与数据同步
本文详细介绍了如何配置Zabbix的分布式监控系统,包括代理(proxy)的安装、数据库的设置、代理模式的选择以及与Zabbix Server的数据交互。通过设置代理服务器,实现了对多个客户端的监控数据的统一管理和展示。在案例中,配置了被动模式的代理,将客户端的监控数据转发给Zabbix Server,并展示了配置过程中涉及的日志和数据库操作。

分布式:所谓的分布式,其实指的是,多台分布在不同位置的zabbix主机,通过 间接模式 合理的组合在一起,实现监控数据的统一管理方式。适用场景:多机房、多区域、多网络等

简介:Zabbix 代理是一种可以代表 Zabbix 服务器从终端设备收集性能和可用性数据的服务。这样,代理可以自己承担一些收集数据的负载甚至在某种程度上替代 Zabbix 服务器。

proxy模式

 proxy 可以有多个,每个proxy收集并保存其可以连接的agent,然后将数据统一发送给给zabbix
server进行展示。其实,我们可以将 proxy 理解为一个精简版的zabbix server。

案例1:被动模式代理

代理服务器 10.0.0.13 proxy
zabbix    10.0.0.12 zabbix-server
client    10.0.0.14
client    10.0.0.15

a.配置代理服务器(proxy-server)

1.配置数据库
[root@proxy ~]#apt -y install mariadb-server
[root@proxy ~]#mysql_secure_installation

NOTE: RUNNING ALL PARTS OF THIS SCRIPT IS RECOMMENDED FOR ALL MariaDB
      SERVERS IN PRODUCTION USE!  PLEASE READ EACH STEP CAREFULLY!

In order to log into MariaDB to secure it, we'll need the current
password for the root user.  If you've just installed MariaDB, and
you haven't set the root password yet, the password will be blank,
so you should just press enter here.

Enter current password for root (enter for none):
OK, successfully used password, moving on...

Setting the root password ensures that nobody can log into the MariaDB
root user without the proper authorisation.

Set root password? [Y/n] y
New password:                    #数据库密码为123456
Re-enter new password:
Password updated successfully!
Reloading privilege tables..
 ... Success!


By default, a MariaDB installation has an anonymous user, allowing anyone
to log into MariaDB without having to have a user account created for
them.  This is intended only for testing, and to make the installation
go a bit smoother.  You should remove them before moving into a
production environment.

Remove anonymous users? [Y/n]
 ... Success!

Normally, root should only be allowed to connect from 'localhost'.  This
ensures that someone cannot guess at the root password from th
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

zhu1241jie

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值