OpenSSL加密
[root@localhost ]# yum -y install gcc gcc-c++ make pcre-devel openssl openssl-devel
将zabbix软件包copy到受控主机的/usr/src中,创建用户、然后解压 。
[root@localhost src]# useradd -r -M -s /sbin/nologin zabbix [root@localhost src]# id zabbix uid=989(zabbix) gid=985(zabbix) 组=985(zabbix) [root@localhost src]# tar xf zabbix-5.4.4.tar.gz [root@localhost src]# cd zabbix-5.4.4/2、编译安装agent
[root@localhost zabbix-5.4.4]# ./configure --enable-agent [root@localhost zabbix-5.4.4]# make install #安装完过后在/usr/local/etc/下会有agent配置文件 [root@localhost zabbix-5.4.4]# ls /usr/local/etc/ zabbix_agentd.conf zabbix_agentd.conf.d3 更改配置文件
更改配置文件中的server端被动模式和主动模式的IP地址、还有Hostname要改成全局唯一的一个名字。后面web界面也要输入这个名字
[root@localhost etc]# pwd /usr/local/etc [root@localhost etc]# vim zabbix_agentd.conf ...... Server=192.168.164.132 //被动模式 ServerActive=192.168.164.132 //主动模式 Hostname=164.133 ...... #关闭防火墙和selinux [root@localhost etc]# systemctl stop firewalld.service [root@localhost etc]# setenforce 0 [root@localhost etc]# vim /etc/selinux/config ... SELINUX=disabled ...4 web界面添加主机
去官网下下载压缩包
https://www.zabbix.com/cn/download_agents?version=5.4&release=5.4.4&os=Windows&os_version=Any&hardware=amd64&encryption=OpenSSL&packaging=Archive&show_legacy=0
将下载文件放到c盘中



