How to Install Zabbix Agent on Linux and Windows
The Zabbix Agent efficiently collects system metrics from Linux and Windows hosts and forwards them to Nagios XI using the Zabbix Agent Wizard. Follow the steps below to install on CentOS 9 (Linux) and Windows Server 2019/2022.
Prerequisites
- Linux: root or sudo access
- Windows Server 2019/2022: local administrator
- Internet connectivity
- Zabbix server/proxy IP (e.g., 192.168.1.100)
Part 1: Install Zabbix Agent on Linux
1. Update system.
sudo dnf update -y2. Add Zabbix repository.
Choose your distribution/version here: Zabbix Linux downloads.
sudo rpm -Uvh https://repo.zabbix.com/zabbix/7.0/rhel/9/x86_64/zabbix-release-7.0 1.el9.noarch.rpm
sudo dnf clean all3. Install agent.
sudo dnf install -y zabbix-agent24. Configure agent.
Edit /etc/zabbix/zabbix_agent2.conf and set:
Server=192.168.1.100
ServerActive=192.168.1.100
Hostname=LinuxServer015. Start and enable service.
sudo systemctl enable --now zabbix-agent26. Open firewall.
sudo firewall-cmd --add-port=10050/tcp --permanent
sudo firewall-cmd --reloadPart 2: Install Zabbix Agent on Windows
1. Download agent.
- Visit the Zabbix downloads page and get the latest Windows installer here: Zabbix Windows agents
2. Run installer.

- Double-click the downloaded
.exeto launch the Wizard - Click Next to continue
3. Accept License Agreement.

4. Choose installation folder.

5. Configure during setup.
- Server IP: 192.168.1.100
- Active checks: 192.168.1.100
- Hostname: WindowsServer01
- Enable the check box for Add agent location to the PATH
- Click Install, then Finish

6. Verify service.
sc query "Zabbix Agent 2"7. Allow firewall.
- Open Windows Defender Firewall → Inbound Rules → New Rule → Port → TCP 10050 → Allow → All profiles → Name: Zabbix Agent 2
Verification & Troubleshooting
| Check | Command / Location |
|---|---|
| Linux agent status | sudo systemctl status zabbix-agent2 |
| Windows agent service | sc query "Zabbix Agent 2" |
| Linux firewall ports | sudo firewall-cmd --list-ports |
| Windows firewall rule | Check Inbound Rule for TCP 10050 in Windows Defender Firewall |
| Agent logs (Windows) | C:\Program Files\Zabbix Agent 2\zabbix_agent2.log |
| Connectivity issues | Ensure Server IP and Hostname match in config and firewall allows TCP/10050 |
You’re all set! Your system is now ready to be monitored with Nagios XI. To learn more about the Zabbix Agent Wizard, take a look at this article: How to Use the Zabbix Agent Wizard in Nagios XI.



