OpenNMS 1.3.7 on Fedora Core 6
Subscribe

From OpenNMS

Jump to: navigation, search

If you want to install OpenNMS 1.3.x on Fedora Core, you probably want this article instead.

Installing OpenNMS 1.3.7 on Fedora Core 6 - By R.S.Sundar - Aricent


1. Install Fedora Core 6 as per your requirement ( I used full install – everything)

2. Install Sun Java JDK :

Download Java Development Kit 5.0 Update 12 from this link -http://java.sun.com/javase/downloads/index_jdk5.jsp 
Select JDK 5.0 Update 12. You must read  the license agreement to download the product. 
Then choose  Linux RPM in self extracting file and download the file jdk-1_5_0_12-linux-i586-rpm.bin
Once downloaded copy to /root folder use the following commands: 
Login as Root :
# 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
# mv jar jar.org
# mv javah javah.org
# mv javac javac.org
# ln  -s /usr/java/jdk1.5.0_12/bin/jar jar
# ln –s /usr/java/jdk1.5.0_12/bin/java java
# ln –s /usr/java/jdk1.5.0_12/bin/javah javah
# ln –s /usr/java/jdk1.5.0_12.bin/javac javac

Setup Environment variable for java home. Insert the following entries in /etc/profile

# vi /etc/profile

add the following entries

JAVA_HOME="/usr/java/jdk1.5.0_12"
export JAVA_HOME

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/opennms/jicmp-1.0-1_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/opennms/opennms-core-1.3.7-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/opennms/opennms-webapp-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/opennms/opennms-core-1.3.7-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/opennms/opennms-docs-1.3.7-1.noarch.rpm?modtime=1189773556&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) 


<discovery-configuration threads="1" packets-per-second="1"
  	 initial-sleep-time="30000" restart-sleep-time="86400000"
   	   retries="1" timeout="2000">
   	   <include-range>
      	   <begin>10.0.0.1</begin>
      	   <end>10.0.0.254</begin>
 	  </include-range>
</discovery-configuration>

save and exit

11. Start the opennms

We will make sure postgresql, opennms  daemons are started at boot time of the servers.
# cd /root
# chkconfig postgresql on
# chkconfig opennms on
Now we will start the opennms daemon 
# cd /opt/opennms/bin
# ./opennms start or  /etc/init.d/opennms start 
This will start the daemon successfully.Confirm whether the opennms daemons are running properly.
# cd /opt/opennms/bin
# ./opennms –v status

It should display

OpenNMS.Eventd         : running
OpenNMS.Trapd          : running
OpenNMS.Queued         : running
OpenNMS.Dhcpd          : running
OpenNMS.Actiond        : running
OpenNMS.Capsd          : running
OpenNMS.Notifd         : running
OpenNMS.Scriptd        : running
OpenNMS.Rtcd           : running
OpenNMS.Pollerd        : running
OpenNMS.PollerBackEnd  : running
OpenNMS.Ticketer       : running
OpenNMS.Collectd       : running
OpenNMS.Threshd        : running
OpenNMS.Discovery      : running
OpenNMS.Vacuumd        : running
OpenNMS.EventTranslator: running
OpenNMS.PassiveStatusd : running
OpenNMS.Statsd         : running
OpenNMS.Importer       : running
OpenNMS.JettyServer    : running
opennms is running
# 
Congrajulations!. You have setup the opennms successfully now.

You can now use the web browser

http://machine-ip:8980/opennms

Use user name "admin" and password "admin" to log to OpenNMS main page.

12. Logs  : All logs are stored at /var/log/opennms and there will be 3 folders - controller daemon webapp

13. Enable Maps

# cd /opt/opennms/etc
# mv map.disable map.enable

Restart OpenNMS

# cd ../bin
# ./opennms stop
# ./opennms start

Once when you login again, you can see the map tab in the main menu.

14. Further Reading

Visit www.opennms.org and read the official Documentation - http://www.opennms.org/index.php/Docu-overview and Quickstart guide http://www.opennms.org/index.php/QuickStart