Rabu, 24 Desember 2014

Monitoring Jaringan Dg OpenNMS

NETWORK MONITORING AND MANAGEMEN "OPENNMS"

OpenNMS adalah suatu pemantauan jaringan pada perusahaan dan platform manajemen jaringan yang dikembangkan dalam free software atau model open source. OpenNMS juga menawarkan jasa, dukungan, serta pengembangan dan pelatihan untuk membuat solusi custom yang dibuat untuk menyesuaikan proses bisnis
Adapun fitur-fitur yang terdapat pada openNMS antara lain :
a. Service polling
Menentukan ketersediaan layanan dan latensi, termasuk pengukuran didistribusikan ketersediaan dan latensi, dan pelaporan hasil
b. Pengumpulan data
Mengumpulkan, menyimpan dan melaporkan data yang dikumpulkan dari node melalui protokol termasuk SNMP, JMX, HTTP, Windows Management Instrumentation, dan NSClient
c. Thresholding
Mengevaluasi data latency yang disurvei atau data kinerja yang dikumpulkan
d. Event manajemen
Menerima peristiwa, baik internal maupun eksternal, termasuk melalui perangkap SNMP
e. Alarm dan otomatisasi
Mengurangi peristiwa menurut kunci pengurangan dan scripting tindakan otomatis berpusat di sekitar alarm
f. Pemberitahuan
Pemberitahuan tentang kejadian penting mengirimkan melalui e-mail, XMPP, atau cara lain
Saat ini, OpenNMS berfokus pada empat bidang utama :
a. Automated Discovery and configuration
OpenNMS dapat menemukan dan otomatis mulai memonitor jaringan. Sebagai contoh, ketika ingin melakukan suatu pemantauan, katakanlah, sebuah server Windows atau Cisco PIX yang akan dipilih, jika satu baru ditambahkan ke jaringan maka secara otomatis akan dimonitor tanpa input pengguna tambahan.
b. Service Level Monitoring
OpenNMS datang dengan sejumlah pemantau untuk melakukan transaksi sintetis untuk melihat apakah suatu layanan jaringan tersedia. ICMP, HTTP, DNS dan berbagai layanan lainnya dapat diuji, termasuk custom script dan Nagios (tm) plugin melalui NRPE dan NSClient.
c. Performance Data Collection
Data Kinerja dapat dikumpulkan melalui SNMP dan JMX, alert grafiknya dan threshold akan dihasilkan ketika nilai melebihi batas dikonfigurasi.
d. Event and Notification Management
OpenNMS dapat mengelola baik secara internal maupun eksternal peristiwa dihasilkan (seperti perangkap SNMP), dan membuat pemberitahuan tentang peristiwa tertentu yang meliputi pelacakan pengakuan dan esclation.

Install OpenNMS

June 1, 2010
2 Comments
Setelah mengetahui apa itu OpenNMS, sekarang mari kita install si OpenNMS tadi. Kalau penjelasan di bawah belum lengkap silakan tanya-tanya lagi sama mbah Google :p
Jadi langkah-langkahnya:
1. Install JDK (Java Development Kit)
Download dari sini lalu install seperti biasa.


2. Install PostgreSQL
Download dari sini  lalu install.
next terus sampai nanti ditanya password. masukkan password yang nantinya bakal digunakan untuk mengakses postgres lagi.
3. Inisialisasi Database
Membuat database di PostgreSQL_Root\data
- buka command prompt lalu masuk ke tempat tadi kita install, defaultnya
C:\Program Files|PostgreSQL\8.4\bin
- inisialisasi database dengan perintah:
initdb -E UTF-8 -U postgres ..\data
Menambah bahasa PL/PGSQL
-  start PostgreSQL
start -> all programs -> PostgreSQL 8.4 -> klik kanan start server -> run as administrator
kemudian akan keluar:
- run pgAdmin III dari Start
- connect ke database
double click “PostgreSQL Database Server 8.4 (localhost:5432)”
- browse postgres database
Database -> postgres
- File -> options -> display -> klik Languages
- Kembali lagi ke database
refresh, database -> language
- menambah PL/pgsql language
klik kanan language -> add language -> name -> pgsql
- exit pgAdmin
4. Install OpenNMS
Download di sini lalu install seperti biasa.
5. Run OpenNMS
buka command prompt lagi, masuk ke:
C:\Program Files\OpenNMS\bin kemudian
opennms.bat start
buka browser, lalu ketikkan http://localhost:8980/opennms
log in sebagai ‘admin’ dengan password ‘admin’.
selesai!

CARA DUA CONSOLE

Installation

In this tutorial, let us install OpenNMS on Ubuntu 14.04 server. Before installing make sure you’ve done the following prerequisites steps.
Update your system:
sudo apt-get update && sudo apt-get upgrade
Set proper FQDN in /etc/hosts file.
sudo vi /etc/hosts
Set your fully qualified domain name as shown below.
127.0.0.1   localhost localhost.localdomain localhost4 localhost4.localdomain4
::1         localhost localhost.localdomain localhost6 localhost6.localdomain6
192.168.1.150   server.unixmen.local    server
Save and close the file. Reboot your system.

Install PostgreSQL:

To install PostgreSQL refer the following link.
Now, allow user access to the database. By default, PostgreSQL only allows you to connect if you are logged in to the local account name that matches the PostgreSQL user. Since OpenNMS runs as root, it cannot connect as a “postgres” or “opennms” user by default, so we have to change the configuration to allow that.
To do so, you will need to edit your database’s pg_hba.conf file.
Edit file /etc/postgresql/9.4/main/pg_hba.conf:
sudo vi /etc/postgresql/9.4/main/pg_hba.conf
Find the following lines:
local   all         all                               peer
host    all         all         127.0.0.1/32          ident
host    all         all         ::1/128               ident
And, change them to look like the following:
local   all         all                               trust
host    all         all         127.0.0.1/32          trust
host    all         all         ::1/128               trust
Once you have finished making changes, restart the database (as root):
sudo service postgresql restart

Install JDK:

To install JDK, do the following steps
sudo add-apt-repository ppa:webupd8team/java
sudo apt-get update
sudo apt-get install oracle-java7-installer
Important note: While OpenNMS doesn’t support Java 8 yet, It is strongly recommended to use Java 7. The above link contains the installation instructions for Java 8 only. However, you can use the same procedure to install Java 7.

Install OpenNMS Repository:

Create a file called “opennms.list” within the “/etc/apt/sources.list.d” directory:
sudo vi /etc/apt/sources.list.d/opennms.list
Add the OpenNMS APT repository.
deb http://debian.opennms.org stable main
deb-src http://debian.opennms.org stable main
Add OpenNMS key:
wget -O - http://debian.opennms.org/OPENNMS-GPG-KEY | sudo apt-key add -
Now, update the repository lists using command:
sudo apt-get update
Then, install OpenNMS:
sudo apt-get install opennms
After a few minutes, you’ll be asked to run the installer manually.This is normal. Simply click Ok to proceed.
sk@server: ~_001
Also, the installer will tell you that IPLike installation has been failed.
sk@server: ~_002
You can install IPLIKE manually using this command:
sudo /usr/sbin/install_iplike.sh

Post Installation

Disable OpenNMS APT Repository:

You must disable OpenNMS repository if you want to do manual upgrade instead of automatic update. If you prefer automatic update, which is easy, you can skip this step.
To do that, edit file /etc/apt/sources.list.d/opennms.list and comment all lines in it. Or just delete the file.
Update the repository list using command:
sudo apt-get update

Configure Java:

Then, you need to tell OpenNMS which Java you want it to use. If you installed the recommended Sun/Oracle JDK, all you should need to do is point it at /usr/java/latest:
sudo /usr/share/opennms/bin/runjava -s
Sample output:
runjava: Looking for an appropriate JRE...
runjava: Checking for an appropriate JRE in JAVA_HOME...
runjava: skipping... JAVA_HOME not set
runjava: Checking JRE in user's path: "/usr/bin/java"...
runjava: found an appropriate JRE in user's path: "/usr/bin/java"
runjava: value of "/usr/bin/java" stored in configuration file

Create Database for OpenNMS:

sudo /usr/share/opennms/bin/install -dis
Here,
  • -d – to update the database.
  • -i – to insert any default data that belongs in the database.
  • -s – to create or update the stored procedures OpenNMS uses for certain kinds of data access.
Finally, start OpenNMS service:
sudo service opennms start

Log in To OpenNMS Management Interface

Open up your browser, and point it to http://ip-address:8980/opennms. The following screen should appear. Enter the username and password. The default username and password is admin/admin.
OpenNMS Web Console - Mozilla Firefox_001
if you can’t access the web interface, restart your system and check again.
This is how my OpenNMS dashboard looked.
OpenNMS Web Console - Mozilla Firefox_002
it is not safe to leave the admin user password as default. So let us change it to something different and stronger.
To do that, click on the admin user on the top right corner.
Selection_003
Click Change password link, and enter the new password twice. Finally click OK to save changes.
Change Password | OpenNMS Web Console - Mozilla Firefox_004
That’s it. OpenNMS is up and running now. In our next tutorial, let us discuss how to monitor devices/nodes/services etc. Until then, stay happy.
Want to Install OpenNMS on CentOS? then check the following link.



Tidak ada komentar:

Posting Komentar