OpenNMS, the latest network management tool in Linux

Source: Internet
Author: User
Tags opennms

OpenNMS, the latest network management tool in Linux
GuideOpenNMS is a carrier-level, highly integrated, open source platform for building network monitoring solutions. OpenNMS has two releases: Meridian and Horizon. It is advisable to use Meridian to provide stable and long-term support for enterprises. Horizon is a fast and innovative release of new monitoring technologies and new IT ecosystem. These two distributions are completely open-source.

1. OpenNMS installation preparation

Environment: CentOS 7.2

Update Source:

yum -y install yum-plugin-priorities epel-release centos-release-scl-rh centos-release-sclyum update -y

Http://www.opennms.org/en

Official wiki: http://wiki.opennms.org/wiki/Installation:Yum

Uninstall opennms Source: https://yum.opennms.org/repofiles/opennms-repo-RELEASE-DISTRIBUTION.noarch.rpm

root@linuxprobe[11:09:27]:/usr/local/src$wget http://yum.opennms.org/repofiles/opennms-repo-stable-rhel7.noarch.rpmroot@linuxprobe[11:09:27]:/usr/local/src$rpm -ivh opennms-repo-stable-rhel7.noarch.rpmroot@linuxprobe[12:51:26]:~$rpm --import http://yum.opennms.org/repofiles/OPENNMS-GPG-KEY
2. Install the database for OpenNMS

# Installing PostgreSQL

yum -y install postgresql-server

# Initialize PostgreSQL

postgresql-setup initdb

# Modify postgrasql. conf

root@linuxprobe[08:56:17]:~$vim /var/lib/pgsql/data/postgresql.conf

# Line 59: set to allow all addresses to access psotgresql

listen_addresses = '*'

# Line 395: Set the log format

log_line_prefix = '%t %u %d '

# Psotgresql start and set automatic start upon startup

root@linuxprobe[08:56:37]:~$systemctl start postgresql && systemctl enable postgresql
3. PostgreSQL settings

# Allow users to access the database

root@linuxprobe[09:15:44]:~$sed -i 's/all 127\.0\.0\.1\/32 ident/all 127.0.0.1\/32 trust/g' /var/lib/pgsql/data/pg_hba.confroot@linuxprobe[09:28:45]:~$sed -i 's/all ::1\/128 ident/all ::1\/128 trust/g' /var/lib/pgsql/data/pg_hba.conf

# Restart PostgreSQL

root@linuxprobe[09:29:06]:~$systemctl restart postgresql
4. Install JDK

# Install java 8 for OpenNMS 16

# Jdk: http://www.oracle.com/technetwork/java/javase/downloads

# Upload to the server/usr/local/src

root@linuxprobe[10:23:45]:/usr/local/src$rpm -ivh jdk-8u101-linux-x64.rpm

5. Install OpenNMS
root@linuxprobe[12:51:26]:~$yum install opennms –y

# Configure java

root@linuxprobe[14:02:33]:~$/opt/opennms/bin/runjava -S /usr/java/latest/bin/javarunjava: checking specified JRE: "/usr/java/latest/bin/java"...runjava: specified JRE is good.runjava: value of "/usr/java/latest/bin/java" stored in configuration file
6. Create or update an opennms Database
root@linuxprobe[14:06:07]:~$/opt/opennms/bin/install -dis

#-D. update the database

#-I import data

#-S creates a stored procedure for OpenNMS

7. IPLIKE Configuration

# OpenNMS uses PostgreSQL's "iplike" stored procedure to provide an API to easily perform complex IP address queries. By default, a version of iplike is installed, which is compatible with all versions of OpenNMS. We recommend that you use yum for performance considerations.

yum -y install iplike

# View iplike help

/usr/sbin/install_iplike.sh –h
8. Firewall settings

# Enable port

iptables -A INPUT -m state --state NEW -m tcp -p tcp --dport 8980 -j ACCEPT

# Disable Firewall

/sbin/service iptables stopsystemctl disable iptables

# Restart iptables

/sbin/service iptables restart
9. Start OpenNMS and access it in the browser
systemctl opennms restart

Http: // YOUR-OPENNMS-IP: 8980/opennms/

Address: http://www.linuxprobe.com/opennms-manager-network-linux.html


Related Article

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.