Installation:URPMI
Subscribe

From OpenNMS

Jump to: navigation, search

Installing on Mandriva Linux

These instructions cover installation on Mandriva Linux.

Binary packages are currently available for Mandriva 2007.1 and Mandriva 2008.0 on both i586 and x86_64.

Set Up URPMI

Add an Official Mirror

First, you need to make sure you've got the main Mandriva URPMI repositories enabled. The easiest way to do so is by filling out the form at Easy Urpmi.

For example, on Mandriva Linux 2007, you would do something like this:

 urpmi.addmedia main ftp://mirrors.usc.edu/pub/linux/distributions/mandrakelinux/official/2007.1/i586/media/main/release with media_info/hdlist.cz 
 urpmi.addmedia --update main_updates ftp://mirrors.usc.edu/pub/linux/distributions/mandrakelinux/official/2007.1/i586/media/main/updates with media_info/hdlist.cz

Add the OpenNMS Mandriva Mirror

First, add the OpenNMS stable repository:

 urpmi.addmedia --probe-hdlist opennms-stable http://yum.opennms.org/stable/mandriva2007

If you want OpenNMS stable snapshots, add the testing repository:

 urpmi.addmedia --probe-hdlist opennms-testing http://yum.opennms.org/testing/mandriva2007

If you want the latest unstable version, add the unstable as well:

 urpmi.addmedia --probe-hdlist opennms-unstable http://yum.opennms.org/unstable/mandriva2007

And if you want to install nightly snapshots, then add the snapshot one:

 urpmi.addmedia --probe-hdlist opennms-snapshot http://yum.opennms.org/snapshot/mandriva2007

(If you are using mandriva 2008, use "mandriva2008" instead.)

Determine What to Install

Since version 1.3.7, OpenNMS is packaged as five RPMs:

opennms-core
The core OpenNMS code, responsible for network discovery, polling, data collection, notification, and more.
opennms-docs
Documentation.
opennms-webapp-jetty
The OpenNMS web UI, pre-deployed to run in the built-in Jetty application server that is included in the opennms-core package
opennms-webapp-standalone
The OpenNMS web UI, designed to be deployed to Tomcat or another suitable servlet container. Optional; install only if you know that the Jetty version is not suitable for your environment.
opennms
A convenience package which installs everything you need for a functional OpenNMS installation on a single system.

It is recommended that you install the opennms package unless you need to do something advanced such as splitting the various components of OpenNMS across multiple servers.

Install OpenNMS

 [user@localhost i586]# urpmi opennms
 One of the following packages is needed:
  1- opennms-webapp-jetty-1.6.1-1.noarch: Embedded web interface for OpenNMS (to install)
  2- opennms-webapp-standalone-1.6.1-1.noarch: Standalone web interface for OpenNMS (to install)
 What is your choice? (1-2) 1
 To satisfy dependencies, the following packages are going to be installed:
 iplike-1.0.6-1.i586
 jdk-1.5.0_13-fcs.i586
 jicmp-1.0.5-1.i586
 opennms-1.6.1-1.noarch
 opennms-core-1.6.1-1.noarch
 opennms-webapp-jetty-1.6.1-1.noarch
 Proceed with the installation of the 6 packages? (217 MB) (Y/n) 
 
     http://yum.opennms.org/stable/mandriva2007/jdk-1_5_0_13-linux-i586.rpm
     http://yum.opennms.org/stable/mandriva2007/iplike-1.0.6-1.i586.rpm                                                                                                                                                              
     http://yum.opennms.org/stable/mandriva2007/jicmp-1.0.5-1.i586.rpm                                                                                                                                                               
     http://yum.opennms.org/unstable/mandriva2007/opennms-1.6.1-1.noarch.rpm                                                                                                                                                         
     http://yum.opennms.org/unstable/mandriva2007/opennms-core-1.6.1-1.noarch.rpm                                                                                                                                                    
     http://yum.opennms.org/unstable/mandriva2007/opennms-webapp-jetty-1.6.1-1.noarch.rpm                                                                                                                                            
 installing iplike-1.0.6-1.i586.rpm jicmp-1.0.5-1.i586.rpm jdk-1_5_0_13-linux-i586.rpm opennms-1.6.1-1.noarch.rpm opennms-core-1.6.1-1.noarch.rpm opennms-webapp-jetty-1.6.1-1.noarch.rpm from /var/cache/urpmi/rpms                 
 Preparing...                     ########################################
       1/6: jdk                   ########################################
       2/6: jicmp                 ########################################
       3/6: opennms-core          ########################################
 - moving *.sql.rpmnew files (if any)... done
 - checking for old update files... done
 
  *** Installation complete.  You must still run the installer and
  *** make a few other changes before you start OpenNMS.  See the
  *** install guide and release notes for details.
       4/6: opennms-webapp-jetty  ########################################
       5/6: iplike                ########################################
 - installing iplike into the template1 db... OK
 - installing iplike into the opennms db (if it exists)... failed
       6/6: opennms               ########################################

Configure OpenNMS

First, for the purposes of convenience, we are going to set the $OPENNMS_HOME environment variable before running any commands.

 export OPENNMS_HOME=/opt/opennms

(If you are not using a bourne-compatible shell, you may need to use different syntax.)