How to Install Observium on Ubuntu, Debian and Linux Mint - Cloud Network

Networking | Support | Tricks | Troubleshoot | Tips

Buymecoffe

Buy Me A Coffee

Thursday, October 24, 2019

How to Install Observium on Ubuntu, Debian and Linux Mint



How to Install Obervium Network Monitoring in Ubuntu 18.04 and Debian 9.0





Monitoring Your Network And Servers With Observium

Website :- http://www.observium.org/

Installing Prerequisites

Step1 :- sudo apt-get update

Should Install below packages also
Observium
    LAMP server
    fping
    Net-SNMP 5.4+
    RRDtool 1.3+
    Graphviz

Step2 :- sudo apt-get install libapache2-mod-php5 php5-cli php5-mysql php5-gd php5-mcrypt php5-json php-pear snmp fping mysql-server mysql-client python-mysqldb rrdtool subversion whois mtr-tiny ipmitool graphviz imagemagick libvirt ipmitool

Step3 :- sudo apt-get install libvirt-bin

Creation MySQL Database and  User  for Observium

Step4 :-
mysql -u root -p
CREATE DATABASE observium;
CREATE USER observiumadmin@localhost IDENTIFIED BY '123';
GRANT ALL PRIVILEGES ON observium.* TO observiumadmin@localhost;
FLUSH PRIVILEGES;
exit

Downloading and Installing Observium

Step5 :- mkdir -p /opt/observium && cd /opt

Download and unpack it

Step6 :- wget http://www.observium.org/observium-community-latest.tar.gz
Step7 :- tar zxvf observium-community-latest.tar.gz

Observium directory

Step8 :- cd observium




Copy the default configuration file ‘config.php.default‘ to ‘config.php‘
Step9 :-
cp config.php.default config.php
config.php
/ Database config
$config['db_host'] = 'localhost';
$config['db_user'] = 'observiumadmin';
$config['db_pass'] = 'observiumpassword';
$config['db_name'] = 'observium';

Let’s setup the default schema for the MySQL Database:

php includes/update/update.php
Step10 :- mkdir rrd
Step11 :- chown apache:apache rrd

need to create logs file

Step12 :- mkdir -p /var/log/observium
Step13 :- chown apache:apache /var/log/observium

Step14 :- sudo nano /etc/apache2/sites-available/default
create the virtual host configuration for Observium
<VirtualHost *:80>
  DocumentRoot /opt/observium/html/
  ServerName  observium.domain.com
  CustomLog /var/log/observium/access_log combined
  ErrorLog /var/log/observium/error_log
  <Directory "/opt/observium/html/">
  AllowOverride All
  Options FollowSymLinks MultiViews
  </Directory>
  </VirtualHost>

To enable mod_rewrite modules, type this command

Step15 :- sudo a2enmod rewrite
Step16 :- sudo service apache2 restart

Configuring Observium

Step17 :- cd /opt/observium
Step18 :- ./adduser.php admin adminpassword 10

Step19 :- create a new file ‘/etc/cron.d/observium

33  */6   * * *   root    /opt/observium/discovery.php -h all >> /dev/null 2>&1
*/5 *      * * *   root    /opt/observium/discovery.php -h new >> /dev/null 2>&1
*/5 *      * * *   root    /opt/observium/poller-wrapper.py 1 >> /dev/null 2>&1



Step20 :- /etc/init.d/cron reload

Observium using your browser

Step21 :- http://<Server IP>