Network management tools under Linux-opennms

Source: Internet
Author: User
Tags opennms

Guide OpenNMS is an operator-level, highly integrated, open-source platform for building network monitoring solutions. OpenNMS has two distributions: Meridian and Horizon. The use of Meridian is desirable, providing stable and long-term support to the enterprise. Horizon is a rapidly emerging innovation that is ideal for monitoring new technologies and releases of new IT ecosystems. 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

Official website: 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

[Email protected] [11:09:27]:/usr/local/src$wget Http://yum.opennms.org/repofiles/opennms-repo-stable-rhel7.noarch.rpm[email PROTECTED][11:09:27]:/USR/LOCAL/SRC$RPM-IVH Opennms-repo-stable-rhel7.noarch.rpm[email protected][12:51:26]:~$ RPM--import Http://yum.opennms.org/repofiles/OPENNMS-GPG-KEY
2. Install database for OPENNMS

#安装 PostgreSQL

Yum-y Install Postgresql-server

#初始化PostgreSQL

Postgresql-setup Initdb

#修改postgrasql. conf

[Email protected] [08:56:17]:~ $vim/var/lib/pgsql/data/postgresql.conf

# line 59: Set allow all addresses to access Psotgresql

listen_addresses = ' * '

# line 395: Set the log format

Log_line_prefix = '%t%u%d '

#psotgresql启动并设置开机自启

[Email protected] [08:56:37]:~ $systemctl start PostgreSQL && systemctl enable PostgreSQL
3. PostgreSQL Settings

#允许用户访问数据库

[Email protected] [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.conf[email protected][09:28:45]:~ $sed-i ' S/all:: 1\/128 ident/all:: 1\/128 trust/g '/var/lib/pgsql/data/pg_hba.conf

#重启PostgreSQL

[Email protected] [09:29:06]:~ $systemctl Restart PostgreSQL
4. Installing the JDK

#OpenNMS 16 need to install Java 8

#jdk: Http://www.oracle.com/technetwork/java/javase/downloads

Under #上传到服务器/usr/local/src

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

5, installation OpenNMS
[Email protected] [12:51:26]:~ $yum Install Opennms–y

#配置java

[Email protected] [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 the OPENNMS database
[Email protected] [14:06:07]:~$/opt/opennms/bin/install-dis

#-d Updating the database

#-i Importing Data

#-s creating a stored procedure for OPENNMS

7. Iplike Configuration

#OpenNMS使用PostgreSQL被称为 the "iplike" stored procedure to provide an API to easily perform complex IP address queries. By default, installing a version of Iplike, compatible with all versions of OPENNMS, is recommended for performance reasons using Yum installation.

Yum-y Install Iplike

#查看iplike帮助

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

#开启端口

Iptables-a input-m State--state new-m tcp-p TCP--dport 8980-j ACCEPT

#禁用防火墙

/sbin/service iptables stopsystemctl Disable iptables

#重启iptables

/sbin/service iptables Restart
9. Start OpenNMS and access in the browser
Systemctl OpenNMS Restart

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

Network management tools under Linux-opennms

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.