In this tutorial, we will guide you through the process of installing Zabbix monitoring software on Debian latest release.
Before starting the installation, it's recommended to update and upgrade your system packages to the latest version using the following command:
$ sudo apt update && sudo apt upgrade -y
Run the following command to install the necessary dependencies:
$ sudo apt install wget curl gnupg2 -y
You need to add the Zabbix official repository to your system to install the software. First, download and add the GPG key using the following command:
$ wget https://repo.zabbix.com/zabbix-official-repo.deb
$ sudo dpkg -i zabbix-official-repo.deb
$ sudo apt update
Now you can install the Zabbix Server and Agent using the following command:
$ sudo apt install zabbix-server-mysql zabbix-frontend-php zabbix-apache-conf zabbix-agent
During the installation process, you will be asked to configure the MySQL database for Zabbix. Enter the root password when prompted and create a new user and password for the Zabbix database.
Once the installation is complete, start the Zabbix Server and Agent services and enable them to start automatically at boot time using the following command:
$ sudo systemctl start zabbix-server zabbix-agent
$ sudo systemctl enable zabbix-server zabbix-agent
Now you need to configure the Zabbix Server and Agent. Open the Zabbix configuration file in your text editor using the following command:
$ sudo nano /etc/zabbix/zabbix_server.conf
Find the following parameters in the configuration file and update the values with the following:
DBPassword=<your_zabbix_database_password>
Save the changes and close the file.
Next, you need to configure the Zabbix Agent file. Open the file using the following command:
$ sudo nano /etc/zabbix/zabbix_agentd.conf
Find the following parameters in the configuration file and update the values with the following:
Server=<your_zabbix_server_ip>
ServerActive=<your_zabbix_server_ip>
Hostname=<your_server_hostname>
Save and close the file.
Finally, restart the services to apply the changes using the following command:
$ sudo systemctl restart zabbix-server zabbix-agent apache2
Open your web browser and navigate to the following URL:
http://<your_server_ip>/zabbix/
You should see the Zabbix login page. Login with the following credentials:
Username: Admin
Password: zabbix
You should now be able to access the Zabbix dashboard and start adding hosts for monitoring.
Congratulations! You have successfully installed Zabbix monitoring software on Debian latest release.
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!