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/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 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.

The 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

(the above link maybe out dated. Click on “releases” to see if there are newer versions available.)

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”

See if your controller is detected

.\Zbx-HPSmartArray.ps1 lld ctrl

Check the health of the first drive on contorler 0

.\Zbx-HPSmartArray.ps1 health pd 0 “1I:1:1”



Easysoftonic