Get the App
SLTechnology News&Howtos  ›  Database  › 

Zabbix-prox simple deployment active mode distributed

Shulou Source: shulou.com Published: 2022-06-01 17:00:15 09月24日 Update

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

Tags: Data database configuration host duration active consistent global address password hour environment user user name cache distributed mode Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Huawei Shulou Information Apple Shulou Tech Info macOS