<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>How to install OpenNMS on Centos 8 Archives - Linux Windows and android Tutorials</title>
	<atom:link href="https://www.osradar.com/tag/how-to-install-opennms-on-centos-8/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.osradar.com</link>
	<description>tutorials and news and Seurity</description>
	<lastBuildDate>Wed, 13 Nov 2019 08:30:16 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=5.8.12</generator>
	<item>
		<title>How to Install OpenNMS on Centos / RHEL 8.</title>
		<link>https://www.osradar.com/how-to-install-opennms-on-centos-rhel-8/</link>
					<comments>https://www.osradar.com/how-to-install-opennms-on-centos-rhel-8/#comments</comments>
		
		<dc:creator><![CDATA[sabi]]></dc:creator>
		<pubDate>Tue, 12 Nov 2019 11:10:40 +0000</pubDate>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[Servers]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[Tools]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[Centos 8]]></category>
		<category><![CDATA[How to install OpenNMS on Centos 8]]></category>
		<category><![CDATA[OpenNMS Network Monitoring Tool]]></category>
		<category><![CDATA[RHEL 8]]></category>
		<guid isPermaLink="false">https://www.osradar.com/?p=15555</guid>

					<description><![CDATA[<p>What is OpenNMS? OpenNMS is a free &#38; open source highly configurable, scaleable, extensible and cross-platform network Monitoring and network management platform. It is built using Java. Features: Device &#38; Application Monitoring Event-driven Architecture. It supports the collection of performance from Industry standard agents via SNMP,JMX,WMI,NPRE,NSCLient++ &#38; XMP simply through configuration. Provides easy integration to [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/how-to-install-opennms-on-centos-rhel-8/">How to Install OpenNMS on Centos / RHEL 8.</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<h3><strong>What is OpenNMS?</strong></h3>



<p>OpenNMS is a free &amp; open source highly configurable, scaleable, extensible and cross-platform network Monitoring and network management platform. It is built using Java.</p>



<h4><strong> Features:</strong></h4>



<ul><li>Device &amp; Application Monitoring</li><li> Event-driven Architecture.</li><li> It supports the collection of performance from Industry standard agents via SNMP,JMX,WMI,NPRE,NSCLient++ &amp; XMP simply through configuration.</li><li> Provides easy integration to extend service polling, performance &amp; data collection framework.</li><li> Different modes like maual, detected or ReST API driven interfaces.</li></ul>



<h4><strong>OpenNMS Requirements:</strong></h4>



<p>Operating System: Red Hat Enterprise Linux 8 or Centos 8.<br>Minimal Hardware: 2 CPU, 2 GB RAM, 20 GB Disk.</p>



<p>In this tutorial, we will learn how to install &amp; setup the latest OpenNMS Horizon network service monitoring software in Centos / RHEL 8.</p>



<h3><strong> Step 1: Install Java &amp; Setting Java_Home</strong></h3>



<pre class="wp-block-verse">yum install java-11-openjdk</pre>



<p>Check installed version</p>



<p>java -version</p>



<div class="wp-block-image"><figure class="aligncenter"><img loading="lazy" width="733" height="152" src="//1723336065.rsc.cdn77.org/wp-content/uploads/2019/11/java-version.png" alt="" class="wp-image-15558" srcset="https://www.osradar.com/wp-content/uploads/2019/11/java-version.png 733w, https://www.osradar.com/wp-content/uploads/2019/11/java-version-300x62.png 300w, https://www.osradar.com/wp-content/uploads/2019/11/java-version-696x144.png 696w" sizes="(max-width: 733px) 100vw, 733px" /></figure></div>



<p>Add this line to set Java Environment to all users at boot time.</p>



<pre class="wp-block-verse">export JAVA_HOME=/usr/lib/jvm/java-11</pre>



<h3><strong>Step 2: Installing OpenNms Horizon</strong></h3>



<p>For installing OpenNMS Horizon, add the following yum repository &amp; then import GPG key.</p>



<pre class="wp-block-verse">yum -y install https://yum.opennms.org/repofiles/opennms-repo-stable-rhel8.noarch.rpm<br>rpm --import https://yum.opennms.org/OPENNMS-GPG-KEY</pre>



<p>Now, Install opennms meta package together alognwith all its built-in dependencies like jicmp6, opennms-webapp-jettty, postgresql and many more.</p>



<pre class="wp-block-verse">yum -y install opennms</pre>



<div class="wp-block-image"><figure class="aligncenter"><img loading="lazy" width="798" height="600" src="//1723336065.rsc.cdn77.org/wp-content/uploads/2019/11/opennms-installed.png" alt="" class="wp-image-15559" srcset="https://www.osradar.com/wp-content/uploads/2019/11/opennms-installed.png 798w, https://www.osradar.com/wp-content/uploads/2019/11/opennms-installed-300x226.png 300w, https://www.osradar.com/wp-content/uploads/2019/11/opennms-installed-768x577.png 768w, https://www.osradar.com/wp-content/uploads/2019/11/opennms-installed-80x60.png 80w, https://www.osradar.com/wp-content/uploads/2019/11/opennms-installed-265x198.png 265w, https://www.osradar.com/wp-content/uploads/2019/11/opennms-installed-696x523.png 696w, https://www.osradar.com/wp-content/uploads/2019/11/opennms-installed-559x420.png 559w" sizes="(max-width: 798px) 100vw, 798px" /></figure></div>



<p>Confirm that packages are successfully installed.</p>



<pre class="wp-block-verse">cd /opt/opennms</pre>



<div class="wp-block-image"><figure class="aligncenter"><img loading="lazy" width="402" height="292" src="//1723336065.rsc.cdn77.org/wp-content/uploads/2019/11/cd.png" alt="" class="wp-image-15560" srcset="https://www.osradar.com/wp-content/uploads/2019/11/cd.png 402w, https://www.osradar.com/wp-content/uploads/2019/11/cd-300x218.png 300w, https://www.osradar.com/wp-content/uploads/2019/11/cd-324x235.png 324w" sizes="(max-width: 402px) 100vw, 402px" /></figure></div>



<h3><strong>Step 3: Initializing &amp; Setup PostgreSQL</strong></h3>



<p>Initialize the PostgreSQL database </p>



<pre class="wp-block-verse">postgresql-setup initdb</pre>



<p>Start &amp; enable PostgreSQL services and check status for confirmation.</p>



<pre class="wp-block-verse">systemctl start postgresql<br>systemctl enable postgresql<br>systemctl status postgresql</pre>



<div class="wp-block-image"><figure class="aligncenter"><img loading="lazy" width="721" height="427" src="//1723336065.rsc.cdn77.org/wp-content/uploads/2019/11/postgresql-services.png" alt="" class="wp-image-15561" srcset="https://www.osradar.com/wp-content/uploads/2019/11/postgresql-services.png 721w, https://www.osradar.com/wp-content/uploads/2019/11/postgresql-services-300x178.png 300w, https://www.osradar.com/wp-content/uploads/2019/11/postgresql-services-696x412.png 696w, https://www.osradar.com/wp-content/uploads/2019/11/postgresql-services-709x420.png 709w" sizes="(max-width: 721px) 100vw, 721px" /></figure></div>



<p>Switch to PostgreSQL user account to create access to PostgreSQL. After it create opennms database user with a password &amp; create an opennms database.</p>



<pre class="wp-block-verse">su - postgres<br>createuser -P opennms<br>createdb -O opennms opennms </pre>



<p>Setup password for Postgres super user.</p>



<pre class="wp-block-verse">psq; -c "ALTER USER postgres WITH PASSWORD 'admin123';"<br> exit</pre>



<div class="wp-block-image"><figure class="aligncenter"><img loading="lazy" width="713" height="86" src="//1723336065.rsc.cdn77.org/wp-content/uploads/2019/11/alter-user.png" alt="" class="wp-image-15562" srcset="https://www.osradar.com/wp-content/uploads/2019/11/alter-user.png 713w, https://www.osradar.com/wp-content/uploads/2019/11/alter-user-300x36.png 300w, https://www.osradar.com/wp-content/uploads/2019/11/alter-user-696x84.png 696w" sizes="(max-width: 713px) 100vw, 713px" /></figure></div>



<p>Modify the access policy for PostgreSQL in the <strong>/var/lib/pgsql/data/pg_hba.conf</strong> config file.</p>



<pre class="wp-block-verse">vi var/lib/pgsql/data/pg_hba.conf</pre>



<p>Change the authentication method to <strong>md5 </strong>by finding given lines to allow OpenNMS Horizon accessing database over LAN with a <strong>MD5 hashed password.</strong></p>



<pre class="wp-block-verse">host           all            all           127.0.0.1/32           md5<br>host           all            all           ::1/128                   md5</pre>



<div class="wp-block-image"><figure class="aligncenter"><img loading="lazy" width="723" height="503" src="//1723336065.rsc.cdn77.org/wp-content/uploads/2019/11/md5.png" alt="" class="wp-image-15563" srcset="https://www.osradar.com/wp-content/uploads/2019/11/md5.png 723w, https://www.osradar.com/wp-content/uploads/2019/11/md5-300x209.png 300w, https://www.osradar.com/wp-content/uploads/2019/11/md5-100x70.png 100w, https://www.osradar.com/wp-content/uploads/2019/11/md5-696x484.png 696w, https://www.osradar.com/wp-content/uploads/2019/11/md5-604x420.png 604w" sizes="(max-width: 723px) 100vw, 723px" /></figure></div>



<p>Reload postgresql to take effect of configuration.</p>



<pre class="wp-block-verse">systemctl reload postgresql</pre>



<p>Now, configure the db access in OpenNMS Horizon by opening following file.</p>



<pre class="wp-block-verse">vim /opt/opennms/etc/opennms-datasources.xml. </pre>



<div class="wp-block-image"><figure class="aligncenter"><img loading="lazy" width="723" height="266" src="//1723336065.rsc.cdn77.org/wp-content/uploads/2019/11/data-source-.png" alt="" class="wp-image-15564" srcset="https://www.osradar.com/wp-content/uploads/2019/11/data-source-.png 723w, https://www.osradar.com/wp-content/uploads/2019/11/data-source--300x110.png 300w, https://www.osradar.com/wp-content/uploads/2019/11/data-source--696x256.png 696w" sizes="(max-width: 723px) 100vw, 723px" /></figure></div>



<p>And set up Credentials.</p>



<h3><strong>Step 4: Initialize &amp; Start OpenNMS Horizon</strong></h3>



<p>Now, you need to integrate the default version of JAVA with OpenNMS. Run the following command to detect environment and persist in the <strong>/opt/opennms/etc/java.conf </strong>file.</p>



<pre class="wp-block-verse">/opt/opennms/bin/runjava -s</pre>



<div class="wp-block-image"><figure class="aligncenter"><img loading="lazy" width="724" height="291" src="//1723336065.rsc.cdn77.org/wp-content/uploads/2019/11/run-java.png" alt="" class="wp-image-15565" srcset="https://www.osradar.com/wp-content/uploads/2019/11/run-java.png 724w, https://www.osradar.com/wp-content/uploads/2019/11/run-java-300x121.png 300w, https://www.osradar.com/wp-content/uploads/2019/11/run-java-696x280.png 696w" sizes="(max-width: 724px) 100vw, 724px" /></figure></div>



<p>On next step, you need to run the OpenNMS installer which will initialize the db and detect system libararies persisted in <strong>/opt/opennms/etc/libararies.properties.</strong></p>



<pre class="wp-block-verse">/opt/opennms/bin/install -dis</pre>



<div class="wp-block-image"><figure class="aligncenter"><img loading="lazy" width="712" height="221" src="//1723336065.rsc.cdn77.org/wp-content/uploads/2019/11/opennms-isntaller.png" alt="" class="wp-image-15567" srcset="https://www.osradar.com/wp-content/uploads/2019/11/opennms-isntaller.png 712w, https://www.osradar.com/wp-content/uploads/2019/11/opennms-isntaller-300x93.png 300w, https://www.osradar.com/wp-content/uploads/2019/11/opennms-isntaller-696x216.png 696w" sizes="(max-width: 712px) 100vw, 712px" /></figure></div>



<p>Start OpenNMS service via systemd for the mean time, enable it to auto-start at system boot.</p>



<pre class="wp-block-verse">systemctl start opennms<br>systemctl enable opennms<br>systemctl status opennms</pre>



<p>Allow 8990 port to access Web Console.</p>



<pre class="wp-block-verse">firewall-cmd --permanent --add-port=8980/tcp<br> firewall-cmd --reload</pre>



<h3><strong>Step 5: Access OpenNMS Web Console &amp; Login</strong></h3>



<p>Go to your browser and type any of the following command to access the web console.</p>



<pre style="text-align:center" class="wp-block-verse"><a href="https://www.osradar.com">http://SERVER_IP:8980/opennms</a><br> OR<br><a href="https://www.osradar.com"> http://FDQN-OF-YOUR-SERVER:8980/opennms</a></pre>



<p>Provide authentication details as default username admin &amp; password admin.</p>



<div class="wp-block-image"><figure class="aligncenter"><img loading="lazy" width="799" height="475" src="//1723336065.rsc.cdn77.org/wp-content/uploads/2019/11/opennms-dashboard.png" alt="" class="wp-image-15569" srcset="https://www.osradar.com/wp-content/uploads/2019/11/opennms-dashboard.png 799w, https://www.osradar.com/wp-content/uploads/2019/11/opennms-dashboard-300x178.png 300w, https://www.osradar.com/wp-content/uploads/2019/11/opennms-dashboard-768x457.png 768w, https://www.osradar.com/wp-content/uploads/2019/11/opennms-dashboard-696x414.png 696w, https://www.osradar.com/wp-content/uploads/2019/11/opennms-dashboard-706x420.png 706w" sizes="(max-width: 799px) 100vw, 799px" /></figure></div>



<p>This is not secure so you should change your password. To do so, go to main navigation menu on admin.</p>



<p>Under Account Self-Service, click Change Password&#8221;.<br>Enter the old, set new and click &#8220;Submit&#8221;. Afterwards, logout and login with your new user details for security.</p>



<p>That&#8217;s it You&#8217;ve done installing OpenNMS, if have any queries regarding this tutorial feel free to ask!</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/how-to-install-opennms-on-centos-rhel-8/">How to Install OpenNMS on Centos / RHEL 8.</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.osradar.com/how-to-install-opennms-on-centos-rhel-8/feed/</wfw:commentRss>
			<slash:comments>2</slash:comments>
		
		
			</item>
	</channel>
</rss>
