Aug 27, 2022

Zabbix Server : Installation (Part 1)

 Zabbix Monitoring Server is an Open Source software suitable for Personal and Commercial use. This installation guide is based on Ubuntu Server v.22.04 LTS 64-bit thus I will not be going thru the OS installation steps but will highlight some important steps prior to installing Zabbix.

As of writing the current Zabbix Server v.6.2, more information is available at (https://www.zabbix.com/)

After completed installing Ubuntu Server, you will need to do the following :-

1. sudo timedatectl set-timezone Asia/Kuala_Lumpur

2. sudo apt update && sudo apt upgrade -y

3. sudo apt install nano net-tools wget git -y

4. sudo apt install mysql-server php apache2 -y

5. sudo reboot

6. sudo apt install php-gd php-bcmath php-ctype php-xml php-xmlreader php-xmlwriter php-net-socket php-mbstring php-ldap -y

7. sudo apt install php-session -y

8. sudo apt install php-gettext -y

9. sudo reboot

10. sudo apt update

11. sudo wget https://repo.zabbix.com/zabbix/6.2/ubuntu/pool/main/z/zabbix-release/zabbix-release_6.2+ubuntu22.04_all.deb

12. sudo dpkg -i zabbix-release_6.2+ubuntu22.04_all.deb

13. sudo apt update

14. sudo apt install zabbix-server-mysql zabbix-frontend-php zabbix-apache-conf zabbix-sql-scripts zabbix-agent

15. sudo reboot

16. sudo mysql -uroot -p    (key-in 'password' when prompted)

17. Under MYSQL prompt :-

  • create database zabbix character set utf8mb4 collate utf8mb4_bin;
  • create user zabbix@localhost identified by 'password';
  • grant all privileges on zabbix.* to zabbix@localhost;
  • set global log_bin_trust_function_creators = 1;
  • quit;
18. sudo zcat /usr/share/doc/zabbix-sql-scripts/mysql/server.sql.gz | mysql -uzabbix -p zabbix        (key-in 'password' when prompted)

19. sudo mysql -uroot -p        (key-in 'password' when prompted)

20. Under MYSQL prompt :-

  • set global log_bin_trust_function_creators = 0;
  • quit;
21. sudo nano /etc/zabbix/zabbix_server.conf
  • DBPassword=password
22. sudo systemctl restart zabbix-server zabbix-agent apache2

23. sudo systemctl enable zabbix-server zabbix-agent apache2

24. sudo reboot

25. At another computer, open browser --> http://[Zabbix's IP Address]/zabbix
  • DB Type = MySQL
  • DB Name = zabbix
  • DB User = zabbix
  • DB Password = password
  • Zabbix Server Name = [Any Name]
  • Time Zone = (UTF+08:00) Asia/Kuala_Lumpur
26. Default Zabbix Login :-
  • Username = Admin          (case sensitive)
  • Password = zabbix          (case sensitive)

!!! HAPPY COMPUTING !!!

Aug 17, 2022

LUBUNTU : Command Line

 LUBUNTU v.20.04.1 64-bit : Command Line

1. sudo apt update

2. sudo apt upgrade -y

3. sudo wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb

4. sudo dpkg -i ~/downloads/google-chrome-stable_current_amd64.deb

5. sudo apt install fonts-liberation