How to Install Observium on Fedora CoreOS Latest

Observium is a network monitoring, discovery, and mapping tool that can help you track your network's performance and ensure its stability. This tutorial will guide you through the installation and configuration process for Observium on Fedora CoreOS Latest.

Prerequisites

Step 1: Install Required Packages

Before installing Observium, you will need to install some required packages using the following command:

sudo dnf install httpd php php-mysqlnd rrdtool fping git composer

This command will install Apache web server, PHP, MySQL driver for PHP, Round Robin Database Tool (RRDtool), fping (a tool for sending ICMP echo requests), Git for version control management, and Composer, a dependency manager for PHP.

Step 2: Configure Apache Web Server

Now that we have installed Apache, we need to configure it to serve Observium. First, make sure Apache is running:

sudo systemctl enable --now httpd

Then, open the Apache configuration file using your favorite text editor:

sudo nano /etc/httpd/conf/httpd.conf

Add the following lines at the end of the file:

<Directory /usr/local/observium/html/>
  Require all granted
  AllowOverride All
  Options FollowSymLinks MultiViews
</Directory>

This allows Apache to serve the Observium files located in /usr/local/observium/html/. Save and close the file.

Finally, restart Apache to apply the changes:

sudo systemctl restart httpd

Step 3: Download and Install Observium

Next, we need to download and install Observium. Navigate to the /usr/local directory:

cd /usr/local

Then, clone the Observium repository from GitHub using the following command:

sudo git clone https://github.com/observium/observium.git

This will clone the latest version of Observium into a new directory called observium/.

Move into the new directory and install the dependencies using Composer:

cd observium
sudo composer install --no-dev

This will download and install all the required dependencies for Observium.

Step 4: Set Up the Database

Observium requires a MySQL/MariaDB database to store its data. If you haven't already, install MariaDB using the following command:

sudo dnf install mariadb mariadb-server

Now, start and enable the MariaDB service:

sudo systemctl start mariadb
sudo systemctl enable mariadb

Next, create a new database and user for Observium:

sudo mysql -u root

CREATE DATABASE observium;
GRANT ALL PRIVILEGES ON observium.* TO 'observium'@'localhost' IDENTIFIED BY 'password';
FLUSH PRIVILEGES;
EXIT;

Replace password with a strong password of your choice.

Step 5: Configure Observium

Now that Observium is downloaded and the database is set up, we need to configure Observium to use the database.

Copy the sample configuration file and make any necessary changes:

sudo cp config.php.default config.php
sudo nano config.php

You will need to modify the following lines to match your database credentials:

$config['db_host']      = 'localhost';
$config['db_user']      = 'observium';
$config['db_pass']      = 'password';
$config['db_name']      = 'observium';

Replace password with the password you set up earlier.

In addition, you may need to modify the following lines to specify your base URL and timezone:

$config['base_url']     = 'http://example.com/observium';
$config['timezone']     = 'Europe/London';

Replace http://example.com/observium with the URL or IP address where Observium will be served from, and Europe/London with your timezone.

Save and close the file.

Step 6: Generate SNMP Community Strings

Observium uses SNMP (Simple Network Management Protocol) to monitor devices on your network. You will need to generate SNMP community strings for each device you want to monitor.

To generate a new community string, use the following command, replacing community with a unique name and snmp_version with the appropriate SNMP version for your device (1 or 2c):

sudo php includes/sql-config.php add_community community ro snmp_version

For example:

sudo php includes/sql-config.php add_community mycommunity ro 2c

Repeat this step for each device you want to monitor.

Step 7: Start Observium

With everything configured, we can now start the Observium service:

sudo systemctl start observium.service
sudo systemctl enable observium.service

Finally, open your web browser and navigate to the URL or IP address where you installed Observium. You should see the Observium login page. Log in using the default username admin and password admin.

Congratulations! You have successfully installed and configured Observium on Fedora CoreOS Latest, and can now start monitoring your network.

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!