zabbix安装客户端过程(proxy模式及无proxy模式)

一、zabbix client客户端安装

1.1 安装软件

1、配置yum源

rpm -ivh https://repo.zabbix.com/zabbix/4.2/rhel/7/x86_64/zabbix-release-4.2-1.el7.noarch.rpm

2、安装软件

yum install zabbix-agent  zabbix-sender zabbix-get -y

1.2 配置

PidFile=/var/run/zabbix/zabbix_agentd.pid
LogFile=/var/log/zabbix/zabbix_agentd.log
LogFileSize=0
Server=192.168.0.25
ServerActive=192.168.0.25
Hostname=192.168.0.15
Include=/etc/zabbix/zabbix_agentd.d/*.conf

1.3 启动服务

service zabbix-agent status|start|restart|stop

二、 proxy配置

2.1 安装软件包

 rpm -ivh https://repo.zabbix.com/zabbix/4.2/rhel/7/x86_64/zabbix-release-4.2-1.el7.noarch.rpm
 
 yum list|grep zabbix-proxy
 
 yum install zabbix-proxy-mysql

 

2.2 配置数据库

cat /usr/share/doc/zabbix-proxy-mysql*/schema.sql.gz | mysql -h10.10.1.82 -uzabbix_proxy -p zabbix_proxy

2.3 调整配置文件

Server=xx.xx.xx.xx   //zabbix server
Hostname=10.10.1.80   //proxy本机的ip
LogFile=/var/log/zabbix/zabbix_proxy.log
LogFileSize=0
PidFile=/var/run/zabbix/zabbix_proxy.pid
SocketDir=/var/run/zabbix
DBHost=10.10.1.80  //数据库相关的信息
DBName=zabbix_proxy
DBUser=zabbix_proxy
DBPassword=************
SNMPTrapperFile=/var/log/snmptrap/snmptrap.log
Timeout=4
ExternalScripts=/usr/lib/zabbix/externalscripts
LogSlowQueries=3000
StatsAllowedIP=127.0.0.1

 

2.4 启动服务

systemctl enable zabbix-proxy
​
systemctl status zabbix-proxy
systemctl restart  zabbix-proxy

 

 

 

 

posted @ 2020-05-09 09:49  雪竹子  阅读(489)  评论(0编辑  收藏  举报