How To Install and Configure Zabbix on Centos7

zabbix is a great tool that collect data from all device of the network such as Server,Router,Switches , DataCenter sensor’s,UPS, ….


  • Centos server

Step 1 —

Start your server and get IP with ifconfig command, Or set new IP with nmtui command:

Now my server’s IP is :

To do this, we will do the following in order :

from  get the latest version of zabbix

Step 2 – Install and Configure Httpd, PHP 7.2 on CentOS 7

now Apache/httpd installed on the server. for check it using netstat command

when the installation complete,  we have to edit the default “php.ini”


Step 3 – Install and Configure MariaDB

Now run the command below to configure MariaDB root password.

If you installed Mariadb , and you havent set the root password yet, then the password is blank and you just Enter here(default password is blank)

after this level press “Y” and enter new password for root

Now, Mariadb has installed

Next we create a database for zabbix with username:zabbix and password:zabbix@

(first ‘zabbix’ is user and the second is table’s name)

Edit file /etc/zabbix/zabbix_server.conf

Configure zabbix server

Now your Zabbix server is up and running!

Step 4 – configure Zabbix frontend:

now go to this link http://server_ip_or_name/zabbix

if the page not open , maybe you have to disable selinux

now, restrat the server(init 6)

Check selinux by getenforce command

Zabbix-agent is running on the system – check it using the following command.

the result as shown below,

Configure zabbix agent

Step 5 –  Configure Firewalld

In this step, we will open the HTTP and https port

If you do not have firewalld on your system, install it using the following command.


Configure the firewall


Step 6 – Restart All Service

Now open your web browser, and type your server IP address.


Click the ‘Next Step‘ button.

Now, Zabbix will check all system requirements for its installation. Make sure there is no error.

For this error :

And click the ‘Next step‘ button.

For the database info, type all your database setup.

Now comes the Zabbix server details configuration. On the ‘Host’ field, type your own server IP address, and change the name with your own domain name or hostname.

Click Next Button

click Next.

Click Finish,

welcome to Zabbix: the default username is: Admin and Password is : zabbix

Maybe you meet this Error”zabbix server is not running”:

here , do like this:

Change Port to 10051

Check DBUserDBPassword in ‘/etc/zabbix/zabbix_server.conf file ‘ :


congratulations, zabbix is running now .

Leave a Reply

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