Comments on: Install OpenNMS 1.2.9 on Ubuntu Server 7.10 – Gutsy Gibbon 32 bit Platform http://www.crashinit6.com/blog/archives/10 HowTo's for Projects that I undertake for linux and windows Mon, 03 May 2010 08:56:45 -0700 http://wordpress.org/?v=2.9.2 hourly 1 By: Thomas Mikes http://www.crashinit6.com/blog/archives/10/comment-page-2#comment-1663 Thomas Mikes Sun, 11 Apr 2010 20:43:55 +0000 http://www.crashinit6.com/blog/?p=10#comment-1663 This post is great. Thank you for this post. I like these type of people who share knowledge with others, free of charge too ;) This post is great. Thank you for this post. I like these type of people who share knowledge with others, free of charge too ;)

]]>
By: Lee http://www.crashinit6.com/blog/archives/10/comment-page-2#comment-532 Lee Mon, 24 Nov 2008 20:52:08 +0000 http://www.crashinit6.com/blog/?p=10#comment-532 Problem invoking maps with opennms on Ubuntu 8.10 using firefox. Receive message: "To view this page you need an SVG viewer. There is currently no Adobe SVG Viewer available for your browser. Click here for more information." Anyone else experiencing this issue? I downloaded the adobe vga 3.01 beta and installed it. no change. Problem invoking maps with opennms on Ubuntu 8.10 using firefox. Receive message:
“To view this page you need an SVG viewer. There is currently no Adobe SVG Viewer available for your browser. Click here for more information.”

Anyone else experiencing this issue?

I downloaded the adobe vga 3.01 beta and installed it. no change.

]]>
By: admin http://www.crashinit6.com/blog/archives/10/comment-page-2#comment-531 admin Tue, 18 Nov 2008 23:56:49 +0000 http://www.crashinit6.com/blog/?p=10#comment-531 Hi dpetduck, Thanx for posting an update to my how to. I will test this with the latest version of Ubuntu Server, but if it worked for you I'm sure that I won't get any or few errors. Regards, Craig Hi dpetduck,

Thanx for posting an update to my how to.
I will test this with the latest version of Ubuntu Server, but if it worked for you I’m sure that I won’t get any or few errors.

Regards,
Craig

]]>
By: dpetduck http://www.crashinit6.com/blog/archives/10/comment-page-2#comment-530 dpetduck Tue, 18 Nov 2008 22:56:28 +0000 http://www.crashinit6.com/blog/?p=10#comment-530 #####Install OpenNMS 1.6.1 on Xubuntu 8.10 32 bit(edited from original at http://www.crashinit6.com/blog/?p=10 for OpenNMS 1.2.9 on Ubuntu server 7.10) (Use At Your Own Risk no guanrantee implied or given!!!!!!!!!!!!!!) ####Prerequisites #### Postgresql-8.3 #### Java jdk ###***Step One***### ###We need to edit the /etc/apt/sources.list file and add the two lines below.### deb http://debian.opennms.org stable main deb-src http://debian.opennms.org stable main sudo nano /etc/apt/sources.list ###Add the OpenNMS PGP Key to APT wget -O - http://debian.opennms.org/OPENNMS-GPG-KEY | sudo apt-key add - ###Run the APT command. sudo apt-get update ###and sudo apt-get upgrade ###on your system ###***Step Two***### ###We need to install necessary files to prevent any dependency problems. sudo apt-get install build-essential nmap mutt libnet-ssleay-perl libauthen-pam-perl libio-pty-perl libmd5-perl java-common ###***Step Three***### ###We need to install Postgressql where the database will reside for OpenNMS sudo apt-get install postgresql-8.3 postgresql-8.3-pljava-gcj postgresql-client-8.3 postgresql-contrib-8.3 postgresql-client-common postgresql-common ###Set Environment variable for POSTGRES_HOME. Insert the following entries in /etc/profile. # POSTGRES_HOME="/etc/postgresql/8.3" # export POSTGRES_HOME ###Now in your console type: source /etc/profile ###This is to read the profile file and make the POSTGRES_HOME variable work. ###Customizing the postgresql.conf file in /etc/postgresql/8.3/main ###This file controls some basic parameters of Postgres. We need to change three of these parameters. ###1. Find the line in the file that contains max_connections.It needs to read: # max_connections = 256 ###Customizing the pg_hba.conf file in /etc/postgresql/8.3/main ###The pg_hba.conf file controls which machines and users can access the database on a given machine via TCP/IP. ###Since that is how OpenNMS accesses the database (via localhost) it is necessary to modify this file to allow OpenNMS to work.The easiest thing to do is ###to just allow anyone from the localhost to access the database (do not add the last line if your system does not support IPv6): #TYPE DATABASE USER IP-ADDRESS IP-MASK METHOD # 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 # Make sure that no other lines are uncommented in this file.You will need to restart Postgres after making these changes. # Path to stop and start PGSQL >> /etc/init.d/postgresql-8.3 restart ###!!!Step Four!!!### ###Install Java ###The Java must be JDK (Java Development Kit) sudo apt-get install sun-java6-jdk ###Set Environment variable for JAVA_HOME. Insert the following entries in /etc/profile. # JAVA_HOME="/usr/lib/jvm/java-6-sun" # export JAVA_HOME ###Now in your console type: source /etc/profile ###If you would like to set which version of Java to run in your Distro or would like to find the path of the Java you are running, use this: sudo update-alternatives –config java ###!!!Step Five!!!### ###Opennms Installation ###Required Files: ###Libraries ### * librrd2-jni ### * librrd2 ### * jicmp ### * iplike-pgsql83 ### * libopennms-java ###Opennms Files ### * opennms-common ### * opennms-contrib ### * opennms-server ### * opennms-db ### * opennms ### * opennms-webapp-jetty ###Follow this procedure to install Opennms. sudo apt-get install librrd2-jni rrdtool librrd2 jicmp libopennms-java opennms-common opennms-contrib iplike-pgsql83 ###We are going to install each application of Opennms to make sure that each one installs without errors and if there are we should resolve them before we ###carry on with the installation. sudo apt-get install opennms-db sudo apt-get install opennms-server sudo apt-get install opennms-webapp-jetty ###If all went well, you should have had no errors. ###We need to specify the path to our Java installation for opennms to work correctly; ### Go to /usr/share/opennms/bin folder. sudo ./runjava -S /usr/lib/jvm/java-6-sun/bin/java ###Your output should be something like this: ### runjava: checking specified JRE: /usr/lib/jvm/java-6-sun/bin/java ### runjava: specified JRE is good. ### runjava: value of /usr/lib/jvm/java-6-sun/bin/java stored in configuration file sudo apt-get install opennms ###Setup Environment variable for OPENNMS_HOME.Insert the following entries in /etc/profile. # OPENNMS_HOME="/usr/share/opennms" # export OPENNMS_HOME ###Now in your console type: source /etc/profile ###This is to read the profile file and make the OPENNMS_HOME variable work. ###Run the Installer to Setup the PostgreSQL Database sudo $OPENNMS_HOME/bin/install -disU ###$OPENNMS_HOME path is /usr/share/opennms ###Hopefully you will get the line below ###Installer completed successfully! ###If you get an error about connection problems, make sure that you have edited the two files explained earlier and that you have restarted the Postgresql ###server. ###OK ###Point your browser to http://localhost:8980/opennms ###You should be prompted for a user name and password, which is: ###username: admin ###Pass: admin ###Please edit these two files before using Opennms. Please read the Documentation on their site for more info. ###* /etc/opennms/discovery-configuration.xml ### * /etc/opennms/snmp-config.xml Thanks for your help. Hope this helps someone. #####Install OpenNMS 1.6.1 on Xubuntu 8.10 32 bit(edited from original at http://www.crashinit6.com/blog/?p=10 for OpenNMS 1.2.9 on Ubuntu server 7.10)
(Use At Your Own Risk no guanrantee implied or given!!!!!!!!!!!!!!)

####Prerequisites
#### Postgresql-8.3
#### Java jdk

###***Step One***###

###We need to edit the /etc/apt/sources.list file and add the two lines below.###

deb http://debian.opennms.org stable main
deb-src http://debian.opennms.org stable main
sudo nano /etc/apt/sources.list

###Add the OpenNMS PGP Key to APT
wget -O – http://debian.opennms.org/OPENNMS-GPG-KEY | sudo apt-key add -

###Run the APT command.
sudo apt-get update
###and
sudo apt-get upgrade
###on your system

###***Step Two***###

###We need to install necessary files to prevent any dependency problems.
sudo apt-get install build-essential nmap mutt libnet-ssleay-perl libauthen-pam-perl libio-pty-perl libmd5-perl java-common

###***Step Three***###

###We need to install Postgressql where the database will reside for OpenNMS
sudo apt-get install postgresql-8.3 postgresql-8.3-pljava-gcj postgresql-client-8.3 postgresql-contrib-8.3 postgresql-client-common postgresql-common

###Set Environment variable for POSTGRES_HOME. Insert the following entries in /etc/profile.
# POSTGRES_HOME=”/etc/postgresql/8.3″
# export POSTGRES_HOME

###Now in your console type:
source /etc/profile

###This is to read the profile file and make the POSTGRES_HOME variable work.

###Customizing the postgresql.conf file in /etc/postgresql/8.3/main

###This file controls some basic parameters of Postgres. We need to change three of these parameters.
###1. Find the line in the file that contains max_connections.It needs to read:
# max_connections = 256

###Customizing the pg_hba.conf file in /etc/postgresql/8.3/main
###The pg_hba.conf file controls which machines and users can access the database on a given machine via TCP/IP.
###Since that is how OpenNMS accesses the database (via localhost) it is necessary to modify this file to allow OpenNMS to work.The easiest thing to do is ###to just allow anyone from the localhost to access the database (do not add the last line if your system does not support IPv6):
#TYPE DATABASE USER IP-ADDRESS IP-MASK METHOD
# 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
# Make sure that no other lines are uncommented in this file.You will need to restart Postgres after making these changes.
# Path to stop and start PGSQL >> /etc/init.d/postgresql-8.3 restart

###!!!Step Four!!!###

###Install Java
###The Java must be JDK (Java Development Kit)
sudo apt-get install sun-java6-jdk

###Set Environment variable for JAVA_HOME. Insert the following entries in /etc/profile.
# JAVA_HOME=”/usr/lib/jvm/java-6-sun”
# export JAVA_HOME
###Now in your console type:
source /etc/profile
###If you would like to set which version of Java to run in your Distro or would like to find the path of the Java you are running, use this:
sudo update-alternatives –config java

###!!!Step Five!!!###

###Opennms Installation
###Required Files:
###Libraries
### * librrd2-jni
### * librrd2
### * jicmp
### * iplike-pgsql83
### * libopennms-java
###Opennms Files
### * opennms-common
### * opennms-contrib
### * opennms-server
### * opennms-db
### * opennms
### * opennms-webapp-jetty

###Follow this procedure to install Opennms.
sudo apt-get install librrd2-jni rrdtool librrd2 jicmp libopennms-java opennms-common opennms-contrib iplike-pgsql83

###We are going to install each application of Opennms to make sure that each one installs without errors and if there are we should resolve them before we ###carry on with the installation.
sudo apt-get install opennms-db
sudo apt-get install opennms-server
sudo apt-get install opennms-webapp-jetty

###If all went well, you should have had no errors.
###We need to specify the path to our Java installation for opennms to work correctly;
### Go to /usr/share/opennms/bin folder.
sudo ./runjava -S /usr/lib/jvm/java-6-sun/bin/java

###Your output should be something like this:
### runjava: checking specified JRE: /usr/lib/jvm/java-6-sun/bin/java
### runjava: specified JRE is good.
### runjava: value of /usr/lib/jvm/java-6-sun/bin/java stored in configuration file
sudo apt-get install opennms

###Setup Environment variable for OPENNMS_HOME.Insert the following entries in /etc/profile.
# OPENNMS_HOME=”/usr/share/opennms”
# export OPENNMS_HOME
###Now in your console type:
source /etc/profile

###This is to read the profile file and make the OPENNMS_HOME variable work.
###Run the Installer to Setup the PostgreSQL Database
sudo $OPENNMS_HOME/bin/install -disU
###$OPENNMS_HOME path is /usr/share/opennms

###Hopefully you will get the line below
###Installer completed successfully!
###If you get an error about connection problems, make sure that you have edited the two files explained earlier and that you have restarted the Postgresql ###server.
###OK
###Point your browser to http://localhost:8980/opennms
###You should be prompted for a user name and password, which is:
###username: admin
###Pass: admin

###Please edit these two files before using Opennms. Please read the Documentation on their site for more info.
###* /etc/opennms/discovery-configuration.xml
### * /etc/opennms/snmp-config.xml

Thanks for your help. Hope this helps someone.

]]>
By: admin http://www.crashinit6.com/blog/archives/10/comment-page-2#comment-523 admin Wed, 12 Nov 2008 21:20:48 +0000 http://www.crashinit6.com/blog/?p=10#comment-523 Hi Ken, It does not surprise me as the repo's change over time and software gets removed and added with the newer versions. You could try searching for the packages in Google and install them manually. You can get tomcat on their site at http://tomcat.apache.org/tomcat-4.1-doc/index.html. Please keep in mind that this blog is very old and the version of OpenNMS is much more mature with many more features which in the long run is more beneficial. If I get time I will try and get the latest version up and running on Ubuntu Server 8.04LTS. Sorry I can't help any further. Good Luck. Regards, Craig Hi Ken,

It does not surprise me as the repo’s change over time and software gets removed and added with the newer versions. You could try searching for the packages in Google and install them manually. You can get tomcat on their site at http://tomcat.apache.org/tomcat-4.1-doc/index.html.

Please keep in mind that this blog is very old and the version of OpenNMS is much more mature with many more features which in the long run is more beneficial. If I get time I will try and get the latest version up and running on Ubuntu Server 8.04LTS.

Sorry I can’t help any further.
Good Luck.

Regards,
Craig

]]>
By: Ken G http://www.crashinit6.com/blog/archives/10/comment-page-2#comment-518 Ken G Fri, 07 Nov 2008 22:31:34 +0000 http://www.crashinit6.com/blog/?p=10#comment-518 These directions do not work on Ubuntu 7.10. All of the following dependecies I was unable to obtain through apt: * librrd0-jni * librrd0 * libiplike-pgsql sudo apt-get install tomcat4 tomcat4-admin tomcat4-webapps So if you can't meet these dependecies how can you go on??????? Is there a apt mirror that I am missing the ones supplied do not contain Tomcat4 at all. “back ports” Does not work either. These directions do not work on Ubuntu 7.10. All of the following dependecies I was unable to obtain through apt:

* librrd0-jni
* librrd0
* libiplike-pgsql

sudo apt-get install tomcat4 tomcat4-admin tomcat4-webapps

So if you can’t meet these dependecies how can you go on???????

Is there a apt mirror that I am missing the ones supplied do not contain Tomcat4 at all. “back ports” Does not work either.

]]>
By: AlexM http://www.crashinit6.com/blog/archives/10/comment-page-2#comment-412 AlexM Sun, 17 Aug 2008 09:31:55 +0000 http://www.crashinit6.com/blog/?p=10#comment-412 Your blog is interesting! Keep up the good work! Your blog is interesting!

Keep up the good work!

]]>
By: admin http://www.crashinit6.com/blog/archives/10/comment-page-2#comment-403 admin Mon, 11 Aug 2008 12:59:57 +0000 http://www.crashinit6.com/blog/?p=10#comment-403 Hi Sushant. I'm glad to hear that you got PostgreSQl running. Were you able to install the OpenNMS database into PostgreSQl successfully? Assuming that everything installed correctly all you have to do is go to: http://localhost:8180/opennms. Please not that port 8180 is the port that tomcat listens on.The OpenNMS logon page should appear and you can logon as admin with password being also admin. If that does not work make sure that Tomcat and OpenNMS are both running. Code: # sudo /etc/init.d/tomcat restart # sudo /etc/init.d/opennms restart That should be it. Let me know if it is working for you. Regards, Craig Hi Sushant.

I’m glad to hear that you got PostgreSQl running. Were you able to install the OpenNMS database into PostgreSQl successfully?
Assuming that everything installed correctly all you have to do is go to: http://localhost:8180/opennms. Please not that port 8180 is the port that tomcat listens on.The OpenNMS logon page should appear and you can logon as admin with password being also admin.
If that does not work make sure that Tomcat and OpenNMS are both running.

Code:
# sudo /etc/init.d/tomcat restart
# sudo /etc/init.d/opennms restart

That should be it.
Let me know if it is working for you.

Regards,

Craig

]]>
By: sushant sapra http://www.crashinit6.com/blog/archives/10/comment-page-2#comment-402 sushant sapra Mon, 11 Aug 2008 09:53:27 +0000 http://www.crashinit6.com/blog/?p=10#comment-402 hi craig, i deleted my previous version of postgresql and m able to install the version 8.1 through some mirrors.. thanx a lot for ur help.. Now my openNMS installation is complete according to this tutorial.. Please tell me the commands to start using it.. i mean what is the next step..?? thanx in advance.. Regards, Sushant Sapra hi craig,
i deleted my previous version of postgresql and m able to install the version 8.1 through some mirrors..
thanx a lot for ur help..

Now my openNMS installation is complete according to this tutorial.. Please tell me the commands to start using it.. i mean what is the next step..??

thanx in advance..

Regards,
Sushant Sapra

]]>
By: admin http://www.crashinit6.com/blog/archives/10/comment-page-2#comment-373 admin Thu, 17 Jul 2008 07:53:53 +0000 http://www.crashinit6.com/blog/?p=10#comment-373 Hi Sushant. I'm not too clued up with sql databases running on PostgreSQL. This line "Connection refused. Check that the hostname and port are correct and that the postmaster is accepting TCP/IP connections." tells me that PostgreSQL-8.1 is not running. Have your tried restarting the server and see if it works then? There might still be a reference to the newer version of PostgreSQL. The best is maybe to use Google. Oh, you should also do a search for the newer PostgreSQL folders and delete them. I know this is not much, but we have to start some where. Good luck. P.S Please let me know what the issue was - I would appreciate it. Regards, Craig Hi Sushant.

I’m not too clued up with sql databases running on PostgreSQL.
This line “Connection refused. Check that the hostname and port are correct and that the postmaster is accepting TCP/IP connections.” tells me that PostgreSQL-8.1 is not running. Have your tried restarting the server and see if it works then? There might still be a reference to the newer version of PostgreSQL. The best is maybe to use Google. Oh, you should also do a search for the newer PostgreSQL folders and delete them.

I know this is not much, but we have to start some where.

Good luck.
P.S
Please let me know what the issue was – I would appreciate it.

Regards,

Craig

]]>