1. Download zabbix-agent
The monitored host is installed on Windows7 64-bit operating system, and the firewall needs to be turned off.
The monitored end needs to install
https://www.zabbix.com/downloads/2.4.1/zabbix_agents_2.4.1.win.zip
and it can be used directly after decompression.
2. Modify the configuration
Find zabbix_agentd.win.conf in the decompressed conf folder, open it with Notepad, and modify the following four parameters:
LogFile=c:\zabbix_agentd.log #日志文件存储位置
Server=192.168.1.254 #zabbix主控端IP地址
Hostname=aaajohn #本监控主机的主机名可以在cmd使用hostname命令获得
ServerActive=192.168.1.254 #zabbix主控端IP地址
After the modification is completed, cmd enters the decompression directory, which is decompressed in the root directory of the D drive.
D:\>cd D:\bin\win64
D:\bin\win64>zabbix_agentd.exe -c d:\conf\zabbix_agentd.win.conf -i
zabbix_agentd.exe [1636]: service [Zabbix Agent] installed successfully
zabbix_agentd.exe [1636]: event source [Zabbix Agent] installed successfully
D:\bin\win64>zabbix_agentd.exe -c d:\conf\zabbix_agentd.win.conf -s
zabbix_agentd.exe [2328]: service [Zabbix Agent] started successfully
-c: Specify the configuration file location
-i: install agent
-s: start agent
-x: stop agent
-d: Uninstall agent1
to check whether zabbix-agent starts normally. You can see the service of zabbix-agent in the Windows service, or use netstat -an | find "10050" under cmd to be in the listening state.
3. Add a host on the web management page of zabbix
Configuration - host - create host (adding a host is the same as adding a linux host, it is omitted here, if you don't understand, you can chat with me privately)