LogoOwlDocs

Zabbix Proxy

Overview of Zabbix Proxy features.

Overview

Zabbix Proxy serves as an intermediary between the Zabbix Server and monitored devices. It gathers monitoring data from remote networks, stores it locally, and periodically transmits the information to the central Zabbix Server. This approach minimizes the main server's workload, enhances scalability, and maintains monitoring reliability during network interruptions.

Why Use Zabbix Proxy?

Zabbix Proxy provides several key advantages :

  • Reduces server load : Shifts data collection from the main server.
  • Enables remote monitoring : Supports sites without direct server access.
  • Optimizes bandwidth : Aggregates and compresses data before sending.
  • Buffers data : Prevents data loss during network issues.

Installation

Install Zabbix Proxy

sudo apt update
sudo apt install zabbix-proxy-<database_type> # e.g. zabbix-proxy-mysql

Create Proxy Database

mysql -u root -p

Inside the MySQL shell, run the following commands to create the Zabbix database and user, and grant the necessary privileges :

mysql> create database zabbix_proxy character set utf8mb4 collate utf8mb4_bin;
mysql> create user 'zabbix'@'localhost' identified by 'your_password';
mysql> grant all privileges on zabbix_proxy.* to 'zabbix'@'localhost';
mysql> flush privileges;

Do not forget to change the password.

Import Initial Schema

zcat /usr/share/doc/zabbix-proxy-mysql*/schema.sql.gz | mysql -uzabbix -p zabbix_proxy

Configuration

Edit Proxy Configuration

Edit /etc/zabbix/zabbix_proxy.conf and set the following variables :

Server=<Zabbix_Server_IP>
Hostname=<Proxy_Hostname>
DBName=zabbix_proxy
DBUser=zabbix
DBPassword=your_password

Do not forget to change the password.

Start and Enable Proxy

sudo systemctl start zabbix-proxy
sudo systemctl enable zabbix-proxy

Register Proxy in Zabbix Server

  • Go to Administration → Proxies in the Zabbix web UI.
  • Click Create proxy and enter the proxy hostname.
  • Choose proxy mode (Active or Passive).

Monitoring Use Cases

  • Network Segmentation : Use proxies for isolated or secure network segments.
  • Scalability : Distribute monitoring load across proxies for large environments.
  • Unstable Connections : Ensure data collection continues if the main server connection is lost.