Sysadminpedia

IT Journey

Install Zabbix Agent on Windows

How to Install Zabbix Agent on Windows

This article is taken from my previous blog. If you want to read on my original blog, you can use this link Install Zabbix Agent on Windows.
Zabbix is open-source monitoring platform used by IT person, mostly system engineer to monitor their server or application.
In this article I will show you the step by step of Install Zabbix Agent on Windows operating system. This includes Windows Client or Windows Server.

Note: This step by step is tested with Zabbix server version 1.8. It could be different on another Zabbix version, just modify the action based on your requirement.

Add Zabbix agent to Windows machine

To add Zabbix Agent to your Windows machine, follow these steps:

Download the Windows agent file from this link: http://www.zabbix.com/downloads/1.8.19/zabbix_agents_1.8.19.win.zip

Create a new folder named ‘zabbix’ in drive C:\
Copy the file inside win32/win64 (depending on your OS) to the ‘zabbix’ folder.

Edit the configuration file

Using text editor, create a new ‘zabbix_agentd.conf’ file and save it to the ‘zabbix’ folder. Add the following lines:

LogFile=C:\zabbix\zabbix_agentd.log
LogFileSize=0
Hostname=changethiswithwinhostname
Server=yourzabbixserverip
DisablePassive=1
DisableActive=0

Open the command prompt and execute the following command:

cd /zabbix
C:\zabbix>zabbix_agentd.exe –config c:\zabbix\zabbix_agentd.conf –install

Starting Service

To start the service, open Windows services, find ‘Zabbix Agent’ at the bottom, and start it. It should be set to automatic startup by default, so no need to change it.

Allow agent port on the Zabbix Server

Ensure that the Zabbix server opens port 10051 to the agent’s IP. If not, add the following rule to the Zabbix server’s iptables:

-A INPUT -s agent-ip -p tcp -m state –state NEW -m tcp –dport 10051 -m comment –comment “windows-host” -j ACCEPT

Finally, enable the new host via the Zabbix.

Zabbix not only compatible for Windows but also support Linux and other devices that support SNMP such as Firewall, Switches, etc.

For Linux agent, I will show you on how to Install Zabbix on Linux server on different article.

© 2024 Sysadminpedia

Theme by Anders NorenUp ↑