Observium is a network monitoring tool that helps monitor the performance of all devices and networks in an organization. In this tutorial, we will take you through the steps required to install Observium on EndeavourOS Latest.
sudo
privilege.Before installing any packages, it is essential to ensure that your system is up to date. Run the commands below:
sudo pacman -Syu
The following packages are required for Observium to function correctly. Install them on your system with the command below:
sudo pacman -S apache mariadb mariadb-clients php php-fpm net-snmp
Observium requires a database to store system data. Run the following command to create a database for your Observium instance.
sudo mysql_secure_installation
Download the latest version of Observium from the official website:
wget http://www.observium.org/observium-community-latest.tar.gz -O observium.tar.gz
Next, extract the contents of the downloaded archive in the web server document root directory:
sudo tar zxvf observium.tar.gz -C /var/www/html/
Observium needs to be configured to connect to the database that we created earlier.
Navigate to the configuration directory and run the command below:
cd /var/www/html/observium/config/
sudo mv config.php.default config.php
sudo nano config.php
Edit the file appropriately and update the database details as shown below:
$config['db_extension'] = 'mysqli';
$config['db_host'] = 'localhost';
$config['db_user'] = '<database_username>';
$config['db_pass'] = '<database_password>';
$config['db_name'] = '<observium_database_name>';
Observium requires that PHP run as a separate process running on php-fpm
.
Therefore, open the file "/etc/php/php.ini" and modify the following lines:
cgi.fix-pathinfo=0
Next, we’ll need to modify Apache configuration to add Observium as a virtual host.
Create a new Apache configuration file
sudo nano /etc/httpd/conf/extra/observium.conf
Add the following configuration to the file:
<VirtualHost *:80>
ServerAdmin admin@example.com
DocumentRoot /var/www/html/observium/html/
ServerName observium.example.com
ServerAlias www.observium.example.com
<Directory /var/www/html/observium/html/>
Options FollowSymLinks
AllowOverride All
Require all granted
</Directory>
ErrorLog /var/log/httpd/observium_error.log
CustomLog /var/log/httpd/observium_access.log combined
</VirtualHost>
And enable PHP-FPM in Apache:
sudo nano /etc/httpd/conf/httpd.conf
Add the following line below the comment LoadModule mpm_event_module modules/mod_mpm_event.so
:
LoadModule proxy_fcgi_module modules/mod_proxy_fcgi.so
Now restart apache
sudo systemctl restart httpd
You can now access Observium by launching your browser and entering the server hostname or IP address.
http://<server_IP_address>/observium/
Observium has now been installed on your EndeavourOS Latest system with Apache Web Server and MariaDB database. With Observium, you can monitor your network and track the performance of all devices and connections.
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!