arrowHome arrow All-in-one Monitoring Tools arrow openNMS Knowledge Base arrow openNMS Installing on Linux/Debian Wednesday, 07 January 2009  
Main Menu
Home
Contact Us
ozMonitor Teams
ozMonitor Terms of Use
Monitoring KB
ITIL
Fault Management
Performance Management
All-in-one Monitoring Tools
Management Skills
Time Management
Delegation
Managing People
Managing Conflict
Project Management
Prince2 Introduction
Prince2 Processes
Prince2 Components
Prince2 Techniques
openNMS Installing on Linux/Debian Print E-mail

Java Installation :

Add the following to /etc/apt/sources.list and update, (i.e. "apt-get update") :

  • deb http://debian.opennms.org/ debian/opennms stable

 Building and installing Java for openNMS :

  • apt-get install java-common sun-jdk1.4-installer j2re j2sdk1.4

 Tomcat4 Installation :
Building and installing Tomcat4 for openNMS :
  • apt-get install  tomcat4-webapps
 Caution: do not install tomcat version 5. Certain problems were encountered with version 5.
Check your Tomcat server : wget http://localhost:8180

In the /usr/share/tomcat4/bin/catalina.sh file adds these variables : $JAVA_HOME and CATALINA_HOME.
Example :
JAVA_HOME = /usr/lib/j2sdk1.4
export JAVA_HOME
CATALINA_HOME = /usr/share/tomcat4
export CATALINA _HOME

RRDtool and Curl Installation :

  • apt-get install rrdtool
  • apt-get install curl

PostgreSQL Installation :

Installation :

  •  apt-get install postgresql

Configuration :

It is necessary to modify two files for PostgreSQL to be in adequacy with openNMS. These two files are:

  • postgresql.conf
  • pg_hba.conf

In postgresql.conf,  you must modify :

  • TCPIP_socket = true
  • MAX_CONNECTIONS = 256
  • SHARED_BUFFERED = 1024

In pg_hba.conf, you must modify :

  • local       all            all                                                               trust
  • host        all            all      127.0.0.1       255.255.255.255                         trust
  • host        all            all     ::1              ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff trust

 openNMS Installation :

  • apt-get install opennms-server
  • apt-get install opennms-webapp

 openNMS Configuration :

Before launching openNMS, it is useful to check with the following command that OpenNMS finds JAVA and JRE :

  •  /usr/share/opennms/bin/runjava -s

 It is then necessary to parameterize openNMS and to create its data-base so that it can work with PostgreSQL:

  • /usr/share/opennms/bin/install -disU

 openNMS Starting :

For launching OpenNMS, it is necessary to launch PostgreSQL and Tomcat4 :

  • /etc/init.d/postgres-7.4 start
  • /etc/init.d/tomcat4 start
  • /etc/init.d /opennms start

 First access to openNMS :

Launch your web navigator and reach this url :

  • http://localhost:8180/opennms
 
A web page will ask you the login and the password  to access to openNMS :
  • Login : admin
  • Password : admin
 
 
< Prev   Next >

© 2009 ozMonitor Knowledge Base