Zabbix 4 Server Installation

This is how I did it.

install ubuntu 18.04 lts
disk partition \ 80GB
swap 8GB
update server & reboot
install traceroute
install apache2
sudo apt install apache2
test connectivity to server <url>
install mysql
sudo apt install mysql-server
sudo mysql_secure_installation
get zabbix repository
sudo dpkg -i zabbix-release_4.0-2+bionic_all.deb
sudo apt update
install zabbix
apt install zabbix-server-mysql zabbix-frontend-php zabbix-agent
create database
sudo mysql -uroot -p
create database zabbix character set utf8 collate utf8_bin;
grant all privileges on zabbix.* to zabbix@localhost identified by ‘<password>’;
import database schema and data
zcat /usr/share/doc/zabbix-server-mysql*/create.sql.gz | mysql -uzabbix -p zabbix
Add db password to Zabbix config
sudo nano /etc/zabbix/zabbix_server.conf
edit DBPassword=<password>
edit DBUser=zabbix
Edit for local time zone
sudo nano /etc/zabbix/apache.conf
change php_value date.timezone to America/Chicago
Start Zabbix
sudo systemctl restart zabbix-server zabbix-agent apache2
sudo systemctl enable zabbix-server zabbix-agent apache2

TCP 10050 and 10051 should be open to allow traffic from agents and proxies.

Leave a Reply

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

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