AWS deployment guide for Zabbix proxy

Overview

This page describes how to deploy Zabbix proxy using AWS.

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.

Click the Accept terms button to accept Terms and Conditions.

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

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

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

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.

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.

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

Configuring and accessing Zabbix proxy

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

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.

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.

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.

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.