А АSaturday, 7 March 2020

Easy to install Zabbix Proxy.

Hi Everybody.

What a Zabbix Proxy ?

Zabbix proxy is a process that may collect monitoring data from one or more monitored devices and send the information to the Zabbix server, essentially working on behalf of the server. All collected data is buffered locally and then transferred to the Zabbix server the proxy belongs to.

Deploying a proxy is optional, but may be very beneficial to distribute the load of a single Zabbix server. If only proxies collect data, processing on the server becomes less CPU and disk I/O hungry.

A Zabbix proxy is the ideal solution for centralized monitoring of remote locations, branches and networks with no local administrators.

Zabbix proxy requires a separate database.

Why use Zabbix Proxy ?

For understand, a Zabbix proxy can be used to:

  • Monitor remote locations
  • Monitor locations having unreliable communications
  • Offload the Zabbix server when monitoring thousands of devices
  • Simplify the maintenance of distributed monitoring

I'm sure that installation and configururation of Zabbix Proxy is easy. For example, I can show it for Ubuntu 18.04 Bionic.

Install Package
# wget https://repo.zabbix.com/zabbix/4.0/ubuntu/pool/main/z/zabbix-release/zabbix-release_4.0-2+bionic_all.deb
# dpkg -i zabbix-release_4.0-2+bionic_all.deb
# apt update

To install Zabbix proxy with MySQL support:
# apt install zabbix-proxy-mysql



I'm using local mysql so I have to create database.

# mysql -uroot -p<password>
mysql> create database zabbix_proxy character set utf8 collate utf8_bin;
mysql> grant all privileges on zabbix_proxy.* to zabbix@localhost identified by '<password>';
mysql> quit;

Import schema.sql.gz for database "zabbix_proxy"
# zcat /usr/share/doc/zabbix-proxy-mysql/schema.sql.gz | mysql -uzabbix -p zabbix_proxy

Preliminary configuration database and node for Zabbix Proxy I have to edit zabbix_proxy.conf due to use their respective databases.

For example:

# vi /etc/zabbix/zabbix_proxy.conf
#For Passive mode:
 ProxyMode=1
 Server=zabbix-node-local,forza.com
 ListenPort=10051
#For Active mode:
 ProxyMode=0
 Server=forza.com
 ListenPort=10052

#For both modes:
Hostname=Forza_Proxy
DBHost=localhost
DBName=zabbix_proxy
DBUser=zabbix
DBPassword=<password>

So, now I can start Zabbix Proxy process.
It’s time to start Zabbix server process and make it start at system boot:
# service zabbix-proxy start
# update-rc.d zabbix-proxy enable

# sudo systemctl start zabbix-proxy
OR
# /etc/init.d/zabbix-proxy restart


How can you add Zabbix Proxy in Frontend of your Zabbix you can read by link as above. However you have to note that "Hostname" from Zabbix Proxy-config and Name of Zabbix Proxy in Frontend must be the equal.

And you can control working process of your Zabbix Proxy by log:
sudo tail -f /var/log/zabbix/zabbix_proxy.log

See you later.

        

No comments:

Post a Comment

А что вы думаете по этому поводу?

Версия на печать

Популярное