How to Configure Observium (Part-1)

***Network Management and Monitoring Using Observium ***

All components for Observium should already be installed – it will be now up to you to configure the service, add hosts, etc.

Step-1:  Set the name of the Observium web site (virtual host) on your server:

$ cd /etc/apache2/sites-enabled/

$ sudo editor observium

Find the line:

ServerName observiumX.ws.gpontutorials.com and replace “X” with the number of your PC.

Save the file and exit.

Step-2:  Reconfigure the webserver:

$ sudo apachectl graceful

Step-3:  Access Observium!

A user has already been created for you. This is the user ‘admin’, and the password is the standard class password.

http://observiumX.ws.gpontutorials.com/

User: admin

Password: Pls provide the password as you like

Please now be logged in to Observium. There should not be any devices configured. Take a look at the interface for a few minutes.

Step-4:  Edit the configuration file for Observium, to tell it about our network:

$ sudo editor /opt/observium/config.php

Now make the following changes:

– Find the line:

$config[‘snmp’][‘community’] = array(“public”);

and change ‘public’ to ‘NetManage’ (NOT “netmanage” or “NETMANAGE”),

so it looks like this:

$config[‘snmp’][‘community’] = array(“NetManage”);

– Now find the two lines (near the end):

$config[‘nets’][] = “172.22.0.0/16”;

$config[‘nets’][] = “192.168.0.0/24”;

and replace them with:

$config[‘nets’][] = “10.10.0.0/24”;

notice that we only have ONE network for now: the backbone.

Save the file and exit.

Step-5:  Add a host – your own router

$ cd /opt/observium

$ ./addhost.php rtrX.ws.gpontutorials.com NetManage v2c

(Notice that here we use the HOSTNAME and NOT the IP of the host!)

Check on the Web interface that the host has been found:

http://observiumX.ws.gpontutorials.com/devices/

you can explore the web interface for a few minutes – but there is no data yet!

We can tell Observium to start collecting data for this host, by running the following command:

$ sudo ./poller.php -h all

Step-6:  Tell Observium to run a discovery (scan) of the network, and start

collecting data:

$ cd /opt/observium

$ sudo ./discovery.php -h all

Note that a LOT of information will appear!

We’ll run a data collection again manually:

$ sudo ./poller.php -h all

Step-7:  Go back to the web interface

http://observiumX.ws.gpontutorials.com/

What do you notice ? How do you think Observium figured out what devices to monitor ?

Step-8:  Enable cron jobs

It’s time to make the data collection happen automatically.

A number of automated maintenance tasks need to be added:

– Create the file /etc/cron.d/observium:

$ sudo editor /etc/cron.d/observium

and paste the following lines:

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.php -h all >> /dev/null 2>&1

It will take a little while for data to appear in the graphs.

Next Part (Part-2)>>

 

Be the first to comment

Leave a Reply

Your email address will not be published.


*


For security, use of Google's reCAPTCHA service is required which is subject to the Google Privacy Policy and Terms of Use.

I agree to these terms.