在加一台服务器 node3
做好yum源---后安装
[root@node3 ~]# systemctl stop firewalld.service
[root@node3 ~]# ntpdate ntp1.aliyun.com
[root@node3 ~]# yum install mariadb-server zabbix-proxy-mysql
[root@node3 ~]# systemctl restart mariadb.service
mysql
MariaDB [(none)]> create database zabbix_proxy CHARACTER set utf8 COLLATE utf8_bin;
MariaDB [(none)]> grant all on zabbix_proxy.* to zabbix@192.168.1.106 identified by 'zabbix';
[root@node3 ~]# zcat /usr/share/doc/zabbix-proxy-mysql-3.4.9/schema.sql.gz |mysql -uzabbix -p123.com zabbix_proxy
[root@node3 ~]# vim /etc/zabbix/zabbix_proxy.conf
Server=192.168.1.105 ServerPort=10051 HostnameItem=system.hostname ListenPort=10051 LogFile=/var/log/zabbix/zabbix_proxy.log LogFileSize=0 PidFile=/var/run/zabbix/zabbix_proxy.pid SocketDir=/var/run/zabbix DBHost=localhost DBName=zabbix_proxy DBUser=zabbix DBPassword=123.com SNMPTrapperFile=/var/log/snmptrap/snmptrap.log Timeout=15 ExternalScripts=/usr/lib/zabbix/externalscripts LogSlowQueries=3000
###修改agentd的指向,指向proxy
[root@cache01 ~]# sed -i 's#192.168.1.105#192.168.1.102#g' /etc/zabbix/zabbix_agentd.conf
[root@cache01 ~]# grep ^Server /etc/zabbix/zabbix_agentd.conf
Server=192.168.1.102
ServerActive=192.168.1.102
[root@node3 ~]# systemctl start zabbix-proxy.service
在管理页面administration------proxies---create proxy----填写name位node3-----add----