Install openNMS


Following steps applies to:
Red Hat Enterprise Linux 5
Red Hat Enterprise Linux 6
CentOS 5
CentOS 6
OpenNMS 1.8
OpenNMS 1.9
OpenNMS
1.10.1 (stable)

Install portgresql-server:

#yum install postgresql-server -y

Initiate the database:

#service postgresql initdb

Configure PostgreSQL:

Edit pg_hba.conf file

#vi /var/lib/pgsql/data/pg_hba.conf

Replace “ident” to “trust” for localhost (127.0.0.1/32 ).

IPv4 local connections:

host alll all 127.0.0.1/32 trust

Add automaic startup of PostgreSQL in your current runlevel:

#chkconfig postgresql on

Start PostgreSQL:

#service postgresql start

Create the OpenNMS database:
Run createdb as the postgres user.

#su – postgres -c “createdb -U postgres -E UNICODE opennms”

Install OpenNMS:

Add openNMS to yum repository:
Get the repository rpm path from http://yum.opennms.org/ and put the latest stable rpm file.

#rpm -Uvh http://yum.opennms.org/repofiles/opennms-repo-stable-rhel6.noarch.rpm

Install openNMS:
Install from opennms repository. The –nogppcheck option is for the jdk package.

#yum install opennms -y –nogpgcheck

Configure java for openNMS:

#/opt/opennms/bin/runjava -s

Run the installer:
Run the installer to set up openNMS.

#/opt/opennms/bin/install -dis

Automatic start and run openNMS:

#chkconfig opennms on

Start the openNMS service:

#service opennms start

Configure the firewall:
Open port 8980/tcp in the firewall.

#iptables -I INPUT -p tcp -m tcp –dport 8980 -j ACCEPT

Save the firewall configuration:

#service iptables save

Log in:
Start web browser and go to http://localhost:8980 within same machine (you can access using IP address or hostname eg; http://192.168.169.130:8980/
from LAN or open your corporate firewall to access from outside) and log in with the credentials admin/admin.

Advertisements

About Robiul

Robiul has 15 years of continuous successful career experience in ICT with extensive background in System Engineering, IT infrastructure design, operations and service delivery, managing IT projects / MIS functions for local and multi-national companies with in-depth knowledge of multiple operating systems as well as construct / manage small to medium size Data Center. Proven ability to design and implement medium to semi-large scale LAN/WAN/WLAN and system infrastructures. Academic qualification: Master of Science in Information Systems. Professional certifications are: MCSE, CCNA, ITIL and FoundStone Security Professional, VCP, NetAPP, CISSP etc.
This entry was posted in Linux, Others and tagged . Bookmark the permalink.