Zabbix Proxy installation

  • by

It isn’t too obvious in the Zabbix documentation about installing and setting up a Zabbix Proxy, so here:

nb: Check on current versions of all links as they can change of become out of date. This example is based on CentOS 8 and Zabbix V5.2.

check basic server setup guide:

ensure firewall is setup:

ensure selinux is set to permissive (or more advenaced settings):

install mysql

https://digitalcreative.tech/install-mysql/

install zabbix repo:

rpm -Uvh https://repo.zabbix.com/zabbix/5.2/rhel/8/x86_64/zabbix-release-5.2-1.el8.noarch.rpm
dnf clean all

setup basic mysql user:

mysql -uroot -p
password

mysql> create database zabbix character set utf8 collate utf8_bin;
mysql> create user zabbix@localhost identified by ‘password’;
mysql> grant all privileges on zabbix.* to zabbix@localhost;
mysql> quit;

setup schema for proxy database:

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

install proxy

setup the config file with db and system info:

# vi /etc/zabbix/zabbix_server.conf
DBHost=localhost
DBName=zabbix
DBUser=zabbix
DBPassword=

start and enable on boot:
systemctl start zabbix-proxy
systemctl enable zabbix-proxy

check if it is running:
systemctl status zabbix-proxy

ensure to refresh the config of proxy during setup as it only refreshes every hour automatically:
zabbix_proxy -R config_cache_reload

ref:
https://www.zabbix.com/documentation/current/manual/installation/install_from_packages/rhel_centos

Leave a Reply

Your email address will not be published. Required fields are marked *