Installing OpenNMS on CentOS 7 – Step by Step Guide
Installing OpenNMS on CentOS 7
OpenNMS is a carrier-grade, highly integrated, open source platform designed for network monitoring solutions. There are two distributions of OpenNMS: Meridian and Horizon.
Meridian is advisable for enterprises and businesses looking for stability and long term support.
Horizon is the place where innovation happens quickly and is ideal for monitoring new technologies and IT ecosystems. Both distributions are completely open source.
Traditionally, installing OpenNMS is a relatively complicated job because it involves multiple technologies, including Oracle Java 8 JDK, PostgreSQL, OpenNMS, systemd, etc. Thankfully, OpenNMS provides an official quickstart install script for CentOS 7, which can greatly simplify the procedures.
Warning: This script is for a fresh installation of OpenNMS only. If you have installed an earlier version of OpenNMS on the system, running this script might cause unintended consequences.
cd curl -L https://github.com/opennms-forge/opennms-install/archive/1.1.tar.gz | tar xz cd opennms-install-1.1 bash bootstrap-yum.sh
The script will automatically install all required components for running OpenNMS. During the process, you only need to confirm the installation and provide database credentials as follows.
- If you want to proceed, type YES:
- Enter database username:
- Enter database password:
Remember to replace the username and password above with your own.
Creating Database ================== PostgreSQL initialize ... OK PostgreSQL set auth from ident to md5 ... OK Start PostgreSQL database ... OK PostgreSQL systemd enable ... OK Enter database username: whc_opennms Enter database password: Generate OpenNMS data source config ... OK Initialize OpenNMS ... Congratulations --------------- OpenNMS is up and running. You can access the web application with http://this-systems-ip:8980 Login with username admin and password admin Please change immediately the password for your admin user! Select in the main navigation "Admin" and go to "Change Password"
If all went well, you will see the congratulations message.
Before you can access OpenNMS using a web browser, you need to modify firewall rules to allow inbound traffic on port 8980.
firewall-cmd --zone=public --add-port=8980/tcp --permanent systemctl reload firewalld.service
Finally, point your favorite web browser to
http://ip_address:8980, and log in with the default username
admin and the default password
After Adding Servers
If you like this post, please share your comments to improve better.
For installing and configuring, please click here