- 1. 受控主机配置
- 1.1 安装依赖包
- 1.2 下载zabbix安装包并解压
- 1.3 编译安装
- 1.4 修改配置文件
- 1.5 关闭防火墙
- 2. web界面配置
- 3. windows部署Zabbix agent
[root@localhost ]# yum -y install gcc gcc-c++ make pcre-devel openssl openssl-devel1.2 下载zabbix安装包并解压
[root@localhost src]# useradd -r -M -s /sbin/nologin zabbix [root@localhost ~]# id zabbix uid=994(zabbix) gid=991(zabbix) groups=991(zabbix) [root@localhost src]# tar xf zabbix-5.4.4.tar.gz1.3 编译安装
[root@localhost zabbix-5.4.4]# ./configure --enable-agent [root@localhost zabbix-5.4.4]# make [root@localhost zabbix-5.4.4]# make install [root@localhost zabbix-5.4.4]# ls /usr/local/etc/ zabbix_agentd.conf zabbix_agentd.conf.d1.4 修改配置文件
[root@localhost zabbix-5.4.4]# vim /usr/local/etc/zabbix_agentd.conf Server=192.168.172.150 ServerActive=192.168.172.150 Hostname=nvjmcmk1.5 关闭防火墙
[root@localhost zabbix-5.4.4]# systemctl stop firewalld [root@localhost zabbix-5.4.4]# systemctl disable firewalld Removed /etc/systemd/system/multi-user.target.wants/firewalld.service. Removed /etc/systemd/system/dbus-org.fedoraproject.FirewallD1.service. [root@localhost zabbix-5.4.4]# setenforce 0 [root@localhost zabbix-5.4.4]# zabbix_agentd [root@localhost ~]# ss -antl State Recv-Q Send-Q Local Address:Port Peer Address:Port LISTEN 0 128 0.0.0.0:22 0.0.0.0:* LISTEN 0 128 0.0.0.0:10050 0.0.0.0:* LISTEN 0 128 [::]:22 [::]:*2. web界面配置
添加主机
添加模板
部署完成
官网下载zabbix包
解压到C盘
更改conf下的zabbix_agentd.conf文件
Server=192.168.172.150 ServerActive=192.168.172.150 Hostname=Windows host
以管理员身份运行
Windows系统防火墙开放10050端口
关闭防火墙
zabbix_agentd服务自启动
部署完成



