How to Install Observium on Ubuntu Server Latest

Observium is a network monitoring platform that allows you to collect and analyze data from routers, switches, servers, and other network devices. In this tutorial, we will guide you through the process of installing Observium on Ubuntu Server Latest.

Step 1 - Update System

Before starting the installation process, make sure that your system is up-to-date. You can update your system by running the following command in your terminal:

sudo apt-get update && sudo apt-get upgrade -y

Step 2 - Install Required Dependencies

Observium requires several dependencies to be installed on your Ubuntu machine. You can install them by running the following command:

sudo apt-get install -y apache2 php php-cli php-curl php-mysql php-snmp php-xml php-gd php-json rrdtool subversion fping mysql-server mysql-client mysql-common snmp snmpd at git

Step 3 - Clone Observium Source Code

Observium is an open-source platform, and you can download the source code from the official GitHub repository. To clone the source code, run the following command:

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

Step 4 - Configure MySQL for Observium

Now that you have installed Observium's source code, you need to create a database for it to use. Run the following command to create the database:

sudo mysql -u root -p

When prompted, enter your MySQL password.

CREATE DATABASE observiumdb character set utf8 collate utf8_general_ci;
CREATE USER observiumuser@localhost IDENTIFIED BY 'yourpassword';
GRANT ALL PRIVILEGES ON observiumdb.* TO observiumuser@localhost;
FLUSH PRIVILEGES;
exit

Step 5 - Configure Apache for Observium

Once you have created a database for Observium, you need to configure Apache to serve Observium's web interface. To do this, create a new Apache configuration file:

sudo nano /etc/apache2/sites-available/observium.conf

And paste the following code:

<VirtualHost *:80>

        ServerName yourhostname

        DocumentRoot /opt/observium/html/

        <Directory />
                Options FollowSymLinks
                AllowOverride None
        </Directory>

        <Directory /opt/observium/html>
                Options Indexes FollowSymLinks MultiViews
                AllowOverride All
                Order allow,deny
                allow from all
        </Directory>

        <Directory /opt/observium>
                AllowOverride None
        </Directory>

        ErrorLog /var/log/apache2/error.log

        LogLevel warn

        CustomLog /var/log/apache2/access.log combined

</VirtualHost>

Replace the yourhostname with your Ubuntu machine's hostname, then save and exit.

Enable the new configuration file:

sudo a2ensite observium.conf

Restart Apache:

sudo systemctl restart apache2

Step 6 - Configure Observium

Finally, you need to configure Observium to use the database you created earlier. Open the Observium configuration file:

sudo nano /opt/observium/config.php

And change the following lines:

$config['db_host'] = 'localhost';
$config['db_user'] = 'observiumuser';
$config['db_pass'] = 'yourpassword';
$config['db_name'] = 'observiumdb';

Replace yourpassword with the password for the observiumuser MySQL user, then save and exit.

Step 7 - Run the Observium Discovery Script

Observium uses a Discovery script to discover network devices and their services. You need to run this script to populate Observium's database with information about your network devices.

Run the following command:

sudo /opt/observium/discovery.php -u

Step 8 - Login into Observium

You are now ready to log in to Observium's web interface. Open your web browser and navigate to http://yourhostname/observium. Replace yourhostname with your Ubuntu machine's hostname.

You should now see the Observium login page, where you can enter your username and password (the default username is admin and the default password is admin). Once you have logged in, you will see the Observium dashboard, where you can start monitoring and analyzing your network devices.

Congratulations, you have successfully installed Observium on Ubuntu 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!