Difference between revisions of "OpenNMS: UBUNTU 20.04 instalasi OpenNMS"

From OnnoWiki
Jump to navigation Jump to search
Line 1: Line 1:
 
Sumber: https://linoxide.com/monitoring-2/install-configure-opennms-ubuntu/
 
Sumber: https://linoxide.com/monitoring-2/install-configure-opennms-ubuntu/
  
 +
OpenNMS adalah sistem manajemen jaringan yang sangat terintegrasi, open soyrce, dan enterprise-grade yang dapat digunakan untuk memantau dan mengelola banyak perangkat dari satu instance. Ini membuat kita mendapatkan informasi terbaru tentang apa yang terjadi dengan jaringan dengan secara berkala memeriksa semua layanan yang tersedia, mengisolasi masalah, mengumpulkan informasi kinerja, dan melakukan tindakan yang dapat membantu menyelesaikan outage.
  
OpenNMS is a highly integrated, open-source, and enterprise-grade network management system that can be used to monitor and manage numerous devices from a single instance.  This keeps you up to date on what's happening with your network by periodically checking all services available, isolating problems, collecting performance information, and performing actions that can help to resolve outages.
+
Saat ini, ada dua distribusi OpenNMS yang tersedia yaitu Horizon dan Meridian. Meridian dimaksudkan untuk perusahaan dan bisnis yang mencari stabilitas dan dukungan jangka panjang. Di sisi lain, Horizon dirancang untuk memantau dan mengelola teknologi baru dan lingkungan TI. Kedua distribusi ini adalah perangkat lunak open source.
  
Currently, there are two distributions of OpenNMS available namely Horizon and Meridian. The Meridian is meant for companies and businesses who are looking for stability and long-term support. On the other hand, Horizon is designed for monitoring and managing new technologies and IT environments. Both these distributions are open-source software.
+
==Fitur utama OpenNMS==
  
OpenNMS Key Features:
+
* Automatic acknowledgment of self-clearing problems
 +
* Provisioning
 +
* Supports all Popular OS distributions like Windows, Linux/Unix, Mac and Solaris
 +
* Service Monitoring
 +
* Event Management
 +
* Performance Measurement
 +
* Charting support
  
    Automatic acknowledgment of self-clearing problems
+
==Pre-requisit==
    Provisioning
 
    Supports all Popular OS distributions like Windows, Linux/Unix, Mac and Solaris
 
    Service Monitoring
 
    Event Management
 
    Performance Measurement
 
    Charting support
 
  
Pre-requisites
+
* Ubuntu 20.04 dengan user root privilege.
 +
* Hostane dan IP statik
 +
* Java: 8 or above
 +
* PostgreSQL: 9.3+
  
    A well-configured freshly installed Ubuntu 18.04 system with root privileges and a proper hostname with Static IP.
+
==Step 1: Update System==
    Java: 8 or above
 
    PostgreSQL: 9.3+
 
  
Let's begin with our installation stages one by one.
+
Lakukan
Step 1: Update your System
 
  
Before starting the installation, I would recommend updating your system software with the latest available versions. You can do this by running these commands below:
+
apt update
 +
apt-get upgrade -y
  
#apt-get update -y
+
==Step 2: Download and Install OpenNMS==
#apt-get upgrade -y
 
  
Step 2: Download and Install OpenNMS
+
Kita download bootstrap script untuk instlasi OpenNMS di Ubuntu. Script akan menjalankan langkah instalasi software berikut,
  
In this step, we will download a bootstrap script to install OpenNMS on Debian/Ubuntu systems. The script executes all the steps for this software installation automatically as listed below:
+
* Oracle Java 8 JDK Installation
 +
* PostgreSQL Server installation and Setup
 +
* Build OpenNMS Repositories
 +
* Installing OpenNMS with core services and Web application
 +
* Initialize and bootstrapping the database
 +
* Start OpenNMS
  
    Oracle Java 8 JDK Installation
+
Download & extrak OpenNMS installer dari Github. Jalankan script bootstrap-debian.sh.
    PostgreSQL Server installation and Setup
 
    Build OpenNMS Repositories
 
    Installing OpenNMS with core services and Web application
 
    Initialize and bootstrapping the database
 
    Start OpenNMS
 
  
You can download and extract the OpenNMS installer from Github and execute the bootstrap-debian.sh script to carry out our installation.
+
# wget https://github.com/opennms-forge/opennms-install/archive/master.zip
 +
# unzip master.zip
  
# wget https://github.com/opennms-forge/opennms-install/archive/master.zip
+
Archive: master.zip
# unzip master.zip
+
33e5138d33912a5ce9faf260a411cc7a20e44ead
Archive: master.zip
+
creating: opennms-install-master/
33e5138d33912a5ce9faf260a411cc7a20e44ead
+
extracting: opennms-install-master/.gitignore
creating: opennms-install-master/
+
inflating: opennms-install-master/LICENSE
extracting: opennms-install-master/.gitignore
+
inflating: opennms-install-master/README.adoc
inflating: opennms-install-master/LICENSE
+
inflating: opennms-install-master/bootstrap-debian-dev.sh
inflating: opennms-install-master/README.adoc
+
inflating: opennms-install-master/bootstrap-debian.sh
inflating: opennms-install-master/bootstrap-debian-dev.sh
+
inflating: opennms-install-master/bootstrap-yum.sh
inflating: opennms-install-master/bootstrap-debian.sh
 
inflating: opennms-install-master/bootstrap-yum.sh
 
  
# cd opennms-install-master/
+
# cd opennms-install-master/
# bash bootstrap-debian.sh
+
# bash bootstrap-debian.sh
  
The installer takes you through various interactive sections with yes or no questions and configuration windows while proceeding with the installation. It is quite self-explanatory and easy to understand. Initially, it will provide you with an overview of the tasks which the script performs and will ask your confirmation to proceed with the installation.
+
Kita perlu menjawab pertanyaan2 yes & no.
 
 
#bash bootstrap-debian.sh
 
This script installs OpenNMS on your system. It will
 
install all components necessary to run OpenNMS.
 
 
 
The following components will be installed:
 
 
 
- Oracle Java 8 JDK
 
- PostgreSQL Server
 
- OpenNMS Repositories
 
- OpenNMS with core services and Webapplication
 
- Initialize and bootstrapping the database
 
- Start OpenNMS
 
  
 
If you have OpenNMS already installed, don't use this script!
 
If you have OpenNMS already installed, don't use this script!
Line 104: Line 91:
 
Secondly, it will open up a window to choose the PostgresSQL-postfix gateway configuration for email intimation. You can choose the internet-site and click Ok to proceed further.
 
Secondly, it will open up a window to choose the PostgresSQL-postfix gateway configuration for email intimation. You can choose the internet-site and click Ok to proceed further.
  
Postfix email gateway
+
==Postfix email gateway==
  
 
Next, we need to enter FQDN hostname of your system and click Ok to proceed as in the screenshot:
 
Next, we need to enter FQDN hostname of your system and click Ok to proceed as in the screenshot:
  
mailname setup
+
mailname setup
  
 
After the PostgresSQL setup, it will start with the Java Installation. This will open-up two windows to approve the Licence Agreement to download the Oracle JDK package and proceed with the installation.
 
After the PostgresSQL setup, it will start with the Java Installation. This will open-up two windows to approve the Licence Agreement to download the Oracle JDK package and proceed with the installation.
  
java_installer
+
==java_installer==
  
 
License Agreement
 
License Agreement
Line 118: Line 105:
 
In the next stage, it will open-up a window to initimate us to run the OpenNMS installer script located at /usr/share/opennms/bin/install manually to configure the OpenNMS-database as in the screenshot. You can click ok to complete the installation.
 
In the next stage, it will open-up a window to initimate us to run the OpenNMS installer script located at /usr/share/opennms/bin/install manually to configure the OpenNMS-database as in the screenshot. You can click ok to complete the installation.
  
opennms_installer
+
opennms_installer
  
 
Once the component installations are complete. It will start and enable the OpenNMS service automatically and report about the successful installation.
 
Once the component installations are complete. It will start and enable the OpenNMS service automatically and report about the successful installation.
  
Congratulations
+
==Congratulations==
---------------
+
 
  
 
OpenNMS is up and running. You can access the web application with
 
OpenNMS is up and running. You can access the web application with
  
http://this-systems-ip:8980
+
http://this-systems-ip:8980
  
 
Login with username admin and password admin
 
Login with username admin and password admin
Line 138: Line 125:
 
Finally, to complete the installation we need to proceed with configuring OpenNMS database as stated before by manually running the installer script located at  /usr/share/opennms/bin/install as below:
 
Finally, to complete the installation we need to proceed with configuring OpenNMS database as stated before by manually running the installer script located at  /usr/share/opennms/bin/install as below:
  
# /usr/share/opennms/bin/install -dis
+
# /usr/share/opennms/bin/install -dis
==============================================================================
+
==============================================================================
OpenNMS Installer
+
OpenNMS Installer
==============================================================================
+
==============================================================================
  
 
Configures PostgreSQL tables, users, and other miscellaneous settings.
 
Configures PostgreSQL tables, users, and other miscellaneous settings.
  
 
This script will automatically configure and upgrade the database tables, users and all other settings as required.
 
This script will automatically configure and upgrade the database tables, users and all other settings as required.
Step 3: Access OpenNMS
+
 
 +
==Step 3: Access OpenNMS==
  
 
Now you can point your browser to http://Server-IP or Hostname:8980 to access the OpenNMS Web interface.
 
Now you can point your browser to http://Server-IP or Hostname:8980 to access the OpenNMS Web interface.
  
OpenNMS Web login Console
+
OpenNMS Web login Console
  
 
There you can enter the default admin credentials to log in as below:
 
There you can enter the default admin credentials to log in as below:
  
User: admin
+
User: admin
Password: admin
+
Password: admin
  
OpenNMS Web Console
+
OpenNMS Web Console
Change Default Password
+
Change Default Password
  
 
For security reasons, I'll advise modifying your default password soon after login. You can select the Change password option from the drop-down by clicking the Admin tab.
 
For security reasons, I'll advise modifying your default password soon after login. You can select the Change password option from the drop-down by clicking the Admin tab.
  
Choose Change password
+
Choose Change password
  
Change Password
+
Change Password
  
 
You can enter the current password and your new password as in the screenshot and click submit to modify your password.
 
You can enter the current password and your new password as in the screenshot and click submit to modify your password.
Adding a New Node
+
 
 +
Adding a New Node
  
 
Now, let's see how to add a new node to our Monitoring system. You need to navigate through the path Admin >> Quick Add Node button. It will open up a window to enter the Node details as in the screenshot.
 
Now, let's see how to add a new node to our Monitoring system. You need to navigate through the path Admin >> Quick Add Node button. It will open up a window to enter the Node details as in the screenshot.
  
Add Node
+
Add Node
  
 
You can enter all the required information like, Requisition, IP Address, Node Label, Community string, Device username, Device password, then click on Provision button. Now, click Ok to continue. Finally, you can navigate through the tab Info >> Nodes and see our added node status. You can click on the label button to view the node status, notification, and events in the following screen:
 
You can enter all the required information like, Requisition, IP Address, Node Label, Community string, Device username, Device password, then click on Provision button. Now, click Ok to continue. Finally, you can navigate through the tab Info >> Nodes and see our added node status. You can click on the label button to view the node status, notification, and events in the following screen:

Revision as of 11:15, 14 May 2020

Sumber: https://linoxide.com/monitoring-2/install-configure-opennms-ubuntu/

OpenNMS adalah sistem manajemen jaringan yang sangat terintegrasi, open soyrce, dan enterprise-grade yang dapat digunakan untuk memantau dan mengelola banyak perangkat dari satu instance. Ini membuat kita mendapatkan informasi terbaru tentang apa yang terjadi dengan jaringan dengan secara berkala memeriksa semua layanan yang tersedia, mengisolasi masalah, mengumpulkan informasi kinerja, dan melakukan tindakan yang dapat membantu menyelesaikan outage.

Saat ini, ada dua distribusi OpenNMS yang tersedia yaitu Horizon dan Meridian. Meridian dimaksudkan untuk perusahaan dan bisnis yang mencari stabilitas dan dukungan jangka panjang. Di sisi lain, Horizon dirancang untuk memantau dan mengelola teknologi baru dan lingkungan TI. Kedua distribusi ini adalah perangkat lunak open source.

Fitur utama OpenNMS

  • Automatic acknowledgment of self-clearing problems
  • Provisioning
  • Supports all Popular OS distributions like Windows, Linux/Unix, Mac and Solaris
  • Service Monitoring
  • Event Management
  • Performance Measurement
  • Charting support

Pre-requisit

  • Ubuntu 20.04 dengan user root privilege.
  • Hostane dan IP statik
  • Java: 8 or above
  • PostgreSQL: 9.3+

Step 1: Update System

Lakukan

apt update
apt-get upgrade -y

Step 2: Download and Install OpenNMS

Kita download bootstrap script untuk instlasi OpenNMS di Ubuntu. Script akan menjalankan langkah instalasi software berikut,

  • Oracle Java 8 JDK Installation
  • PostgreSQL Server installation and Setup
  • Build OpenNMS Repositories
  • Installing OpenNMS with core services and Web application
  • Initialize and bootstrapping the database
  • Start OpenNMS

Download & extrak OpenNMS installer dari Github. Jalankan script bootstrap-debian.sh.

# wget https://github.com/opennms-forge/opennms-install/archive/master.zip
# unzip master.zip
Archive: master.zip
33e5138d33912a5ce9faf260a411cc7a20e44ead
creating: opennms-install-master/
extracting: opennms-install-master/.gitignore
inflating: opennms-install-master/LICENSE
inflating: opennms-install-master/README.adoc
inflating: opennms-install-master/bootstrap-debian-dev.sh
inflating: opennms-install-master/bootstrap-debian.sh
inflating: opennms-install-master/bootstrap-yum.sh
# cd opennms-install-master/
# bash bootstrap-debian.sh

Kita perlu menjawab pertanyaan2 yes & no.

If you have OpenNMS already installed, don't use this script!

If you get any errors during the install procedure please visit the bootstrap.log where you can find detailed error messages for diagnose and bug reporting.

Bugs or enhancements can be reported here:

- https://github.com/opennms-forge/opennms-install/issues -

If you want to proceed, type YES: yes

Starting setup procedure ...

Install OpenNMS Repository ... OK Install OpenNMS Repository Key ... OK OK Update repository ... OK Install PostgreSQL database ... OK Start PostgreSQL database ... OK

Enter database username: opennms Enter database password:******* Reading package lists... Done Building dependency tree Reading state information... Done

Once we proceed with the installation, it will setup the OpenNMS repository and update the repository packages, then it installs PostgresSQL. After the PostgresSQL installation, it will prompt to enter the OpenNMS database credentials required to proceed. You can enter your OpenNMS DB user/password credentials as required during this setup.

Secondly, it will open up a window to choose the PostgresSQL-postfix gateway configuration for email intimation. You can choose the internet-site and click Ok to proceed further.

Postfix email gateway

Next, we need to enter FQDN hostname of your system and click Ok to proceed as in the screenshot:

mailname setup

After the PostgresSQL setup, it will start with the Java Installation. This will open-up two windows to approve the Licence Agreement to download the Oracle JDK package and proceed with the installation.

java_installer

License Agreement

In the next stage, it will open-up a window to initimate us to run the OpenNMS installer script located at /usr/share/opennms/bin/install manually to configure the OpenNMS-database as in the screenshot. You can click ok to complete the installation.

opennms_installer

Once the component installations are complete. It will start and enable the OpenNMS service automatically and report about the successful installation.

Congratulations

OpenNMS is up and running. You can access the web application with

http://this-systems-ip:8980

Login with username admin and password admin

Please change immediately the password for your admin user! Select in the main navigation "Admin" and go to "Change Password"

Thank you computing with us.

Finally, to complete the installation we need to proceed with configuring OpenNMS database as stated before by manually running the installer script located at /usr/share/opennms/bin/install as below:

# /usr/share/opennms/bin/install -dis
==============================================================================
OpenNMS Installer
==============================================================================

Configures PostgreSQL tables, users, and other miscellaneous settings.

This script will automatically configure and upgrade the database tables, users and all other settings as required.

Step 3: Access OpenNMS

Now you can point your browser to http://Server-IP or Hostname:8980 to access the OpenNMS Web interface.

OpenNMS Web login Console

There you can enter the default admin credentials to log in as below:

User: admin
Password: admin
OpenNMS Web Console
Change Default Password

For security reasons, I'll advise modifying your default password soon after login. You can select the Change password option from the drop-down by clicking the Admin tab.

Choose Change password
Change Password

You can enter the current password and your new password as in the screenshot and click submit to modify your password.

Adding a New Node

Now, let's see how to add a new node to our Monitoring system. You need to navigate through the path Admin >> Quick Add Node button. It will open up a window to enter the Node details as in the screenshot.

Add Node

You can enter all the required information like, Requisition, IP Address, Node Label, Community string, Device username, Device password, then click on Provision button. Now, click Ok to continue. Finally, you can navigate through the tab Info >> Nodes and see our added node status. You can click on the label button to view the node status, notification, and events in the following screen:



Referensi

Pranala Menarik