Install Zabbix 3.4 with MySQL database on Ubuntu 16.04 LTS
Install Zabbix 3.4 with MySQL database on Ubuntu 16.04 LTS
# Adding Apt Repository
$ wget https://repo.zabbix.com/zabbix/3.4/ubuntu/pool/main/z/zabbix-release/zabbix-release_3.4-1+xenial_all.deb
$ sudo dpkg -i zabbix-release_3.4-1+xenial_all.deb
$ sudo apt update
# Install Zabbix server, frontend, agent
$ sudo apt install zabbix-server-mysql zabbix-frontend-php zabbix-agent
$ sudo apt install php7.0-bcmath php7.0-mbstring php7.0-xml
# Create Database for Zabbix Server
$ sudo mysql -u root -p
mysql> create database zabbix character set utf8 collate utf8_bin;
mysql> GRANT ALL on zabbix.* to zabbix@localhost IDENTIFIED BY 'zabbix';
mysql> quit;
# Import Initial Schema and Data
$ zcat /usr/share/doc/zabbix-server-mysql*/create.sql.gz | mysql -u zabbix -p zabbix
# Config Database for Zabbix server
$ sudo vi /etc/zabbix/zabbix_server.conf
DBHost=localhost
DBName=zabbix
DBUser=zabbix
DBPassword=password
# Config PHP
$ sudo vi /etc/zabbix/apache.conf
php_value date.timezone America/Sao_Paulo
# Config Apache
$ sudo apache2ctl configtest
$ sudo vi /etc/apache2/apache2.conf -> Insert Line: ServerName server_domain_or_IP
$ sudo apache2ctl configtest
# Restart Apache and Zabbix
$ sudo service apache2 restart
$ sudo service zabbix-server restart
# Adding Apt Repository
$ wget https://repo.zabbix.com/zabbix/3.4/ubuntu/pool/main/z/zabbix-release/zabbix-release_3.4-1+xenial_all.deb
$ sudo dpkg -i zabbix-release_3.4-1+xenial_all.deb
$ sudo apt update
# Install Zabbix server, frontend, agent
$ sudo apt install zabbix-server-mysql zabbix-frontend-php zabbix-agent
$ sudo apt install php7.0-bcmath php7.0-mbstring php7.0-xml
# Create Database for Zabbix Server
$ sudo mysql -u root -p
mysql> create database zabbix character set utf8 collate utf8_bin;
mysql> GRANT ALL on zabbix.* to zabbix@localhost IDENTIFIED BY 'zabbix';
mysql> quit;
# Import Initial Schema and Data
$ zcat /usr/share/doc/zabbix-server-mysql*/create.sql.gz | mysql -u zabbix -p zabbix
# Config Database for Zabbix server
$ sudo vi /etc/zabbix/zabbix_server.conf
DBHost=localhost
DBName=zabbix
DBUser=zabbix
DBPassword=password
# Config PHP
$ sudo vi /etc/zabbix/apache.conf
php_value date.timezone America/Sao_Paulo
# Config Apache
$ sudo apache2ctl configtest
$ sudo vi /etc/apache2/apache2.conf -> Insert Line: ServerName server_domain_or_IP
$ sudo apache2ctl configtest
# Restart Apache and Zabbix
$ sudo service apache2 restart
$ sudo service zabbix-server restart
Comentários
Postar um comentário