How to Install OpenNMS Network Monitoring System on Ubuntu

opennms on ubuntu

How to install and configure OpenNMS platform to monitor the network in Ubuntu 16.04 / 18.04 of Linux.

What is OpenNMS?

OpenNMS has been created as an open source platform for easy integration and developed to generate solutions and support when it comes to network monitoring tasks.

OpenNMS automatically discover your entire network using CDP, FDP, LLDP, OSPF, BGP, SNMP and ARP and provide you alerts via email, slack, support for Microblog notifications via Identica / StatusNet / Twitter and more.

Currently, there are two distributions of OpenNMS: Meridian and new release Horizon 24.

The Meridian option is particular for companies and businesses where data and support should be stable and have long-term help; on the contrary, Horizon is ideal for monitoring and managing new technologies and IT environments.

In this article, I’ll explain a simple tutorial to show new users how to install OpenNMS platform on Ubuntu 16.04 / 18.04 LTS server.

Prerequisites

  • A well-configured freshly installed Ubuntu 18.04 system with root privileges and a proper hostname with Static IP.
  • PostgreSQL: 9.3+
  • Java: 8 or above

Step 1: Update Ubuntu Sytem

The first step is to update the system packages by executing the following commands:

Step 2: Install PostgreSQL

The OpenNMS platform must use PostgreSQL for everything related to the database, to install PostgreSQL you need to execute the following command:

After performing the PostgreSQL installation process, it will be necessary to allow users access to this database.

You must change the configuration to allow the root user we must access the following directory:

There you must locate the following lines:

Now you must change the last value in the following way:

Save the changes using the following key combination Ctrl + O and exit the editor using Ctrl + X.

We proceed to restart the PostgreSQL service by executing the following:

Step 3: Install OpenJDK on Ubuntu

The third step is to install Java on Ubuntu desktop by running the commands below:

After installing OpenJDK, run the commands below to configure it as the default JDK runtime for Ubuntu. To find out which version of JDK to run, type the commands below:

Then, copy the installation path of your preferred JDK home. Next, open the /etc/environment file:

Next, add the following line, at the end of the file:

Close out and save and next run the commands below to apply:

When you’re done, OpenJDK should be installed and ready to use.

Step 4: Download and Install OpenNMS

By default, the OpenNMS application is not available in the official Ubuntu repository, which is why we must add the OpenNMS repository to the /etc/apt/sources.list.d directory.

We will execute the following command for this:

There, we will add the following lines:

Save the changes using the following key combination Ctrl + O and exit the editor using Ctrl + X.

Now, we will add the OpenNMS GPG keys with the following command:

Again we will update the repository with the execution of the following command:

Once updated this repository, we proceed to execute the following for the installation of OpenNMS:

Once this step is finished, we will create a database for OpenNMS. For this we will run the following command:

We hope that the database is created. Then we will start the service running:

It is necessary that we allow access through a web browser and for this we must give the required permissions in the firewall, we will execute the following:

Step 5: Access OpenNMS

Finally, OpenNMS web application at http://localhost:8980/opennms. The default login user is admin and the password is initialized to admin.

http://localhost:8980/opennms

Username: admin

Password: admin

Login and start configuring your settings.

Congratulations! You have successfully installed and configured OpenNMS on your Ubuntu system. Now you can add more nodes to your network monitoring solution. I hope this tutorial is informative and useful to you. Please post your valuable comments and suggestions on this article below.

Leave a Reply

Your email address will not be published. Required fields are marked *