Zabbix 3.0.13 Proxy on Centos 7.1 – Part 2

We have our zabbix server, next we plan to install a proxy on a remote location. This proxy will activly send (initiate) the connection to the zabbix server. Therefore, no firewall changes are required.

To setup a Zabbix Proxy, we start off installing nano:

and updating centos:

Next we add the zabbix repository to yum.

Then we can continue install zabbix:

start the database mariadb/mysql server and make sure it is run at next startup:

And we configure mysql/mariadb

You will get the following questions (set a root password for mysql/mariadb, you can use a different password other then user root):
Set root password? [Y/n] y
(Choose the root password when you want to make/edit databases, etc)
Remove anonymous users? [Y/n] y
Disallow root login remotely? [Y/n] y
Remove test database and access to it? [Y/n] y
Reload privilege tables now? [Y/n] y

Next, we create our Zabbix Server database! Enter the mysql/mariadb shell (enter the database root password):

Now we are in the mysql shell, start creating the database, replace ‘secretpassword’ with your secret password!

Now we have an empty mysql/mariadb database without any schema in it.
To install the schema, we can make use of zabbix mysql/mariadb scripts. After this command you will have to fill in your root sql password.

Next we have to edit the zabbix configuration file, with the details you entered above.

Find the following Parameters in the file (you can use CTRL+W to find something in nano editor) and set the mysql root password. We have to change the listenport, so it won’t interface with the serverport and stunnel…

DBPassword=YourDBSecretPassword (wan ip of the zabbix server)
Hostname (must be equal to what you will fill in in the zabbix web interface)


We make sure all services are started en running when we next reboot the system:

And Last, if you are beginning to learn linux, i can imagine you have had various troubles learning things like config files, nano or vi, etc. Therefore, if you want something that works quick, fast and dirty:

disable = turn it off at next reboot.
stop = turn it off now.

Edit the following file and set the enforcement to disable so it won’t come backup the next time we reboot.

if you don’t want to turn off the firewall, you can use these rules:

haven’t got the time to find out selinux 🙂

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.