If you are reading this, I believe you already know what Zabbix is. If your platform is different, you can visit the page below to see installation instructions for your environment.

https://www.zabbix.com/download

 

First thing first, let's start with the Zabbix 4.0 installation on Ubuntu 18.04.

When I was installing Zabbix I had some dependecy errors and I had to modify my ubuntu repository. 

nano /etc/apt/sources.list

and add the following repositories

deb http://us.archive.ubuntu.com/ubuntu/ bionic main universe

deb-src http://us.archive.ubuntu.com/ubuntu/ bionic main universe

deb http://us.archive.ubuntu.com/ubuntu/ bionic-security main universe

deb http://us.archive.ubuntu.com/ubuntu/ bionic-updates main universe

deb-src http://us.archive.ubuntu.com/ubuntu/ bionic-security main universe

deb-src http://us.archive.ubuntu.com/ubuntu/ bionic-updates main universe

 

Install Repository with MySQL database

# 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

 

Install Zabbix server, frontend, agent

# apt install zabbix-server-mysql zabbix-frontend-php zabbix-agent

 

Create initial database

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

 

Import initial schema and data. You will be prompted to enter your newly created password.

# zcat /usr/share/doc/zabbix-server-mysql*/create.sql.gz | mysql -uzabbix -p zabbix

 

Configure the database for Zabbix server

Edit file /etc/zabbix/zabbix_server.conf

DBPassword=password

 

Configure PHP for Zabbix frontend

Edit file /etc/zabbix/apache.conf, uncomment and set the right timezone for you.

# php_value date.timezone Europe/Istanbul

 

Start Zabbix server and agent processes

 

Start Zabbix server and agent processes and make it start at system boot:

# systemctl restart zabbix-server zabbix-agent apache2
# systemctl enable zabbix-server zabbix-agent apache2

 

Configure Zabbix frontend

Connect to your newly installed Zabbix frontend: http://server_ip_or_name/zabbix

 The default username: Admin

The default pasword: zabbix

 

 

JSN Epic template designed by JoomlaShine.com