Installing Zabbix Agent on Windows

This tutorial will help you install and configure the Zabbix agent on Windows Server.

Step 1:

Download the agent: https://www.zabbix.com/downloads/4.0.0/zabbix_agents-4.0.0-win-amd64.zip

(check to make sure this is the latest version here: https://www.zabbix.com/download_agents)

Step 2:

Extract the zip file.

Step 3:

Make a new directory c:\zabbix\ (or any other path you may find convenient.

Step 4:

Copy the copy the contents of the bin file and the config file into the new folder you created. I like to merge both the bin and the config folder together.

Step5:

Open the zabbix_agentd_win.conf file.

modify the server= line and add the ip address of the zabbix server that will monitor this agent. here is my example:

Server=66.45.240.98

ServerActive=66.45.240.98

modify the hostname= line and set it to match the name of your server.

Hostname=server.somdomain.com

Step 6:

Next the agent needs to be registered into windows as a service using this command

c:\zabbix\zabbix_agentd.exe -c c:\zabbix\zabbix_agentd.win.conf -i

Step 7:

Now you can go to windows services and start the agent just like any other service.

Installation of agent is now complete. Your zabbix server should now be able to monitor the agent.

TIPS:

Enable ICMP on windows server firewall in power shell:

netsh advfirewall firewall add rule name="ICMP Allow incoming V4 echo request" protocol="icmpv4:8,any" dir=in action=allow

Open port 10050 for zabbix agent

netsh advfirewall firewall add rule name="Open Port 10050" dir=in action=allow protocol=TCP localport=10050

Monitoring HP SmartArray with Zabbix Agent

Download the HP Raid CLI.

https://support.hpe.com/hpsc/swd/public/detail?sp4ts.oid=468744&swItemId=MTX_9443e08f9fde4a1989f520b967&swEnvOid=4184#tab2

copy file the agent file into the zabbix folder

https://github.com/asand3r/zbx-hpsmartarray/blob/master/Zbx-HPSmartArray.ps1

add this into zabbix_agentd.win.conf

UserParameter=hp.smartarray[*],powershell -NoProfile -NoLogo -File “c:\zabbix\Zbx-HPSmartArray.ps1” $1 $2 $3 $4

restart the service

Restart-Service “Zabbix Agent”

Ddd the template HP Smart Array Tempalte into zabbix web interface for the host.

Leave a Reply