Thruk is a web-based interface for monitoring and managing multiple Nagios/Icinga instances. In this tutorial, we will go through the steps to install Thruk on POP! OS Latest.
Before you begin, ensure you have the following:
The first step is to make sure your system is up-to-date. Open a terminal and run the following command:
sudo apt update && sudo apt upgrade
Thruk requires an Apache web server to run. To install Apache, run the following command:
sudo apt install apache2 -y
After the installation is complete, start the Apache service with:
sudo systemctl start apache2
Verify that the Apache service is running by visiting http://localhost on your web browser. If everything is working properly, you should see the default Apache page.
Next, we will install Thruk. Open a terminal and add the Thruk repository to your system:
sudo wget http://download.thruk.org/pkg/v2/debian-thruk-2-jessie.list -O /etc/apt/sources.list.d/thruk.list
Add the repository key:
wget -O - http://download.thruk.org/pubkey.gpg | sudo apt-key add -
Update your system's package list:
sudo apt update
Finally, install Thruk:
sudo apt install thruk -y
After installation, modify the Thruk configuration file /etc/thruk/thruk_local.conf
to match your Icinga/Nagios configuration. Open the file in a text editor:
sudo nano /etc/thruk/thruk_local.conf
Update the following settings as needed:
# Set the Icinga/Nagios version you are using:
thruk_config_local['cgi_cfg'] = '/usr/local/icinga/cgi.cfg'
# Set the path to the status.dat file:
thruk_config_local['icinga_status_file'] = '/usr/local/icinga/var/status.dat'
# Set the path to Nagios plugins directory:
thruk_libs['nagios_plugins'] = '/usr/local/nagios/libexec'
# Set the path to the icinga2 binary:
thruk_check_commands['icinga2'] = '/usr/sbin/icinga2'
Save and exit the file.
Finally, restart the Apache and Thruk services:
sudo systemctl restart apache2
sudo systemctl restart thruk
Now you can access the Thruk web interface by visiting: http://localhost/thruk on your web browser. You will be prompted for credentials. Use the same credentials that you use for Nagios/Icinga.
Congratulations! You have successfully installed and configured Thruk on POP! OS Latest. You can now monitor and manage multiple Nagios/Icinga instances through Thruk.
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!