Pages

Wednesday, April 22, 2015

opennms change default port number

How to change default port number in opennms?

Today I tried installing OpenNMS in BOSS Anokha ( A Debian Derived Linux)
While Installing the standalone version, I faced issues with jicmp6, which will be addressed in next post.

Default Port of OpenNMS in 8080. Say If that port is already being used by some other application, then OpenNMS will not run.

Here are the steps to change default port number of OpenNMS.

Goto the directory where OpenNMS is already installed.
In my Case, ( /usr/local/OpenNMS/ )

Goto etc directory and edit opennms.properties file
In My Case ( /usr/local/OpenNMS/etc )

Line No.: 255,

opennms.rtc-client.http-post.base-url = http://localhost:8000/opennms/rtc/post

Line No.:267
opennms.map-client.http-post.url = http://localhost:8000/opennms/map/post

Line No.:277
org.opennms.netmgt.jetty.port = 8000

Goto etc/examples directory
In My Case ( /usr/local/OpenNMS/etc/examples)
Edit jetty.xml

Line 11:
<Set name="port"><SystemProperty name="org.opennms.netmgt.jetty.port" default="8000" /></Set>

Save those file(s).

Start the server.
Goto   /usr/local/OpenNMS/bin

 ./opennms -f start

Now OpenNMS will be configured to run in port 8000.
This was performed for OpenNMS 15.0.2-1

No comments:

Post a Comment