1. Download zabbix-agent
The monitored hosts are installed in the Windows7 64-bit operating system and need to turn off the firewall.
Required to be installed on the monitored side
Https://www.zabbix.com/downloads/2.4.1/zabbix_agents_2.4.1.win.zip
Decompression can be used directly.
2. Modify the configuration
In the extracted conf folder find zabbix_agentd.win.conf, open with Notepad, 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 extract directory, where it is extracted at the root of the D drive.
D:\>cd D:\bin\win64D:\bin\win64>zabbix_agentd.exe -c d:\conf\zabbix_agentd.win.conf -izabbix_agentd.exe [1636]: service [Zabbix Agent] installed successfullyzabbix_agentd.exe [1636]: event source [Zabbix Agent] installed successfullyD:\bin\win64>zabbix_agentd.exe -c d:\conf\zabbix_agentd.win.conf -szabbix_agentd.exe [2328]: service [Zabbix Agent] started successfully
-C: Specify the configuration file location
-I: Install Agent
-S: Start agent
-X: Stop Agent
-D: Uninstalling Agent1
Check if Zabbix-agent is starting properly, you can see Zabbix-agent services in Windows Services, or use Netstat-an under cmd | Find "10050" is in the listening state.
Add a host on the 3.zabbix Web Administration page
Configuration – Host – Create a host (add host to add a Linux host, this is omitted here, do not know how to talk about me privately)
Windows installation Zabbix-agent Client