Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Operation method of Centos installation and configuration of OpenNMS

2025-04-04 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/01 Report--

Centos installation and configuration of OpenNMS operation methods, I believe that many inexperienced people do not know what to do, so this paper summarizes the causes of the problem and solutions, through this article I hope you can solve this problem.

OpenNMS is the first enterprise-level network management system developed with open source mode in the world. It can be used to automatically discover network nodes and monitor network services, such as HTTP,DNS,SSH. When the system service stops, OpenNMS will send notifications according to the rules established by the manager, informing operators of network obstacles, event aggregation, automatic execution of corresponding actions, and service-level performance monitoring. It can support SNMP network management protocol, ensure the expansibility of management, and provide very flexible customization functions to facilitate the expansion of management scope, traffic and contact system hardware usage need to configure snmp.

Like other complex and powerful systems, it takes a little effort to install and set up. Here is a detailed graphic and text tutorial on Centos installation and configuration of OpenNMS!

Install OpenNMS

Install the RPM of the repository

RMP:RedHat Package Manager (RedHat package management tool)

After running the putty.exe tool, login name and password, run the command as root: the rpm-Uvh http://yum.opennms.org/repofiles/opennms-repo-stable-rhel6.noarch.rpm system will automatically download the required files.

To prepare the OpenNMS of the database

Install the PostgreSQL database

Run the command as root:

Yum install postgresql postgresql-server command, the system automatically downloads postgreSQL installation.

Start PostgreSQL first

Run the command as root:

/ sbin/service postgresql start

If you see an error, you must initialize PostgreSQL and run the following command:

/ sbin/service postgresql initdb

/ sbin/service postgresql start

To ensure that PostgreSQL will start after reboot, use the "chkconfig's" command to start at startup, and run the following command:

/ sbin/chkconfig postgresql on

Configure to allow users access to the database

Find / var/lib/pgsql/data/pg_hba.conf content as follows:

Ident- "trust

Modify to

That's it. After success, you need to restart the database and run as root:

/ sbin/service postgresql restart

Install snmp

You can refer to the following to install

Http://blog.csdn.net/awenluck/article/details/23790457

Install OpenNMS

It is strongly recommended to use opennms-plugin* to install, so that many related files will be installed together.

# yum install opennms opennms-plugin*

The appearance of Complete indicates that the installation was successful.

Note: opennms-plugin* also installs the associated JDK, so you can view the JDK version directly.

View Java JDK

# which java

Remember the JDK path, which will be used later.

View Java JDK version

# java-version

Set Java path

/ opt/opennms/bin/runjava-S / usr/bin/java

● installs the Table used by OpenNMS in the PostgreSQL database

L-d-to update the database

L-I-to insert any default data that belongs in the database

L-s-to create or update the stored procedures OpenNMS uses for certain kinds of data access

# / opt/opennms/bin/install-dis

Appear: "Installer completed successfully!" When it means success!

● sets OpenNMS to boot

# chkconfig opennms on

Set up a firewall

/ etc/sysconfig/ iptables

Add after red

Or just turn off the firewall.

# service iptables status to view the current firewall status

Execute if it is on

# service iptables stop

# service iptables restart

Fix the incompatibility in the Chinese environment

/ opt/opennms/bin/opennms

ADDITIONAL_MANAGER_OPTIONS= "- Duser.language=en-Duser.country=US-Dfile.encoding=UTF-8"

Restart the service

# service opennms restart

Visit the page

Http:// ip address: 8980/opennms/

Initial page

Landing page

User:admin

Password:admin

Main page

Congratulations, the installation is successful!

Opennms introduction:

Currently: OpenNMS focuses on the following three areas:

Service polling-check the availability of application services and generate availability reports.

Data collection-collect, save and report network information data, and set and trigger thresholds.

Event and prompt management-accepts events inside and outside the event system and provides source events to a powerful fault alarm and fault escalation system.

The main functions are as follows:

(1) search node search

You can use PING packets to detect nodes. Or detect for certain services. For example: common HTTP, MAIL, DNS and so on.

(2) list of Node List nodes

List the status of all current monitoring hosts.

(3) Outages loss

When the service or node has been registered; if the node shuts down, down, or the service has stopped, OPENNMS will register it as wear and tear. At this point, managers can query from this interface which services or hosts are now hanging, or have been hanging, this feature can help manage maintenance.

(4) configuration of Path outages path failure

When the network path between the OpenNMS system and the monitored node fails, or the network link down, then OpenNMS needs to suppress the alarm sent by this node.

(5) Event event query

When a host or service is detected, it is registered as an event. In this way, managers can easily query all the services and hosts provided.

(6) Alarms alarm

Record alarm events and describe event-related information.

(7) Notification notification

When a special event occurs, OPENNMS can notify the manager through EMAIL. However, the premise is that the notification event must be defined first.

(8) Asset asset management

OPENNMS asset management can define the managed equipment in terms of asset data, which helps managers to manage the expanding network equipment conveniently.

(9) Reports report

For SNMP equipment, its performance, availability and response time have been reported, so as to facilitate long-term observation.

(10) Charts Chart

Charts is good at showing the data of Alarts, outages of the last seven days, and Node Inventory more intuitively and vividly.

(11) Surveillance monitoring equipment

Opennms can provide network monitoring connection devices (such as routers, switches, servers, etc.)

(12) distributed status distributed status

Description of relevant information.

(13) Help help manual

When you encounter relevant settings and problems, you can quickly find a way to solve them through the online user manual to save time.

Summary:

What OpenNMS can do (what is useful to us):

Fault detection, OpenNMS can be used to monitor any service (port), which can be customized.

Fault management, OpenNMS support, email alarm, and support for custom escalation. It's relatively simple, but it still works.

Performance management, use SNMP to manage any SNMP-supported performance data, disk, memory, router port traffic, packet loss, etc.

Asset management, the equipment information in OpenNMS can be easily imported and exported by Excel.

Reporting function, can be aimed at SNMP devices, its performance, availability, response time has been reported.

Opennms installation environment

About OpenNMS

OpenNMS is jointly created by many individuals and organizations under the banner of the OpenNMS software project. From the beginning to 2002, the program code was developed by Oculan Corporation and released in GPL, and later the management of the case was handed over to Tarus Balog.

At present, OpenNMS is sponsored by The OpenNMS Group, which also has the trademark of OpenNMS.

OpenNMS is the first enterprise-level network management system developed with open source mode in the world. Like other complex and powerful systems, it takes a little effort to install and set up.

System support

Please refer to the latest release summary to confirm that your operating system is supported. The latest operating systems supported by OpenNMS are as follows:

Linux

Red Hat Enterprise Linux / CentOS (3, 4, and 5, x86 and x86 / 64)

Debian Etch and Lenny (x86 and x86x64)

Fedora Core (2 through 8, x86 and x86x64)

Mandriva 2007 and 2008

SuSE (9 and 10)

Solaris 8, 9, and 10 (SPARC)

Solaris 8, 9, and 10 (x86)

Mac OS X (10.4 percent, PowerPC and x86)

Windows 2000, XP, 2003 (Longhorn and Vista is untested)

Go to Opennms's official http://www.opennms.org/index.php/FAQ-About to see the latest supported operating systems.

Minimum demand

Although it is not possible to accurately estimate the system requirements of OpenNMS for a specific environment, the following is a list of the minimum requirements installed in a network of 200 devices. Of course, as long as there is better hardware, OpenNMS can monitor a hundred times as many devices.

Processor

Single processor, 1 GHz Pentium III or above. OpenNMS can use multiprocessors (in a system).

Memory

A minimum of 256 MB for RAM, but 512 MB is highly recommended. OpenNMS's Java Virtual Machine can use a lot of memory (up to 2GB, and more if it's a 64-bit processor). If the budget at hand has a choice between "more memory" and "faster processor", choose "more memory".

Hard disk

The OpenNMS program itself requires about 25 MB. In addition, the query result (data variable collected requires) of each data variable is 283 KB by default. Assuming that each controlled interface requires 2 MB, then 200 interfaces is about 400 MB (conservative estimate). In the database section, depending on the number of events stored, you can assume that you need 100 MB to 200 MB. Finally, the individual records of OpenNMS can become very large, especially in debug mode. (please edit the file log4j.properties under the OpenNMS settings directory (usually / opt/OpenNMS/etc or / etc/opennms) to change these settings. (summing up the above) 800 MB to 1 GB should be sufficient for a minimum system.

Note: do not let OpenNMS use RAID-5 unless it is a small system. If you want to use RAID, we recommend using RAID-1 or RAID-1+0.

After reading the above, have you mastered how to install and configure OpenNMS in Centos? If you want to learn more skills or want to know more about it, you are welcome to follow the industry information channel, thank you for reading!

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.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report