Observium Installation on Debian:
1.
Install Prerequisites by below command.
#apt-get install
libapache2-mod-php5 php5-cli php5-mysql php5-gd php5-snmp php-pear snmp
graphviz php5-mcrypt php5-json subversion
mysql-server mysql-client rrdtool fping imagemagick whois mtr-tiny nmap
ipmitool python-mysqldb
2.
If you want to be able to monitor libvirt virtual machines,
install libvirt-bin (beware: this pulls in a whole bunch of dependencies you
otherwise probably wouldn't need on your server):
#apt-get install libvirt-bin
3.
Create a directory for Observium to live in:
#mkdir -p /opt/observium && cd /opt
4.
If you would like to try out Observium using the Community/Open
Source Edition, please install using the most recent .tar.gz release.
5.
Change into the new install directory:
Copy the default configuration file
and edit it for your system:
#cp config.php.default config.php
6.
Create the MySQL database:
#mysql -u root –p
mysql> CREATE DATABASE observium;
mysql> GRANT ALL PRIVILEGES ON observium.* TO 'observium'@'localhost'
-> IDENTIFIED BY '';
7.
Edit
config.php. Change the options to reflect your installation. Change the db_user
name and password as you provide by previous command.
$config['db_user'] = "observium";
$config['db_pass'] = "hadi123";
8.
Setup the MySQL database and insert the default schema:
#php includes/update/update.php
9.
Create the directory to store RRDs in:
#mkdir rrd
#chown www-data:www-data rrd
10.
Create config file by
#vim /etc/httpd/conf.d/observium.conf
and Add below lines
DocumentRoot /opt/observium/html/
ServerName observium.domain.com
CustomLog /opt/observium/logs/access_log combined
ErrorLog /opt/observium/logs/error_log
AllowOverride All
Options FollowSymLinks MultiViews
11.
Create logs
directory for apache
# mkdir /opt/observium/logs
# chown www-data:www-data /opt/observium/logs
12. If OS is Debian >
6.0 and ubuntu > 11.04 then
Remove this line in /etc/snmp/snmp.conf:
and add the following line:
mibdirs /opt/observium/mibs
13. Enable mod_rewrite for
Observium's cleaner URLs:
#a2enmod rewrite
#apache2ctl restart
14. Add a first user, use level of
10 for admin:
#cd /opt/observium
#./adduser.php
[Example# ./adduser.php hadi hadi123 10]
15. Add a first device to monitor:
16. Do an initial discovery
and polling run to populate the data for the new device:
#./discovery.php -h all
#./poller.php -h all
17. Add cron jobs, create a new file /etc/cron.d/observium with
the following contents:
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
18. You should now be able to see http:///observium