Dear sir,
i had installed opennms in linux serveri had error during installation of following command i followe the installation method in following link
http://www.opennms.org/wiki/OpenNMS_..._Fedora_Core_6.
i had installed opennms package ,java,postgresql package
im repeatly getting error during exe of the following command
install –disU –l /usr/lib/jni:/usr/lib.can somebody can help me to resolve the conflict
SNAPSHOT OF ERROR : I GOT:
==============================================================================
OpenNMS Installer Version $Id: Installer.java 7383 2007-09-07 22:14:34Z rangerrick $
==============================================================================
Configures PostgreSQL tables, users, and other miscellaneous settings.
ERROR I GOT DURING INSTALLATION:
searching for jicmp:
- trying to load /usr/lib/jni/libjicmp.so: NO
- trying to load /usr/lib/libjicmp.so: NO
- trying to load /opt/apps/java/jdk1.6.0_25/jre/lib/i386/server/libjicmp.so: NO
- trying to load /opt/apps/java/jdk1.6.0_25/jre/lib/i386/libjicmp.so: NO
- trying to load /opt/apps/java/jdk1.6.0_25/jre/../lib/i386/libjicmp.so: NO
- trying to load /libjicmp.so: NO
- trying to load /opt/opennms/lib/libjicmp.so: NO
- trying to load /usr/java/packages/lib/i386/libjicmp.so: NO
- trying to load /lib/libjicmp.so: NO
- trying to load /usr/lib/libjicmp.so: NO
Failed to load the jicmp library.
It is required at runtime. By default, we search the java library path:
/opt/apps/java/jdk1.6.0_25/jre/lib/i386/server
/opt/apps/java/jdk1.6.0_25/jre/lib/i386
/opt/apps/java/jdk1.6.0_25/jre/../lib/i386
/opt/opennms/lib
/usr/java/packages/lib/i386
/lib
/usr/lib
For more information, see
http://www.opennms.org/index.php/jicmp
Exception in thread "main" java.lang.Exception: A fatal error occurred, exiting installer.
at org.opennms.install.Installer.findLibrary(Installer.java:853)
at org.opennms.install.Installer.install(Installer.java:159)
at org.opennms.install.Installer.main(Installer.java:771)
INSTLLATIONPROCEDURE I FOLLOWED
# cd /root
# chmod +x jdk-1_5_0_12-linux-i586-rpm.bin
# ./ jdk-1_5_0_12-linux-i586-rpm.bin then accept . this will automatically extract the rpm and install java to the folder /usr/java/jdk1.5.0_12/
# cd /usr/bin
#
Setup Environment variable for java home. Insert the following entries in /etc/profile
# vi /etc/profile
add the following entries
JAVA_HOME="/opt/apps/java/jdk1.6.0_25"
save and exit (!wq)
Then run the following command to commit this
# source /etc/profile
# echo $ JAVA_HOME , it should display
/usr/java/jdk1.5.0_12
Now java is installed. Proceed to configure postgres
3. Install and configure postgresql
Check whether postgres is installed.
# cd /root
# rpm –qa | grep postgres – It should display
postgresql-libs-8.1.4-1.1
postgresql-server-8.1.4-1.1
postgresql-8.1.4-1.1
postgresql-python-8.1.4-1.1
If not, do install postgres. Once installed you can configure now
# cd /root
# /etc/init.d/postgresql start
Starting postgresql service: [ OK ]
# cd /var/lib/pgsql/data/
# cp pg_hba.conf pg_hba.conf.org
# vi pg_hba.conf
uncomment the following lines
local all all ident sameuser
host all all 127.0.0.1/32 ident sameuser
host all all ::1/128 ident sameuser
and add the following entries :
local all all trust
host all all 127.0.0.1/32 trust
host all all ::1/128 trust
then save and exit
# cp postgresql.conf postgresql.conf.org
# vi postgresql.conf
and uncomment the line
listen_addresses = 'localhost'
save and exit
# /etc/init.d/postgresql stop
# /etc/init.d/postgresql start
Now postgresql is ready to use for opennms.
4. Install jicmp
Download jicmp-1.0-1_fc6.i386.rpm from
http://downloads.sourceforge.net/ope..._fc6.i386.rpm? modtime=1185807521&big_mirror=0 ,and save to /root.
# cd /root
# rpm –ivh jicmp-1.0-1_fc6.i386.rpm
This will get jicmp rpm.
5. Install Opennms-core
Download the opennms-core from
http://downloads.sourceforge.net/ope...-1.noarch.rpm? modtime=1189773547&big_mirror=0 and save to /root
# cd /root
# rpm –ivh opennms-core-1.3.7-1.noarch.rpm
6. Install OpenNMS-webapp
Download OpenNMS-webapp-jetty from
http://downloads.sourceforge.net/ope...p-jetty-1.3.7- .noarch.rpm?modtime=1189773564&big_mirror=0 and save to /root
# cd /root
# rpm –ivh opennms-webapp-jetty-1.3.7-1.noarch.rpm
7. Install OpenNMS
Download OpenNMS from
http://downloads.sourceforge.net/ope...-1.noarch.rpm? modtime=1189773547&big_mirror=0 and save to /root
# cd /root
# rpm –ivh opennms-1.3.7-1.noarch.rpm
8. Install OpenNMS-doc
Download OpenNMS-doc from
http://downloads.sourceforge.net/ope...6&big_mirror=0 and save to /root
# cd /root
# rpm –ivh opennms-docs-1.3.7-1.noarch.rpm
9. Configuring OpenNMS
# cd /opt/opennms/bin
# echo $JAVA_HOME
/usr/java/jdk1.5.0_12
# ./runjava –s
runjava: Looking for an appropriate JRE...
runjava: Checking for an appropriate JRE in JAVA_HOME...
runjava: found: "/usr/java/jdk1.5.0_12/bin/java" is an appropriate JRE
runjava: value of "/usr/java/jdk1.5.0_12/bin/java" stored in configuration file
# install –disU –l /usr/lib/jni:/usr/lib
This will install opennms and ready to use.
10. Configure Discovery
# cd /opt/opennms/etc
# cp /etc/discovery-configuration.xml /etc/discovery-configuration.xml.org
# vi /etc/discovery-configuration.xml
and change the network range as per your requirement (10.0.0.1 and 10.0.0.254)
saravanakumar
linux administrator