2 AWS deployment guide for Zabbix proxy

Overview

This page describes how to deploy Zabbix proxy using AWS.

Several Zabbix versions are available for deployment on the platform. Make sure to read the documentation for the same Zabbix version that you have deployed. Documentation for different Zabbix versions can be selected from the version dropdown menu.

Deploying Zabbix proxy

A working instance of Zabbix server is required to use Zabbix proxy component.

To deploy Zabbix proxy, first, navigate to the Zabbix AWS marketplace page. Next, click on the View purchase options to deploy the image and proceed to the subscription page.

AWS deployment guide for Zabbix proxy - 图1

Click the Accept terms button to accept Terms and Conditions.

AWS deployment guide for Zabbix proxy - 图2

Click the Continue to Configuration button to move to the Configuration section for Zabbix proxy.

AWS deployment guide for Zabbix proxy - 图3

Select the Fulfilment option, Zabbix version, and your preferred Region.

AWS deployment guide for Zabbix proxy - 图4

Click the Continue to Launch button. On the Launch page, select the preferred Launch option, EC2 Instance Type, VPC, and Subnet settings.

AWS deployment guide for Zabbix proxy - 图5

At the bottom of the Launch page, specify the Security Group settings and sselect or create an EC2 key pair. Make sure to save your private key in a safe location.

AWS deployment guide for Zabbix proxy - 图6

If you select Create a new Security Group based on the Seller settings, TCP port 10051 (Zabbix server) will be allowed. Note: If you wish to access the instance via SSH, you will also need to permit SSH connections in your Security Group settings.

AWS deployment guide for Zabbix proxy - 图7

Finally, click the Launch button. Congratulations, your Zabbix proxy is now being deployed.

AWS deployment guide for Zabbix proxy - 图8

Configuring and accessing Zabbix proxy

Open the Instances section in the EC2 console and select the newly deployed Zabbix proxy instance.

AWS deployment guide for Zabbix proxy - 图9

Connect to the Public IPv4 address or Public IPv4 DNS of the Zabbix proxy using SSH. The default SSH username is rocky. Don’t forget to use the key pair that you generated previously.

Credential generation may take a few minutes. Wait a few minutes before attempting to connect.

AWS deployment guide for Zabbix proxy - 图10

Zabbix proxy configuration file can be found in /etc/zabbix/zabbix_proxy.conf.

The configuration file can be opened with a text editor of your choice, for example vi:

sudo vi /etc/zabbix/zabbix_proxy.conf

The initial proxy configuration consists of modifying the ProxyMode, Server, and Hostname parameters in Zabbix proxy configuration file.

The proxy mode can be changed by editing the ProxyMode parameter. Set ProxyMode=0 for active mode or ProxyMode=1 for passive mode.

The Server parameter should contain Zabbix server IP address. For example:

Server=192.168.50.141

The Hostname parameter should contain Zabbix proxy hostname. The hostname defined here should match the proxy name provided during proxy configuration in Zabbix frontend. For example:

Hostname=EC2-Frankfurt

Once the configuration is complete, restart the Zabbix proxy with the following command:

sudo systemctl restart zabbix-proxy

Note: use sudo to edit configuration files and execute commands from the command line.

AWS deployment guide for Zabbix proxy - 图11

AWS deployment guide for Zabbix proxy - 图12

Open Zabbix frontend and navigate to Administration > Proxies. Click the Create proxy button.

Enter the same proxy name as the value of the Hostname parameter in the proxy configuration file.

Select the proxy mode and provide the proxy IP address (optional for active proxies).

Click the Create proxy.

AWS deployment guide for Zabbix proxy - 图13

AWS deployment guide for Zabbix proxy - 图14

AWS deployment guide for Zabbix proxy - 图15

Proxy database location

The SQLite proxy database is stored in /tmp/zabbix_proxy.sqlite3 and is specified by the DBName parameter in the Zabbix proxy configuration file.

What’s next?

3 Azure deployment guide for Zabbix server