|
From: Turritopsis D. T. En M. <teo...@pr...> - 2025-10-22 15:03:50
|
Subject: Installing Zabbix 7.4 on Ubuntu 24.04.3 LTS Linux Server Good day from Singapore, Author: Mr. Turritopsis Dohrnii Teo En Ming Country: Singapore Date: 22 Oct 2025 Wednesday Time: 10.30 PM I have successfully installed Zabbix 7.4 on Ubuntu 24.04.3 LTS Linux server. Please refer to the detailed installation steps below. Detailed installation steps ============================== Login to your Ubuntu Linux virtual private server (VPS) as root. # wget https://repo.zabbix.com/zabbix/7.4/release/ubuntu/pool/main/z/zabbix-release/zabbix-release_latest_7.4+ubuntu24.04_all.deb # dpkg -i zabbix-release_latest_7.4+ubuntu24.04_all.deb # apt update # apt install zabbix-server-mysql zabbix-frontend-php zabbix-apache-conf zabbix-sql-scripts zabbix-agent # apt install mariadb-server mariadb-client # mariadb-secure-installation NOTE: RUNNING ALL PARTS OF THIS SCRIPT IS RECOMMENDED FOR ALL MariaDB SERVERS IN PRODUCTION USE! PLEASE READ EACH STEP CAREFULLY! In order to log into MariaDB to secure it, we'll need the current password for the root user. If you've just installed MariaDB, and haven't set the root password yet, you should just press enter here. Enter current password for root (enter for none): OK, successfully used password, moving on... Setting the root password or using the unix_socket ensures that nobody can log into the MariaDB root user without the proper authorisation. You already have your root account protected, so you can safely answer 'n'. Switch to unix_socket authentication [Y/n] n ... skipping. You already have your root account protected, so you can safely answer 'n'. Change the root password? [Y/n] Y New password: Re-enter new password: Password updated successfully! Reloading privilege tables.. ... Success! By default, a MariaDB installation has an anonymous user, allowing anyone to log into MariaDB without having to have a user account created for them. This is intended only for testing, and to make the installation go a bit smoother. You should remove them before moving into a production environment. Remove anonymous users? [Y/n] Y ... Success! Normally, root should only be allowed to connect from 'localhost'. This ensures that someone cannot guess at the root password from the network. Disallow root login remotely? [Y/n] Y ... Success! By default, MariaDB comes with a database named 'test' that anyone can access. This is also intended only for testing, and should be removed before moving into a production environment. Remove test database and access to it? [Y/n] Y - Dropping test database... ... Success! - Removing privileges on test database... ... Success! Reloading the privilege tables will ensure that all changes made so far will take effect immediately. Reload privilege tables now? [Y/n] Y ... Success! Cleaning up... All done! If you've completed all of the above steps, your MariaDB installation should now be secure. Thanks for using MariaDB! # systemctl status MariaDB # systemctl enable MariaDB # mariadb --version mariadb Ver 15.1 Distrib 10.11.13-MariaDB, for debian-linux-gnu (x86_64) using EditLine wrapper # mysql -uroot -p 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; # zcat /usr/share/zabbix/sql-scripts/mysql/server.sql.gz | mysql --default-character-set=utf8mb4 -uzabbix -p Zabbix # mysql -uroot -p mysql> set global log_bin_trust_function_creators = 0; mysql> quit; Edit file /etc/zabbix/zabbix_server.conf # nano /etc/zabbix/zabbix_server.conf DBPassword=password # systemctl restart zabbix-server zabbix-agent apache2 # systemctl enable zabbix-server zabbix-agent apache2 The default URL for Zabbix UI when using Apache web server is http://host/zabbix If you want to use the Linux command "netstat -anp": # apt install net-tools Zabbix error message ===================== Google AI output: The message "Zabbix server:zabbix[connector_queue] became not supported: connector is not initialized: please check 'StartConnectors' configuration parameter" indicates that the Zabbix server is unable to collect data related to the connector queue because the Zabbix connectors are not running or properly configured. To resolve this issue, perform the following steps: Locate the Zabbix Server Configuration File: The Zabbix server configuration file is typically named zabbix_server.conf and its location can vary depending on the operating system and installation method. Common locations include /etc/zabbix/zabbix_server.conf or /usr/local/etc/zabbix_server.conf. Edit the zabbix_server.conf File: Open the zabbix_server.conf file with a text editor and locate the StartConnectors parameter. Enable Connectors: Ensure that the StartConnectors parameter is uncommented and set to a value greater than 0. This value determines the number of connector processes that Zabbix will start. For example: StartConnectors=1 You may need to adjust the number based on the expected load and the number of integrations utilizing connectors. Save Changes and Restart Zabbix Server: Save the modifications to the zabbix_server.conf file and then restart the Zabbix server service for the changes to take effect. The command to restart the service varies depending on your operating system: systemd-based systems (e.g., Ubuntu, CentOS 7+): sudo systemctl restart zabbix-server SysVinit-based systems (e.g., older CentOS/Red Hat): sudo service zabbix-server restart After restarting the Zabbix server, the zabbix[connector_queue] item should become supported, and Zabbix will begin collecting data from the connectors. If the issue persists, review the Zabbix server logs for any additional error messages that might provide further insights. Configure the uncomplicated firewall (ufw) on Ubuntu linux server to accept incoming connections on TCP port 80 (HTTP). # ufw allow 80/tcp # ufw reload Default Zabbix username and password ======================================= Default Zabbix username is Admin Default Zabbix password is zabbix Change the default password immediately after you login. That's all. Thank you. Regards, Mr. Turritopsis Dohrnii Teo En Ming Singapore 22 Oct 2025 Wednesday 11.00 PM |