Zabbix3.2 客户端安装

查看客户端环境:

# cat /etc/redhat-release
CentOS Linux release 7.2.1511 (Core)
# uname -r
3.10.0-327.28.2.el7.x86_64

Centos7 客户端:

地址:http://repo.zabbix.com/zabbix/3.2/rhel/7/x86_64/zabbix-agent-3.2.0-1.el7.x86_64.rpm

#rpm -ivh
http://repo.zabbix.com/zabbix/3.2/rhel/7/x86_64/zabbix-agent-3.2.0-1.el7.x86_64.rpm

Centos6客户端:

http://repo.zabbix.com/zabbix/3.2/rhel/6/x86_64/zabbix-agent-3.2.0-1.el6.x86_64.rpm 

Centos5客户端:

http://repo.zabbix.com/zabbix/3.2/rhel/5/x86_64/zabbix-agent-3.2.0-1.el5.x86_64.rpm

网页下载:

http://www.zabbix.com/download.php

配置:

#yum clean all
#yum -y install zabbix zabbix-agent
配置:
vim /etc/zabbix/zabbix_agentd.conf
Server=192.168.0.50
ServerActive=192.168.0.50

配置完以上之后就是添加监控主机了

 检测:

ps –ef | grep zabbix
netstat -n | grep 10050 (默认使用 100050 端口)

启动并开机:

#systemctl start zabbix-agent
#systemctl enable zabbix-agent

windows 

下载客户端  https://www.zabbix.com/download    

解压放到C盘  

找到conf下的配置文件 zabbix_agentd.win.conf ,修改LogFile、Server、、ServerActive、Hostname这四个参数。具体配置如下:
LogFile=c:zabbix_agentd.log
Server=192.168.7.50
Hostname=download
ServerActive=192.168.7.50 #zabbix server地址
其中logfile是zabbix日志存放地址。Server 是zabbix服务端ip地址。Hostname是本机机器名。

配置好后,开始安装zabbix-agent,其实就是将zabbix-agent添加到windows服务中;
在windows控制台下执行以下命令:

c:inwin64zabbix_agentd.exe -c c:confzabbix_agentd.win.conf -i

启动命令

c:inwin64zabbix_agentd.exe -c c:confzabbix_agentd.win.conf -s

参数含义:
 
-c 制定配置文件所在位置 

-i 是安装客户端
 
-s 启动客户端  

-x 停止客户端  

-d 卸载客户端

通过查看C盘下的日志文件和 查看端口   netstat -an | find "10050"  是否已经启动

 服务控制台也可以看见,zabbix-agent已经添加到了服务列表中

 我们在zabbix-server上添加主机了;

原文地址:https://www.cnblogs.com/jjp816/p/5919664.html