Zabbix Proxy
Karthick D
Linux | DevSecOps | Cyber Security | Python | AWS | Docker | K8s | Ansible | Salt | Terraform | ELK | Zabbix | Content Writter @Medium
Zabbix Proxy is a stand-alone Zabbix monitoring system component that transfers monitoring responsibilities to distant locations, hence expanding the capabilities of the Zabbix Server. Serving as a bridge between Zabbix Server and the devices under observation, it gathers data on the server's behalf and forwards it for processing and archiving. Zabbix Proxy divides up the monitoring effort and lowers network traffic, which improves scalability, reliability, and performance.
Why we need Zabbix Proxy ?
Assume you have several different geo-graphical locating devices.
Configuring network connectivity to the Zabbix server for all of the different location devices will need a significant amount of effort and time.
This is why Zabbix Proxy came into play.
What Zabbix Proxy do?
Zabbix proxy collects all device metrics and logs on behalf of Zabbix server and forwards them to Zabbix server. Endpoint devices must connect solely to the Zabbix proxy, not the Zabbix server.
Once the Zabbix proxy has been established, all that remains is to configure the Zabbix server for network connectivity.
Key Features and Benefits:
Architecture of Zabbix and Zabbix Proxy
领英推荐
How to install Zabbix Proxy ?
[ Hope you are have set-up ready for zabbix server ]
Make sure you have at least 2GB Memory and 2v CPU (depends on load )
Download the packages ( Here we using Ubuntu 22, for other check here )
# wget https://repo.zabbix.com/zabbix/6.4/ubuntu/pool/main/z/zabbix-release/zabbix-release_6.4-1+ubuntu22.04_all.deb
# dpkg -i zabbix-release_6.4-1+ubuntu22.04_all.deb
# apt update
# apt install zabbix-proxy-mysql zabbix-sql-scripts
Configure the database for Zabbix proxy:
# mysql -uroot -p
password
mysql> create database zabbix_proxy character set utf8mb4 collate utf8mb4_bin;
mysql> create user zabbix@localhost identified by 'password';
mysql> grant all privileges on zabbix_proxy.* to zabbix@localhost;
mysql> set global log_bin_trust_function_creators = 1;
mysql> quit;
Load the proxy modules into DB:
# cat /usr/share/zabbix-sql-scripts/mysql/proxy.sql | mysql --default-character-set=utf8mb4 -uzabbix -p zabbix_proxy
# mysql -uroot -p
password
mysql> set global log_bin_trust_function_creators = 0;
mysql> quit;
Edit file /etc/zabbix/zabbix_proxy.conf
Change the Database password in the config file and restart
DBPassword=password
Start Proxy services:
# systemctl restart zabbix-proxy && systemctl enable zabbix-proxy
Linux Engineer | System Administrator | Networking | Infrastructure
11 个月Sofiane MESSAOUDI