Welcome to docs.opsview.com

Installation Guide - Ubuntu Linux

Before You Start

  • For supported Ubuntu releases please refer to platforms.

Planning

See our design notes for further information on planning for separate database servers, disk partitioning and security.

OS Installation

For a fresh Ubuntu install we recommend using a 'netinst' image and then using aptitude to install the SSH Daemon. Other required packages will be installed as part of Opsview installation.

Preparation

Prerequisites

See the installation prerequisites information to setup users, groups and MySQL.

Importing Repository Signatures

For security, this repository is gpg signed. Follow our instructions to add the key to your server.

If you do not import our gpg keys, you could see errors such as:

W: GPG error: https://downloads.opsview.com squeeze Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY FB4C675977CB2CF6

The “NO_PUBKEY” portion of this message indicates that your system does not have the public key for this repository and so cannot verify its contents. You can ignore these warnings and import the keys later.

You could also see:

WARNING: The following packages cannot be authenticated!
  opsview-perl opsview-base libapache2-mod-auth-tkt-prefork-opsview opsview-core opsview-web opsview
Install these packages without verification [y/N]?

You can continue, though we recommend you verify the packages.

Opsview Repositories

To install Opsview, use your favourite editor to edit the file /etc/apt/sources.list (or create a new file /etc/apt/sources.list.d/opsview.list) and add the following line to it:

  # Opsview packages
  deb http://downloads.opsview.com/opsview-core/latest/apt <OS> main

Where:

  • OS is your distribution name, such as lucid or precise (ubuntu12)

Updating the Package Lists

When configuration is complete, update the repository information:

sudo apt-get update

Troubleshooting

Note: If you get the error:

E: The method driver /usr/lib/apt/methods/https could not be found.

This means that you do not have the required transport methods installed. You will need to install apt-transport-https: sudo apt-get install apt-transport-https.

Installation

Once the sources list has been updated to include the Opsview apt repository, the latest release of Opsview can be installed by running the following command as root.

apt-get install opsview

You may get prompted for the mysql root user password. This is required to setup the databases used by Opsview.

You may get prompted to make mrtg.cfg root only. Reply yes.

The Opsview server is now listening on port 3000, i.e. http://opsview.example.com:3000/.

To secure your instance of Opsview Web, you should change the authtkt secret to be unique to this instance. In /usr/local/nagios/etc/opsview.conf, add the following and change the secret value to be a unique string:

$authtkt_shared_secret = "shared-secret-please-change";

Restart Opsview Web for this value to take effect: /etc/init.d/opsview-web restart.

Using Apache as a Proxy Server

The performance of Opsview will be significantly improved by using Apache at the front end. All the following commands should be run as root.

Firstly, copy the Apache configuration file into the appropriate location:

cp /usr/local/nagios/installer/apache_proxy.conf /etc/apache2/sites-available/opsview
a2ensite opsview
a2dissite default

Then, edit the Apache configuration file so that the same shared secret is used:

TKTAuthSecret "shared-secret-please-change"

You will also need to install the Apache proxy_html module in order to use this configuration. On Ubuntu, you can install the libapache2-mod-proxy-html package:

apt-get install libapache2-mod-proxy-html
a2enmod proxy 
a2enmod proxy_http
a2enmod proxy_html

Now Apache can be restarted

/etc/init.d/apache2 restart

You can now access Opsview at http://opsview.example.com/

Logging In

Once Opsview has been installed, a single administrative user will have been created. The credentials for this user are:

Username: admin
Password: initial

You should change this password to prevent unauthorised access to Opsview - this can be done from the Administrator link at the top right of the page.

Check out our quick start guide to help you get familiar with Opsview.

Troubleshooting

Broken Packages

Users encountering the error “broken packages”, change your software sources settings. See Partner Repository Section at the beginning of this documentation.

SNMP MIBs Missing

On Ubuntu 12 precise, SNMP MIBs are not installed by default.

You will need to install the SNMP MIBs manually with:

sudo apt-get install snmp-mibs-downloader

See http://wiki.debian.org/SNMP for more information (package is in non-free repository).

Note, you may still get some MIB reading errors, for example:

$ snmpwalk -mALL -v2c -cpublic host | head
Unlinked OID in IPATM-IPMC-MIB: marsMIB ::= { mib-2 57 }
Undefined identifier: mib-2 near line 18 of /usr/share/mibs/ietf/IPATM-IPMC-MIB
Bad operator (INTEGER): At line 73 in /usr/share/mibs/ietf/SNMPv2-PDU
Undefined OBJECT-GROUP (diffServMIBMultiFieldClfrGroup): At line 2195 in /usr/share/mibs/ietf/IPSEC-SPD-MIB
Undefined OBJECT-GROUP (diffServMultiFieldClfrNextFree): At line 2157 in /usr/share/mibs/ietf/IPSEC-SPD-MIB
Undefined OBJECT-GROUP (diffServMIBMultiFieldClfrGroup): At line 2062 in /usr/share/mibs/ietf/IPSEC-SPD-MIB
Expected "::=" (RFC5644): At line 493 in /usr/share/mibs/iana/IANA-IPPM-METRICS-REGISTRY-MIB
Expected "{" (EOF): At line 651 in /usr/share/mibs/iana/IANA-IPPM-METRICS-REGISTRY-MIB
Bad object identifier: At line 651 in /usr/share/mibs/iana/IANA-IPPM-METRICS-REGISTRY-MIB
Bad parse of OBJECT-IDENTITY: At line 651 in /usr/share/mibs/iana/IANA-IPPM-METRICS-REGISTRY-MIB
RFC1213-MIB::sysDescr.0 = STRING: "Cisco Internetwork Operating System Software 
IOS (tm) C2600 Software (C2600-J1S3-M), Version 12.2(15)T7,  RELEASE SOFTWARE (fc2)
TAC Support: http://www.cisco.com/tac
Copyright (c) 1986-2003 by cisco Systems, Inc.
Compiled Sat 09-Aug-03 07:18 by ccai"
RFC1213-MIB::sysObjectID.0 = OID: SNMPv2-SMI::enterprises.9.1.186
DISMAN-EVENT-MIB::sysUpTimeInstance = Timeticks: (813825536) 94 days, 4:37:35.36
RFC1213-MIB::sysContact.0 = STRING: "support@opsview.com"
RFC1213-MIB::sysName.0 = STRING: "2611"
RFC1213-MIB::sysLocation.0 = STRING: "Reading"

These can be ignored.

Navigation
Print/export
Toolbox