Latest Zabbix v.6.4, installation and configuration in Ubuntu Server v.22.04.3 LTS.
1. Install Ubuntu Server v.22.04.3 LTS and configure the basic configurations.
|
$ sudo apt install wget git mysql-server php apache2 -y |
$ sudo wget https://repo.zabbix.com/zabbix/6.4/ubuntu/pool/main/z/zabbix-release/zabbix-release_6.4-1+ubuntu22.04_all.deb $ sudo dpkg -i zabbix-release_6.4-1+ubuntu22.04_all.deb $ sudo apt update |
$ sudo apt install zabbix-server-mysql zabbix-frontend-php zabbix-apache-conf zabbix-sql-scripts zabbix-agent |
5. Ensure that MySQL Server is up and running before proceeding this steps. You will be prompted to create a password, proceed to create the password.
$ sudo mysql -uroot -p password mysql> create database zabbix character set utf8mb4 collate utf8mb4_bin; mysql> create user zabbix@localhost identified by 'password'; mysql> grant all privileges on zabbix.* to zabbix@localhost; mysql> set global log_bin_trust_function_creators = 1; mysql> quit; |
6. Import the Zabbix database schema into MySQL database. You will be prompted to key-in MySQL password. Depending on your system, it may a while to complete.
$ sudo zcat /usr/share/zabbix-sql-scripts/mysql/server.sql.gz | mysql --default-character-set=utf8mb4 -uzabbix -p zabbix |
$ sudo mysql -uroot -p password mysql> set global log_bin_trust_function_creators = 0; mysql> quit; |
8. Configure Zabbix server to access the database.
$ sudo nano /etc/zabbix/zabbix_server.conf DBPassword=password |
9. Restart and Enabled both Zabbix and Apache2 services.
$ sudo systemctl restart zabbix-server zabbix-agent apache2 $ sudo systemctl enable zabbix-server zabbix-agent apache2 |
10. Now, at another computer and browse to --> http://[Zabbix server]/zabbix
You need to perform some basic configuration on the Zabbix server before first use. This may includes the following :-
- DB Type = MySQL
- DB Name = zabbix
- DB User = zabbix
- DB Password = password
11. The standard Zabbix login credentials as below (case sensitive) :-
- Username = Admin
- Password = zabbix
!!! HAPPY COMPUTING !!!
No comments:
Post a Comment