OpenNMS network management system installation and configuration

Recently the company I made a house for the project, is the network monitoring, would like to learn from Open Source resources, Internet search a bit, can be basically divided into two categories:
1) the main flow and the host of the online monitoring software, such as the initial MRTG, PRGT, CACTI, Hobbit,
2) to the server process to monitor critical services and software, such as Big Brother, Nagios, OpenNMS
Comprehensive consideration, decided to use OpenNMS, consider from the company's point of view it is mainly used java development, and companies can integrate the software, from the monitoring application, OpenNMS interface, though not very beautiful, but its monitoring services. have outstanding performance, features in the software are also a number of very good performance. Selected after the first course is the installation configuration and re-analysis and design, refer to the network of some experience, now its done installing and configuring the relevant summary:

First, install the Sun J2SE Java SDK
Has been installed before, so do not install on the provision of the relevant environment variables:
JAVA_HOME = / usr/jdk/jdk1.5.0_01
export PATH = $ PATH: $ JAVA_HOME / bin

Second, install postgresql
Download postgressql and then run the command:
. / Configure - prefix = / usr / local / pgsql
make install
After successful installation, start configuring postgresql:
PostgreSQL can not be run as root, you must create the corresponding user and group.

# Useradd postgre (automatically created postgre group)

# Vi ~ postgre / .bash_profile
PGLIB = / usr / local / pgsql / lib
PGDATA = $ HOME / data
PATH = $ PATH: / usr / local / pgsql / bin
MANPATH = $ MANPATH: / usr / local / pgsql / man

Modify the postgresql.conf and pg_hba.conf setting parameters
vi / export / home / postgres / data / postgresql.conf
Modify the following parameters
tcpip_socket = true
max_connections = 256
shared_buffers = 1024
vi / var / lib / pgsql / data / pg_hba.conf
Add the following two lines
local all all trust
host all all trust
If your original system that can be added to support IPv6 (do not support the proposal not to increase)
host all all:: 1 ffff: ffff: ffff: ffff: ffff: ffff: ffff: ffff trust

As the postgres user login,
# Su - postgre
Establish a database directory:
$ Mkdir data

Start the database engine:
$ Initdb
Finally appears as follows:
/ Usr / local / pgsql / bin / postgres-D / export / home / postgres / data

/ Usr / local / pgsql / bin / pg_ctl-D / export / home / postgres / data start
Establishment of a database
$ Createdb mydb
$ Psql mydb
Create table
CREATE TABLE mytable (
id varchar (20),
name varchar (30));
Insert data
INSERT INTO mytable values ​​('Author', 'MartriWang');

Third, install Tomcat4
At this stage, OpenNMS supports only tomcat4 (safety certification issues), can not support tomcat5, it can only be used tomcat4
To download the
vim / etc/tomcat4/tomcat4.conf
Modify the following two lines
JAVA_HOME = "/ usr/java/j2sdk1.4.2_08 /"
TOMCAT_USER = "root"

Fourth, install rrdtool
Download the source code, and then run the command:
. / Configure - prefix = / usr / local / rrdtool
make install

Fifth, install OpenNMS
1 use svn to download OpenNMS:
svn co opennms

2 Configure OpenNMS environment variable
export OPENNMS_HOME = / opt / Opennms

3. Compile OpenNMS:
sh compile
sh install

4 Configuring OpenNMS
$ OPENNMS_HOME / bin / runjava-s
/ Usr / local / opennms / bin / install-disU
$ OPENNMS_HOME / bin / install-y-w $ CATALINA_HOME / webapps-W $ CATALINA_HOME / server / lib

Modify $ OPENNMS_HOME / etc / discovery-configuration.xml
<Discovery-configuration threads = "1" packets-per-second = "1"
initial-sleep-time = "300000" restart-sleep-time = "86400000"
retries = "3" timeout = "800">

<include-range retries="2" timeout="3000">
<begin> </ begin>
<end> </ end>
</ Include-range>

<include-url> file: / opt / OpenNMS / etc / include </ include-url>

</ Discovery-configuration>

You can detect more than one segment by adding the following as long as the parameters in the configuration file can be.
<include-range retries="2" timeout="3000">
<begin> 192.168.X.1 </ begin>
<end> 192.168.X.254 </ end>
</ Include-range>

Start the implementation: / usr / local / opennms / bin / opennms start
Open a browser, address
The default user is: admin Password: admin

Thus OpenNMS installation is successful, can eventually be developed using elipse, via FTP synchronization. Later want to automatically configure an ANT build file management. As for the transformation of design, to explore future development will be taking a step forward.

分类:Development 时间:2008-06-15 人气:202
blog comments powered by Disqus


iOS 开发

Android 开发

Python 开发



PHP 开发

Ruby 开发






Javascript 开发

.NET 开发



Copyright (C), All Rights Reserved. 版权所有 黔ICP备15002463号-1

processed in 0.546 (s). 12 q(s)