OpenNMS network management system installation and configuration

sponsored links
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.
  • StumbleUpon
  • Digg
  • TwitThis
  • Mixx
  • Technorati
  • Facebook
  • NewsVine
  • Reddit
  • Google
  • LinkedIn
  • YahooMyWeb

Related Posts of OpenNMS network management system installation and configuration


    Jdk1.6 + Tomcat6 + Apache2 + MySql5 installed (Windows version) Keywords: Jdk1.6 Tomcat6 Apache2 Mysql5 Jdk1.6 + Tomcat6 + Apache2 + MySql5 installed (Windows version) Software download: 1, j2se jdk1.6

  • Ask! Hibernate project to do when to do what the strategy is necessary to optimize the system performance, that is, how to improve the retrieval performance strategy?

    Ask! Hibernate project to do when to do what the strategy is necessary to optimize the system performance, that is, how to improve the retrieval performance strategy? I had not thought about it, only know about the cache settings, please show Big Bro ...

  • eclipse Hibernate proposals

    Error: The 'Hibernate proposals' proposal computer from the' org.hibernate.eclipse.jdt.ui 'plug-in dod not complete normally. Unable to instantiate the extension. To Avoid this message, disable the 'org.hibernate.eclipse.jdt.ui ...

  • jBPM Development Getting Started Guide

    Although the workflow is still immature stage of development, not even a recognized standard. But its application has already been launched in the Express, indicating the market's demand for job-flow framework are urgent and enormous. Backgrounds of o

  • hibernate (jpa) composite primary key annotation statement Ways

    In the design of the database tables are designed with a composite primary key of the table, that table's record by more than one field joint identification, such as: Table CREATE TABLE TB_HOUR_DATA ( STAT_DATE DATE NOT NULL, PATH_ID NUMBER(20) NOT NULL,

  • log4j easy application in java

    JAVA development, frequently used the log output, in a so-called most of the software company will have its own set of configuration style, re-read the configuration file to initialize property of the log, it will be good, but sometimes may not need to fu

  • JDBC driver types

    1, JDBC is a included in the J2SE and J2EE platform API, you have access to a variety of data sources, in particular, are so typical as Oracle relational database management system. Sun Microsystems Inc. in January 1997 the introduction of JDBC techn ...

  • Oracle instant clent for ruby / rails on cygwin

    Environment: XP: oracle full client, ruby, rails, gem cygwin: ruby rails, gem (the version with the XP version) Needs: for cygwin is installed under the rails platform support oci Steps: <1> download oracle instant client ( Instant Client Pa

  • Process migration from tomcat to websphere changes

    Process migration from tomcat to websphere changes Because customers use the web application server software used by different what tomcat5, tomcat6, websphere5.1, websphere6.1, weblogic8, and so on, and the software used inconsistent standards, ibm's

blog comments powered by Disqus
Recent Entries
Tag Cloud
Random Entries