Zabbix is an open-source monitoring solution that tracks performance and availability of servers, applications, and network devices. In this tutorial, we will guide you through the process of installing Zabbix on Clear Linux latest version.
Before we begin, ensure that you have:
Before proceeding, it's essential to update your system using the command:
swupd update
This command will retrieve the latest software updates from the Clear Linux server and install them onto your system.
Zabbix web interface and agent require Apache, PHP, and MySQL or PostgreSQL Database. Run the following command to install these packages:
swupd bundle-add web-server-lamp
The next step is to download and install the Zabbix package. For the latest version, visit the Zabbix download page: https://www.zabbix.com/download
Once you are on the download page, copy the link for the latest Debian package version, which should look like zabbix-release_5.4-1+buster_all.deb, and use
wget` to download the package.
wget https://repo.zabbix.com/zabbix/5.4/debian/pool/main/z/zabbix-release/zabbix-release_5.4-1+<version>_all.deb
Note: Replace <version>
with the version you want to download (use buster
for the latest Debian version).
After downloading, use the following command to install the package:
dpkg -i zabbix-release_5.4-1+buster_all.deb
Now, update the package source list using the below command:
apt-get update
Finally, install the Zabbix server, agent, and web interface using the command:
apt-get install zabbix-server-mysql zabbix-frontend-php zabbix-apache-conf zabbix-agent mysql-server
During the installation process you will be prompted to create a password for the Zabbix database. Make sure to choose a strong password and remember it.
Before starting the zabbix server and agent services, we need to update the zabbix_server.conf and zabbix_agentd.conf files.
Open the Zabbix server configuration file with your editor
vi /etc/zabbix/zabbix_server.conf
Update the following parameters:
Parameter | Value | Description |
---|---|---|
DBName | zabbix | Zabbix database name |
DBUser | zabbix | Zabbix database username |
DBPassword | Your_Password | Zabbix database password |
Save and close the file.
Next, open the agent configuration file with your editor.
vi /etc/zabbix/zabbix_agentd.conf
Update the following parameter:
Parameter | Value | Description |
---|---|---|
Server | Your_server_IP | IP address or DNS of your Zabbix Server |
ServerActive | Your_server_IP | IP address or DNS of your Zabbix Server |
Save and close the file.
Once you have configured the Zabbix server and agent, it's time to start the services and enable them to start automatically on system bootup.
Start MySQL server by running the following command:
systemctl start mysqld
Enable MySQL server to start automatically on boot by using this command:
systemctl enable mysqld
Start the Zabbix server, agent, and Apache services using the command:
systemctl start zabbix-server zabbix-agent httpd
Enable the services to start automatically on system boot by using the following command:
systemctl enable zabbix-server zabbix-agent httpd
Open a web browser and enter the URL of the Zabbix web interface as shown below:
http://<Your_Server_IP>/zabbix
You will be greeted with the Zabbix welcome page. Click on the “Next step” button to start with the installation and configuration process.
Follow the prompts to complete the setup, and then log in to Zabbix with the default username, "Admin," and password, "zabbix."
Congratulations! You have successfully installed Zabbix on Clear Linux Latest. Enjoy using it to monitor your systems.
If you want to self-host in an easy, hands free way, need an external IP address, or simply want your data in your own hands, give IPv6.rs a try!
Alternatively, for the best virtual desktop, try Shells!