Open NMS Installation Tutorial

Source: Internet
Author: User
Tags administrator password postgres database opennms java se

Open NMS Installation Tutorial

And in a formal mission, I was asked to deploy an open source network management system on the Windows platform. While working on the task, I got some questions about which I couldn't find the solution on the Internet, and I used the hit and test methods to get the solution. Then I want to write about these problems and their solutions. But in the first step, I'll write a step-by-Step guide on the Windows platform (ie Windows XP or win Server 2003) to install OpenNMS's

The installation of OPENNMS will consist of 4 steps,

1. Installation of the Java Development Kit
2. Installed PostgreSQL
3. Initializing the database
4. Add JRRD Library
5. Installation of the OPENNMS

1. Installation of the Java Development Kit
The latest version of the Java SE JDK java.sun.com downloaded from the Java official website
Remember that JDK is not just JRE, you need to download Java SE (Standard Edition) and non-Java EE and Java me or Java FX.
Run the installation JDK and it will ask for the license agreement.

Click the Accept button.

Click Next to start the installation.

It prompts you to install the JRE. Click Next to install the JRE, and then you will get the final window.

Press the Finish button to complete the installation of the Java SE jdk.
2. Installed PostgreSQL
Click on Windows Installer to download PostgreSQL Fromhttp://www.postgresql.org/download/windowsand to run the Setup program.


Click Next to continue the installation

If you need to change the destination path, then select the installation directory, or press next to continue.

If you need to change the path to the target data directory, then select the directory, or press next to continue.

For the Super User and service account, Postgres, and then press next to enter the password.

Enter the server listening port (it is recommended to use the default port), and then press the next step.

Select the appropriate locale or use the default locale, and then press the next step.

Setup is now ready to install. Press Next to start the installation.

Wait until the installation and continue to complete the display screen.

Click the Finish button to complete the installation.
3. Initializing the database
If it is not initialized during the installation of the default database for any reason, it can be done manually. Open a command prompt, and then go to the bin directory of PostgreSQL. In my case, it is the "C # program files file \ PostgreSQL \ 8.3 \ BIN"
Initialize the database "-e initdb UTF-8-u postgres by using the following command: Data

If the ".. /data exists but is not empty "message appears, meaning that the database has been initialized.
Run the server through the Start menu-> Programs-> PostgreSQL 8.X and click Start Server.

Follow the same path, and then click Pgadmin Third.
Double-click 8.X (localhost: 5432) of PostgreSQL to connect to the database.

It will prompt for a password. Enter the password and press the OK button.
> Postgres-Select Postgres database according to database.

Go to the File menu and select Options.

In the Display tab, activate the language as shown, and then press the OK button.
Returns the Postgres and expansion to the database. The language options are now available in the tree. Right-click the language and select a new language.

Select Plpgsql from the Name drop-down menu and press the OK button to add the language.

Exit the Pgadmin.
4. Add JRRD Library
Now JRRD is no longer distributed as part of the OPENNMS. If you want to be compatible with RRDtool instead of jrobin then download jrrd from here.
Add a library Path variable.
5. Installation of the OPENNMS
Download the installer for standalone-opennms, the latest version of Xxxjar from the OPENNMS download page.
When the download is complete, and then double-click the installer canister, it will begin to install. If Internet Explorer saves the file as a zip file that contains a different folder, it means that you do not have the Java SDK installed.

Click Next.


Accept the license agreement and press the Next button.

Select the JDK home directory and choose Next.

Select the installation directory, and then select Next.

Postgres Enter the user password, and then press the next step.

Enter the IP range to discover the node and press the next step.

Press the next step.

Click the Next button when the installation is complete.

When the configuration and database installation is complete, click Next.

Click Finish to complete the installation.
Open a command prompt and goto OpenNMS bin directory. By default, this will be the \ BIN of the C # program files file \ OpenNMS
If you install JRRD and your Jrrd.jar files separately are placed in the \ lib directory of C: \ OpenNMS, then run the following command
INSTALL. BAT-DISL "c \ opennms \ LIB"
Execute the following command
Opennms.bat start
Open the browser and open linkhttp://localhost: 8980/opennms
Log on to the Web console by using an administrator user name and an administrator password.
You are ready to go with OpenNMS's
In the next session, I will discuss the installation and how to resolve the different issues that they face during the period.

I would recommend that you use Oracle JDK 1.7u45 above to run OpenNMS instead of OPENJDK. Do not use Oracle JDK 1.8 (8 in Java); We are not compatible with Java 8 at this point. There are several errors in our bug database related to OutOfMemoryError exceptions occasionally thrown with openjdk. I can't say that I remember having a socketexception about it, please use but Oracle's JDK, not when everything should be rock solid.


Open NMS Installation Tutorial

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.