-
Notifications
You must be signed in to change notification settings - Fork 0
Home
Welcome to the CentOS-7_OpenNMS_Install wiki!
###OpenNMS Install###
###Get Java RPM and GPG key###
cd ~ wget --no-cookies --no-check-certificate --header "Cookie: gpw_e24=http%3A%2F%2Fwww.oracle.com%2F; oraclelicense=accept-securebackup-cookie" "http://download.oracle.com/otn-pub/java/jdk/8u60-b27/jdk-8u60-linux-x64.rpm" ###Install Java####
yum localinstall jdk-8u60-linux-x64.rpm
###Install RRDTool###
yum install rrdtool
###Get OpenNMS RPM and GPG Key###
rpm -Uvh http://yum.opennms.org/repofiles/opennms-repo-stable-rhel7.noarch.rpm rpm --import http://yum.opennms.org/OPENNMS-GPG-KEY
###Install OpenNMS###
yum install opennms
###Initialize postgresql DB###
postgresql-setup initdb
###Start postgresql and enable at boot###
systemctl start postgresql systemctl enable postgresql
###Create users, database, and set psswd for postgres###
su - postgres createuser -P opennms createdb -O opennms opennms psql -c "ALTER USER postgres WITH PASSWORD 'whatever password you want';" exit
###Edit posgresql config to trust connections### "may not be necessary"
vi /var/lib/pgsql/data/pg_hba.conf
###only change bits ident or md5 to look like this### local all all trust
host all all 127.0.0.1/32 trust
host all all ::1/128 trust
###Reload postgresql service####
systemctl reload postgresql
###Edit OpenNMS config for user and passwords we configured earlier###
vi /opt/opennms/etc/opennms-datasources.xml
###Places to change are marked by this###
###Configure postgresql Database###
vi /var/lib/pgsql/data/postgresql.conf
#------------------------------------------------------------------------------
#------------------------------------------------------------------------------
listen_addresses = 'localhost' max_connections = 256
#------------------------------------------------------------------------------
#------------------------------------------------------------------------------
shared_buffers = 1024MB
###Set up java for OpenNMS### #from the /opt/ directory#
opennms/bin/runjava -S /usr/java/latest/bin/java
###Initialize and Upgrade OpenNMS###
opt/opennms/bin/install -dis
###Start and Enable OpenNMS at boot###
systemctl start opennms systemctl enable opennms