How to Install Observium on Fedora Server Latest

Observium is an open-source network monitoring platform designed for Linux and Unix-based systems. With Observium, you can monitor the availability, performance, and health of your network and its devices, including servers, routers, switches, and more. In this tutorial, we will guide you on how to install Observium on Fedora Server Latest.

Prerequisites

Before you start installing Observium, make sure that you have the following prerequisites:

Step 1: Update the System

The first thing you should do is to update your Fedora Server's packages to ensure that you have the latest software versions before you install Observium. To do that, run the following commands:

sudo dnf update
sudo reboot

After the system reboots, log in again as the root user.

Step 2: Install Required Packages

Next, install some packages that Observium depends on. Run the following command to install them:

sudo dnf install httpd mariadb-server mariadb php php-mysqlnd php-gd php-posix php-ldap php-mbstring php-snmp php-process subversion fping cronie net-snmp net-snmp-utils nmap-ncat git

Step 3: Configure the MariaDB Database

Observium requires a database to store its data, so you need to configure the MariaDB database. Here are the steps:

Step 3.1: Start MariaDB Service

Run the following command to start the MariaDB service:

sudo systemctl start mariadb

Step 3.2: Secure MariaDB Installation

Secure the MariaDB installation by running this command:

sudo mysql_secure_installation

Follow the prompts to change the MariaDB root password and secure the installation.

Step 3.3: Create a New Database and User

Create a new database named "observium" and a new user named "observiumuser" by running these commands:

sudo mysql -uroot -p
MariaDB [(none)]> CREATE DATABASE observium;
MariaDB [(none)]> GRANT ALL PRIVILEGES ON observium.* TO 'observiumuser'@'localhost' IDENTIFIED BY 'observiumpass';
MariaDB [(none)]> FLUSH PRIVILEGES;
MariaDB [(none)]> exit;

Replace "observiumpass" with a strong password of your choice.

Step 4: Install Observium

Now you are ready to install Observium. Follow these steps:

Step 4.1: Download and Install Observium

Download the latest Observium version from the official website using this command:

sudo svn checkout http://www.observium.org/svn/observium/trunk /opt/observium

The above command will install Observium under the directory "/opt/observium".

Step 4.2: Change Directory and Run Observium Installer

Change to the Observium directory by running this command:

cd /opt/observium

Then, run the Observium installer using this command:

sudo ./discovery.php -u

This command will detect the devices on your network and set up the Observium database.

Step 4.3: Configure Observium

Edit the Observium configuration file by running this command:

sudo nano config.php

Set the following parameters:

$config['db_extension'] = 'mysqli';
$config['db_host'] = 'localhost';
$config['db_user'] = 'observiumuser';
$config['db_pass'] = 'observiumpass';
$config['db_name'] = 'observium';
$config['base_url']  = "/observium";

Replace the database credentials with the ones you created earlier.

Save and exit the file.

Step 4.4: Set Up Observium Cron Jobs

Create a new file named "observium" in the /etc/cron.d directory by running this command:

sudo nano /etc/cron.d/observium

Add the following lines:

*/5 * * * *   observium    /opt/observium/discovery.php -h all >> /dev/null 2>&1
*/5 * * * *   observium    /opt/observium/discovery.php -h new >> /dev/null 2>&1
*/5 * * * *   observium    /opt/observium/poller-wrapper.py 8 >> /dev/null 2>&1
0,10,20,30,40,50 * * * *  observium    /opt/observium/alerts.php >> /dev/null 2>&1

Save and exit the file.

Step 4.5: Fix File Permissions

Finally, run these commands to fix the file permissions:

sudo chown -R apache:apache /opt/observium
sudo setfacl -d -m group:apache:rwx /opt/observium/rrd /opt/observium/logs

Step 5: Configure Apache Web Server

To access the Observium web interface, you need to configure Apache. Here are the steps:

Step 5.1: Configure Apache Virtual Host

Create a new file named "observium.conf" in the /etc/httpd/conf.d directory by running this command:

sudo nano /etc/httpd/conf.d/observium.conf

Add the following lines:

<VirtualHost *:80>
        ServerAdmin webmaster@example.com
        DocumentRoot /opt/observium/html/
        ServerName your.example.com
        <Directory "/opt/observium/html/">
                AllowOverride All
                Options FollowSymLinks MultiViews
                Require all granted
        </Directory>
        ErrorLog /var/log/httpd/observium-error-log
        CustomLog /var/log/httpd/observium-access-log combined
</VirtualHost>

Replace "your.example.com" with your FQDN.

Save and exit the file.

Step 5.2: Restart Apache Service

Restart the Apache service by running this command:

sudo systemctl restart httpd

Step 6: Access Observium Web Interface

Once you have completed the previous steps, open a web browser and navigate to http://your.example.com/observium to access the Observium web interface.

Login with the default username "admin" and password "admin". You should see the Observium dashboard.

Congratulations! You have successfully installed Observium on your Fedora Server Latest.

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!