|
Introduction
Having trouble monitoring your server, switch, or device? Observium can meet your needs. This is a free monitoring system, it can help you remotely monitor your server. It is a PHP-based network monitoring platform based on auto-discovery SNMP that supports a wide range of network hardware and operating systems, including Cisco, Windows, Linux, HP, NetApp and more. In this I will give in Ubuntu 12.04 step by step to set up an Introduction to the Observium server.
There are currently two different versions of the Observium.
The Observium Community Edition is a free tool under the QPL open source license, which is the best solution for smaller deployments. This version is updated every 6 months.
The second version is the Observium Professional Edition, which is based on the SVN-based publishing mechanism. Will receive a daily security update. The tool for service providers and enterprise-class deployment.
More information is available on its website.
system requirement
To install Observium, you need a newly installed server. Observium is developed on Ubuntu LTS and Debian systems, so installing Observium on Ubuntu or Debian is recommended because there may be minor issues on other platforms.
This article will guide you to install Observium on Ubuntu 12.04. For small Observium installations, 256 MB of memory and dual-core processor configurations are recommended.
Installation requirements
Before installing Observuim, you need to make sure that you install all the dependency packages.
First, use the following command to update your server:
Sudo apt-get update
Then you need to install all of the following packages needed to run Observuim.
Observium requires the following software to function correctly:
LAMP server
Fping
Net-SNMP 5.4+
RRDtool 1.3 +
Graphviz
Requirements for optional features:
Ipmitool - Only when you want to acquire the IPMI (Intelligent Platform Management Interface) baseboard controller on the server.
Libvirt-bin - Only if you want to use libvirt for remote VM host monitoring.
Mysql-server python-mysqldb rrdtool subversion whois mtr-tiny ipmitool graphviz imagemagick libvirt ipmitool
Create a MySQL database for Observium and its users.
Now you need to log into MySQL and create a database for Observium:
Mysql -u root -p
In the user authentication is successful, you need to follow the following command to create the database.
CREATE DATABASE observium;
The database is called Observium, and you will need this information later.
Now you need to create the database administrator user.
CREATE USER observiumadmin @ localhost IDENTIFIED BY 'observiumpassword';
Next, you need to give the administrator user the appropriate permissions to manage the created database.
GRANT ALL PRIVILEGES ON observium. * TO observiumadmin @ localhost;
You need to write the permissions back to disk to activate the new MySQL user:
FLUSH PRIVILEGES;
Exit
Download and install Observium
Now our system is ready, you can start the installation of the Observium.
The first step is to create the file directory that Observium will use:
Mkdir -p / opt / observium && cd / opt
For the purposes of this tutorial, we will use the community / open source version of Observium. Use the following command to download and unzip:
Wget http://www.observium.org/observium-community-latest.tar.gz
Tar zxvf observium-community-latest.tar.gz
Now go to the Observium directory.
Cd observium
Copy the default configuration file 'config.php.default' to 'config.php' and populate the configuration file with the database configuration options:
Cp config.php.default config.php
Nano config.php
/ Database configuration
$ Config [ 'db_host'] = 'localhost';
$ Config [ 'db_user'] = 'observiumadmin';
$ Config [ 'db_pass'] = 'observiumpassword';
$ Config [ 'db_name'] = 'observium';
Now set the default database schema for the MySQL database:
Php includes / update / update.php
Now you need to create a file directory to store the rrd file, and modify its permissions so that apache can write to the file.
Mkdir rrd
Chown apache: apache rrd
In order to troubleshoot problems, you need to create a log file.
Mkdir -p / var / log / observium
Chown apache: apache / var / log / observium
Now you need to create a 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>
Next you need to make your Apache server rewrite (rewrite) function into effect.
In order for 'mod_rewrite' to take effect, enter the following command:
Sudo a2enmod rewrite
This module will take effect after the next Apache service restart.
Sudo service apache2 restart
Configure the Observium
Before logging into the Web interface, you need to create an administrator account for the Observium (Level 10).
# Cd / opt / observium
# ./adduser.php admin adminpassword 10
User admin added successfully.
The next step is to set up a cron task for discovery and discovery tasks, create a new file '/etc/cron.d/observium' and add the following to it.
33 * / 6 * * * root /opt/observium/discovery.php -h all >> / dev / null2> & 1
* / 5 * * * * root /opt/observium/discovery.php -h new >> / dev / null2> & 1
* / 5 * * * * root /opt/observium/poller-wrapper.py 1 >> / dev / null2> & 1
Overload the cron process to add new tasks.
# /etc/init.d/cron reload
Well, you have completed the installation of the Observium server pull! Use your browser to login to http: // < Server IP>, then go ahead. |
|
|
|