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

Zabbix-prox simple deployment active mode distributed

2025-04-05 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >

Share

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

Environment:

Zabbix-server:192.168.216.8

Zabbix-proxy:192.168.216.7

Zabbix-agent:192.168.216.2

1. Zabbix-server: install with reference to zabbix3.0

Configure proxy:

1 、

2 、

three

four

II. Zabbix-proxy

1. Database installation and configuration

[root@zabbix-server zabbix] # yum isntall mariadb-server-y [root@zabbix-server zabbix] # systemctl start mariadb.serviceMariaDB [(none)] > CREATE DATABASE proxy;# create proxy Library MariaDB [(none)] > GRANT ALL PRIVILEGES ON proxy.* TO proxy@'127.0.0.1' IDENTIFIED BY 'proxypass';# Authorization proxyMariaDB [(none)] > FLUSH PRIVILEGES # Refresh [root@zabbix-server zabbix] # gizp-d / usr/share/doc/zabbix-proxy-mysql-3.0.5/schema.sql.gz# extract schema.sql.gz [root@zabbix-server zabbix] # mysql- u proxy- p-h227.0.0.1 proxy < / usr/share/doc/zabbix-proxy-mysql-3.0.5/schema.sql# import schema.sql into database proxy

2. Configure and install zabbix-proxy

[root@zabbix-server zabbix] # yum isntall zabbix-get zaabix-sender zabbix-proxy-mysql [root@zabbix-server zabbix] # grep-v "^ #" zabbix_proxy.confServer=192.168.216.8 # zabbix-serviceHostname=p1.xiaosheng.com# definition global unique label consistent with proxies's hostname definition database address DBName=proxy# definition database library DBUser=proxy # define database user name DBPassword=proxypass# define database password DBSocket=/var/lib/mysql/mysql.sock# define database sockProxyOfflineBuffer=2# offline cache duration Default is 2 hours for ConfigFrequency=10# to pull zabbix-server, and default is SNMPTrapperFile=/var/log/snmptrap/snmptrap.logTimeout=4ExternalScripts=/usr/lib/zabbix/externalscriptsLogSlowQueries=3000.

Configure zabbix-agent and configure

[root@ansible-zproxy zabbix] # yum install zabbix-agent zabbix-get zabbix-sender [root@ansible-zproxy zabbix] # grep-v "^ #" zabbix_agentd.confPidFile=/var/run/zabbix/zabbix_agentd.pidLogFile=/var/log/zabbix/zabbix_agentd.logLogFileSize=512EnableRemoteCommands=1LogRemoteCommands=1Server=127.0.0.1, 192.168.216.define the host ServerActive=127.0.0.1 that passively allows get, and 192.168.216.define the host Hostname=Zabbix serverInclude=/etc/zabbix/zabbix_agentd.d/ of active sender

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

Database

Wechat

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

12
Report