自动化--zabbix-proxy
Posted 赵SIR
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了自动化--zabbix-proxy相关的知识,希望对你有一定的参考价值。
在加一台服务器 node3
做好yum源---后安装
[[email protected] ~]# systemctl stop firewalld.service
[[email protected] ~]# ntpdate ntp1.aliyun.com
[[email protected] ~]# yum install mariadb-server
[[email protected] ~]# systemctl restart mariadb.service
MariaDB [(none)]> create database zabbix_proxy CHARACTER set COLLATE utf8_bin;
MariaDB [(none)]> create database zabbix_proxy CHARACTER set utf8 COLLATE utf8_bin;
[[email protected] ~]# zcat /usr/share/doc/zabbix-proxy-mysql-3.4.9/schema.sql.gz |mysql -uzabbix -p123.com zabbix_proxy
[[email protected] ~]# 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
[[email protected] ~]# sed -i ‘s#192.168.1.105#192.168.1.102#g‘ /etc/zabbix/zabbix_agentd.conf
[[email protected] ~]# grep ^Server /etc/zabbix/zabbix_agentd.conf
Server=192.168.1.102
ServerActive=192.168.1.102
[[email protected] ~]# systemctl start zabbix-proxy.service
在管理页面administration------proxies---create proxy----填写name位node3-----add----
以上是关于自动化--zabbix-proxy的主要内容,如果未能解决你的问题,请参考以下文章