CentOS 5.X installation network and system monitoring management platform: OPENNMS Introduction

Source: Internet
Author: User
Tags command line postgresql psql centos opennms

About Opennms:opennms is an enterprise-class distributed network and system monitoring and management platform based on Java/xml. OpenNMS is a great tool for managing your network, showing the status and configuration of terminals and servers in your network, providing you with effective information to manage your network conveniently. OPENNMS is the world's first enterprise-class network management system developed with open source code mode. As with other complex, powerful systems, it takes a little effort to install and set up.

OPENNMS uses the PostgreSQL database and requires the ability to connect to PostgreSQL through the TCP/IP protocol as a postgres user.

System support: currently OPENNMS supports Linux (many different releases), Solaris and Mac OS x,windows.

Hardware requirements:

Processor

Single processor, 1 GHz Pentium III level above. OPENNMS can use multiple processors (in the system).

Memory

Minimum 256 MB of RAM, but it is strongly recommended. OpenNMS java Virtual Machine can use a large amount of memory (up to 2GB, if the 64-bit processor can be more). When I test in a virtual machine, it takes about more than 10 minutes to start the service with 300M of memory! In the actual environment of memory more than 1G!

Now the hardware configuration is relatively high, I am here to mention some may be in the virtual machine environment when the memory allocation is too few problems may occur!

Online Demo:

http://demo.opennms.org/opennms/

Username:demo

Password:demo

Below to explain the specific installation process, want to learn more about OPENNMS can refer to the Web side wiki

Http://www.opennms.org/wiki/Main_Page

PS: System iptables and SELinux are all closed, reduce unnecessary trouble!

First of all, note: The system/etc/hosts host name prefix must be the same as the current system hostname prefix, otherwise start OPENNMS will start error:

Error:exception thrown by the agent:java.net.MalformedURLException:Local host name Unknown:java.net.UnknownHostExcept Ion:opennms:opennms

.....

I. Installing the OPENNMS software source

[Root@opennms ~]# RPM-UVH http://yum.opennms.org/repofiles/opennms-repo-stable-rhel5.noarch.rpm

Two. Install PostgreSQL

1. Installing the Database

Yum-y Install PostgreSQL Postgresql-server

It will be installed in the/var/lib/pgsql directory!

After the installation is complete, you can use Psql--version to view the data database version.

[Root@opennms ~]# Psql--version

Psql (PostgreSQL) 8.1.18

Includes support for command line editing

More usage:

[Root@opennms ~]# Psql--help

2. Start Postsql

[Root@opennms ~]# service PostgreSQL start

To enable the database to boot:

[Root@opennms ~]# chkconfig PostgreSQL on

3. Configuration database

[Root@opennms ~]# vi/var/lib/pgsql/data/pg_hba.conf

Change the last line of the configuration file to the following form:

Local All

Host All 127.0.0.1/32 Trust

Host All:: 1/128

I've got a one-time order here:

[Root@opennms ~]# sed-i ' s/ident sameuser/trust/g '/var/lib/pgsql/data/pg_hba.conf

Modifying a database configuration file

[Root@opennms ~]# vi/var/lib/pgsql/data/postgresql.conf

Find "max_connections" and change the value 100 to 60.

Max_connections = 60

Find "listen_addresses" to get rid of annotations

listen_addresses = ' localhost '

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.