OpenNMS: UBUNTU 20.04 instalasi OpenNMS

From OnnoCenterWiki
Jump to: navigation, search

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

OpenNMS adalah sistem manajemen jaringan yang sangat terintegrasi, open source, 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