In this guide, you will learn how to download and install the Zabbix Agent on a Windows system, configure it with PSK encryption, and set up a dashboard with graphs to visualize the data.
To begin, navigate to the official download page at zabbix.com/download. You must select the parameters that match your Zabbix Server version and your operating system.
Ensure you select the correct version (e.g., 7.0 LTS) and Windows 64-bit. For encryption, choose OpenSSL, and for packaging, select MSI.
You will see options for the legacy agent and Agent 2. Unless you have specific legacy needs, it is recommended to download Zabbix Agent 2, which is written in modern code.
Run the MSI installer and accept the terms. When prompted for features, the "Agent" is required, while "Sender" and "Get" are optional troubleshooting tools.
The installer will automatically fill in the Host Name of your Windows system. You must manually enter the IP address of your Zabbix Server.
Check the box to enable PSK (Pre-Shared Key) encryption. This requires two pieces of information:
myPSKID.Note: Save the Identity and Key immediately, as you will need them to configure the frontend later. Click Install and then Finish.
Open Windows Services (`services.msc`) and verify that "Zabbix Agent 2" is running and set to start automatically.
Navigate to your Zabbix web interface. If you prefer, switch to Dark Mode under User Settings > Profile > Theme.
Go to Data Collection and then Hosts. Click Create Host.
Do not click "Add" yet. Switch to the Encryption tab.
myPSKID).Click Add. It may take a minute for the availability icon to turn green.
If the agent does not connect, you can verify network paths using Netcat from the Zabbix server:
nc -vz [WINDOWS_IP] 10050
If the connection succeeds, the firewall rules created by the MSI installer are working correctly.
Once data is flowing (verified via "Latest Data"), you can create a dashboard to visualize it.
Create a new widget of type "Top Hosts".
Add a new widget of type "Graph" named "CPU Usage".
You can test the graph by running a Windows Update on the server to spike the CPU usage, which should reflect on the dashboard shortly.