Install Zabbix Agent 4.2 on Windows Host Behind Firewall

Published: 07 May 2019
on channel: SBCODE
4,545
31

Zabbix 5 Course : https://sbcode.net/zabbix/

When connecting Zabbix Server to Zabbix Agent directly with a firewall between, you will need to set up port forwarding rules in your router settings. You can bypass this requirement if you install Zabbix Proxy. I will demonstrate Zabbix Proxy in a later video tutorial.

So, my Zabbix Server is hosted in the cloud, on Digital Ocean : https://m.do.co/c/23d277be9014

Alternatively, I also have a Hetzner Cloud coupon where you will receive €20 in FREE credits : https://hetzner.cloud/?ref=9P2JvW3y3OBA

I then go onto my windows machine that I want to monitor and install the Zabbix Agent.
Download it from

https://www.zabbix.com/download_agents

After install, I test the Zabbix agent is running by checking it's log file, and testing the port forwarding rule works, by telnetting from an external IP. to the newly installed Zabbix agent running on my internal network. This connecting attempt shows in my Zabbix agent log file.

I then setup the host on the Zabbix Server using the Configuration/Hosts menu option and tell it to use the External IP address and external port that I set up on the firewalls port forwarding rules.

When setting the host, be sure to also select which template it should use. I use the 'Template OS Windows' template which instructs Zabbix Agent which values to collect.

After several moments, the Zabbix Server receives latest information from the Zabbix Agent about the Windows Host, and the Availability icon now shows as green. The 'Template OS Windows' is a very basic template. I will create a more sophisticated template in a later video specific for windows.

Also, note that I didn't use a Zabbix Proxy in this video, this will also come in a later video. It is not essential to use a Zabbix Proxy, although it does help with some firewall issues or occasional network connectivity issues.