HOW TO INSTALL CENTOS 7 ZABBIX 3.4 PROXY

Today, we will set up a proxy for the Zabbix server that I have installed in version 3.4 and enable it to communicate.
First things you need to do;
1- IP configuration
2- Turning off selinux and firewall settings
3-C hange hostname (optional, easy to manage large structures)
4- Passing updates.
If the server is ready after the steps mentioned above;
We enter the Zabbix official repo and download the required rpm package.
rpm -Uvh https://repo.zabbix.com/zabbix/3.4/rhel/7/x86_64/zabbix-release-3.4-2.el7.noarch.rpm
Then we install proxy and MySQL packages for Zabbix.
yum install zabbix-proxy-mysql -y
We install MariaDB
yum install mariadb-server -y
We run MariaDB’s service and activate it at startup.
systemctl enable mariadb && systemctl start mariadb
Database installation.
mysql_secure_installation
You can use the following commands respectively. DB name and user’s name depending on you can choose yourself.
mysql -u root -p
create database zabbix_proxy character set utf8 collate utf8_bin;
grant all privileges on zabbix_proxy.* to zabbixuser@localhost identified by “select password”;
flush privileges;
Let’s import the Zabbix schema into the database.
zcat /usr/share/doc/zabbix-proxy-mysql-3.4.14/schema.sql.gz | mysql -u zabbixuser zabbix_proxy -p
Edit the proxy.conf file for Zabbix.
vi /etc/zabbix/zabbix_proxy.conf
ProxyMode=1 (I use passive mode)
Server=<IP of your zabbix server>
Hostname=<Zabbix3.X ip address of your server>
DBName=<DB name created for proxy>
DBUser=<DB user created for proxy>
DBPassword=<DB password created for proxy>
Finally, activate Zabbix service and make it work after boot.
systemctl enable zabbix-proxy
systemctl start zabbix-proxy
The next part is to find out the external IP address of your Zabbix proxy server. For this
curl icanhazip.com
Just type. It will show you the external IP that the server uses to access the Internet.
You can add the rope information from the Administration> Proxies menu as shown below.
I hope it has been a useful article. See you in the next article.
