Install Zabbix Agent on a VM Behind a Firewall
Video Lecture
Description
Zabbix agent can also be installed in VMs hosted on your local PC.
In this lecture I am using Oracle Virtual Box on Windows 10 with an Ubuntu 20.04 VM. I also provide the Centos 7 commands below.
Note
An important setting for VMs regards how they can be found on the network. In order for Zabbix-Server to communicate with it, it will need an IP address on your local network. In my setup, I configure the VMs network adapter as a bridged adapter and my routers DHCP auto assigns it an IP address.
This host is also behind a firewall so I will need to set up another port forwarding rule.
Since I have already set up a rule for the external IP, port 10050 and 10052, I will need to use another port. I use the external IP, and port 10053. This will then forward to the internal host with the agent running and listening on the default port of 10050.
Ubuntu 20.04
The detailed download instructions are at https://www.zabbix.com/documentation/current/manual/installation/install_from_packages/debian_ubuntu
Install Repositories
1 2 3 |
|
Install Zabbix Agent service
1 |
|
then configure it by editing parameters for Server, ServerActive and Hostname and save.
1 |
|
Then start it,
1 2 |
|
Then go to Zabbix-Server and create a new host.
Centos 7
The detailed download instructions are at https://www.zabbix.com/documentation/current/manual/installation/install_from_packages/rhel_centos
The commands in this video are,
1 2 3 |
|
then configure it,
1 |
|
Edit parameters for Server, ServerActive and Hostname and save.
Then,
1 2 |
|
Then go to Zabbix-Server and create a new host.
Centos 7 also has it's own internal firewall that will also need to be configured.
I need to allow TCP connections to port 10050
1 2 3 |
|