In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/01 Report--
This article will explain in detail how to install and use OpenNMS under Linux. The editor thinks it is very practical, so I share it with you for reference. I hope you can get something after reading this article.
OpenNMS is an enterprise distributed network and system monitoring and management platform based on Java/XML. OpenNMS is an excellent tool for managing your network. It can display the status and configuration of terminals and servers in your network, and provide effective information for you to manage the network conveniently.
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 the 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-KEY2, install the database for OpenNMS
# install 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 log format
Log_line_prefix ='% t% u% d'
# psotgresql Boot and set Boot
Root@linuxprobe [08:56:37]: ~ $systemctl start postgresql & & systemctl enable postgresql3, PostgreSQL setting
# allow users to access the database
Root@linuxprobe [09:15:44]: ~ $sed-I 's/all 127\ .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 postgresql4, install JDK
# OpenNMS 16 requires java 8 to be installed
# jdk download address: http://www.oracle.com/technetwork/java/javase/downloads
# upload to server / usr/local/src
Root@linuxprobe [10:23:45]: network management tools under / usr/local/src$rpm-ivh jdk-8u101-linux-x64.rpmLinux-Network management tools under OpenNMSLinux-OpenNMS5, install OpenNMSroot@ Linux probe [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 file6, create or update opennms database root@ linuxprobe [14: 06:07]: ~ $/ opt/opennms/bin/install-probe
#-d update the database
#-I Import data
#-s create stored procedures for OpenNMS
7. IPLIKE configuration
# OpenNMS uses a stored procedure called "iplike" in PostgreSQL to provide an API that easily performs complex IP address lookups. By default, one version of iplike is installed, which is compatible with all versions of OpenNMS. For performance reasons, it is recommended to use yum installation.
Yum-y install iplike
# View iplike help
/ usr/sbin/install_iplike.sh-h8, firewall settings
# Open the port
Iptables-An 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 restart9, launch OpenNMS and access systemctl opennms restart in the browser
Http://YOUR-OPENNMS-IP:8980/opennms/
This is the end of the article on "how to install and use OpenNMS under Linux". I hope the above content can be of some help to you, so that you can learn more knowledge. if you think the article is good, please share it for more people to see.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.