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.
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
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
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
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
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
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.
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
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!