How to install OpenNMS on OpenSuSE

Installation:Yum

Go to yum.opennms.org site and find right distribution with your OS.

VPN:/temp#rpm -Uvh http://yum.opennms.org/repofiles/opennms-repo-stable-suse10.noarch.rpm

Retrieving http://yum.opennms.org/repofiles/opennms-repo-stable-suse10.noarch.rpm
warning: /var/tmp/rpm-xfer.XBbIOY: Header V3 DSA signature: NOKEY, key ID 4c4cbbd9
Preparing… ########################################### [100%]
1:opennms-repo-testing ########################################### [100%]
VPN:/tmp #

Type "yum list opennms" to see the package is on yum list.

VPN:/tmp # yum list opennms
Loading "fastestmirror" plugin
Repository opennms-stable-common is listed more than once in the configuration
Repository opennms-stable-suse10 is listed more than once in the configuration
Loading mirror speeds from cached hostfile
Available Packages
opennms.noarch 1.5.94-0.9475.snapshot opennms-testing-
VPN:/tmp #

 

Make sure that PostgreSQL has been installed on your machine. If so, start PostgreSQL.

VPN:/tmp # service postgresql start
Initializing the PostgreSQL database at location /var/lib/pgsql/data done
Starting PostgreSQL done
VPN:/tmp #

 

Install OpenNMS

VPN:/opt # yum install opennms
Loading "fastestmirror" plugin
Repository opennms-stable-common is listed more than once in the configuration
Repository opennms-stable-suse10 is listed more than once in the configuration
Loading mirror speeds from cached hostfile
Setting up Install Process
Parsing package install arguments
Resolving Dependencies
–> Running transaction check
—> Package opennms.noarch 0:1.5.92-0.9251.snapshot set to be updated
–> Processing Dependency: opennms-webui >= 1.5.92-0.9251.snapshot for package: opennms
–> Processing Dependency: iplike for package: opennms
–> Processing Dependency: opennms-core = 1.5.92-0.9251.snapshot for package: opennms
–> Running transaction check
—> Package iplike.i586 0:1.0.6-1 set to be updated
—> Package opennms-webapp-jetty.noarch 0:1.5.92-0.9251.snapshot set to be updated
—> Package opennms-core.noarch 0:1.5.92-0.9251.snapshot set to be updated
–> Processing Dependency: jdk >= 1.5 for package: opennms-core
–> Processing Dependency: jicmp for package: opennms-core
–> Running transaction check
—> Package jdk.i586 2000:1.5.0_15-fcs set to be updated
—> Package jicmp.i586 0:1.0-1 set to be updated
–> Finished Dependency Resolution

Dependencies Resolved

=======================================================================
Package Arch Version Repository Size
=======================================================================
Installing:
opennms noarch 1.5.92-0.9251.snapshot opennms-testing-common 5.0 k
Installing for dependencies:
iplike i586 1.0.6-1 opennms-stable-suse10 11 k
jdk i586 2000:1.5.0_15-fcs opennms-testing-common 46 M
jicmp i586 1.0-1 opennms-stable-suse10 32 k
opennms-core noarch 1.5.92-0.9251.snapshot opennms-testing-common 49 M
opennms-webapp-jetty noarch 1.5.92-0.9251.snapshot opennms-testing-common 28 M

Transaction Summary
=======================================================================
Install 6 Package(s)
Update 0 Package(s)
Remove 0 Package(s)

Total download size: 123 M
Is this ok [y/N]: y
Downloading Packages:
Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
Installing: jicmp ######################### [1/6]
Installing: iplike ######################### [2/6]
– installing iplike into the template1 db… OK
– installing iplike into the opennms db (if it exists)… failed

Failed to install iplike into the template1 or opennms databases.
See /tmp/install_iplike.log for details.

To skip this step and install manually, set the environment variable
SKIP_IPLIKE_INSTALL before installing this RPM.

To install iplike into your database, use the /usr/sbin/install_iplike.sh
script. See `install_iplike.sh -h` for more details.
error: %post(iplike-1.0.6-1.i586) scriptlet failed, exit status 1
Installing: jdk ######################### [3/6]
Installing: opennms-core ######################### [4/6]
– making symlink for /opt/opennms/logs… done
– making symlink for /opt/opennms/share… done
– moving *.sql.rpmnew files (if any)… done
– checking for old update files… done

*** Installation complete. You must still run the installer and
*** make a few other changes before you start OpenNMS. See the
*** install guide and release notes for details.
Installing: opennms-webapp-jetty ######################### [5/6]
Installing: opennms ######################### [6/6]

Installed: opennms.noarch 0:1.5.92-0.9251.snapshot
Dependency Installed: iplike.i586 0:1.0.6-1 jdk.i586 2000:1.5.0_15-fcs jicmp.i586 0:1.0-1 opennms-core.noarch 0:1.5.92-0.9251.snapshot opennms-webapp-jetty.noarch 0:1.5.92-0.9251.snapshot
Complete!

 

set the $OPENNMS_HOME environment variable before running any commands.

VPN:/opt # export OPENNMS_HOME=/opt/opennms
VPN:/opt #

Edit pg_hba.conf to Allow postgres to Authenticate

VPN:/ # find / -name pg_hba.conf
/var/lib/pgsql/data/pg_hba.conf
VPN:/ #

 

# "local" is for Unix domain socket connections only
local all all ident sameuser
# IPv4 local connections:
host all all 127.0.0.1/32 ident sameuser
# IPv6 local connections:
host all all ::1/128 ident sameuser

to # "local" is for Unix domain socket connections only
local all all trust
# IPv4 local connections:
host all all 127.0.0.1/32 trust
# IPv6 local connections:
host all all ::1/128 trust

 

 

 

Java jdk will be installed when you have completed install above process

VPN:/usr/java/jdk1.5.0_15 #

 

** you can try below to find JAVA directory.

VPN:/opt/opennms # $OPENNMS_HOME/bin/runjava -s
runjava: Looking for an appropriate JRE…
runjava: Checking for an appropriate JRE in JAVA_HOME…
runjava: found: "/usr/lib/jvm/jre/bin/java" is an appropriate JRE
runjava: value of "/usr/lib/jvm/jre/bin/java" stored in configuration file

VPN:/opt/opennms # $OPENNMS_HOME/bin/runjava -S /usr/java/jdk1.5.0_15/bin/java
runjava: checking specified JRE: "/usr/java/jdk1.5.0_15/bin/java"…
runjava: specified JRE is good.
runjava: value of "/usr/java/jdk1.5.0_15/bin/java" stored in configuration file
cnoserver:/opt/opennms #

  

Add the JAVA_HOME in /etc/default/opennms

VPN:/opt # JAVA_HOME=/usr
VPN:/opt #

 

Initialize OpenNMS and the Database

 ** if yu have failure, restart PostgreSQL.

VPN:/opt # $OPENNMS_HOME/bin/install -dis
=====================================================================
OpenNMS Installer Version $Id: Installer.java 9226 2008-06-01 17:55:10Z rangerrick $
=====================================================================
Configures PostgreSQL tables, users, and other miscellaneous settings.

– searching for jicmp:
– trying to load /usr/lib/libjicmp.so: OK
– searching for jrrd:
– trying to load /usr/lib/libjrrd.so: NO
– trying to load /usr/java/jdk1.5.0_15/jre/lib/i386/client/libjrrd.so: NO
– trying to load /usr/java/jdk1.5.0_15/jre/lib/i386/libjrrd.so: NO
– trying to load /usr/java/jdk1.5.0_15/jre/../lib/i386/libjrrd.so: NO
– trying to load /libjrrd.so: NO
– trying to load /opt/opennms/lib/libjrrd.so: NO
– trying to load /usr/lib/jni/libjrrd.so: NO
– trying to load /usr/lib/libjrrd.so: NO
– trying to load /usr/local/lib/libjrrd.so: NO
– Failed to load the optional jrrd library.
– This error is not fatal, since jrrd is only required for optional features.
– For more information, see http://www.opennms.org/index.php/jrrd
– checking database version… 8.2
– Full version string: PostgreSQL 8.2.4 on i686-pc-linux-gnu, compiled by GCC gcc (GCC) 4.2.1 (SUSE Linux)
* using ‘opennms’ as the PostgreSQL user for OpenNMS
* using ‘opennms’ as the PostgreSQL password for OpenNMS
* using ‘opennms’ as the PostgreSQL database name for OpenNMS
– using SQL directory… /opt/opennms/etc
– using create.sql… /opt/opennms/etc/create.sql
– checking if database "opennms" is unicode… ALREADY UNICODE
– checking database for old backup tables… NONE
– checking for rows that violate constraints…
– checking for rows that violate constraint ‘fk_dpname’… DONE
– checking for rows that violate constraint ‘fk_nodeid2’… DONE
– checking for rows that violate constraint ‘fk_nodeid1’… DONE
– checking for rows that violate constraint ‘snmpinterface_fkey2’… DONE
– checking for rows that violate constraint ‘fk_nodeid3’… DONE
– checking for rows that violate constraint ‘fk_serviceid1’… DONE
– checking for rows that violate constraint ‘ipinterface_fkey’… DONE
– checking for rows that violate constraint ‘fk_eventid1’… DONE
– checking for rows that violate constraint ‘fk_eventid2’… DONE
– checking for rows that violate constraint ‘fk_nodeid4’… DONE
– checking for rows that violate constraint ‘fk_serviceid2’… DONE
– checking for rows that violate constraint ‘ifservices_fkey1’… DONE
– checking for rows that violate constraint ‘ifservices_fkey2’… DONE
– checking for rows that violate constraint ‘fk_eventid3’… DONE
– checking for rows that violate constraint ‘fk_nodeid7’… DONE
– checking for rows that violate constraint ‘fk_notifid2’… DONE
– checking for rows that violate constraint ‘fk_eventidak2’… DONE
– checking for rows that violate constraint ‘fk_alarmid1’… DONE
– checking for rows that violate constraint ‘fk_nodeid5’… DONE
– checking for rows that violate constraint ‘categoryid_fkey1’… DONE
– checking for rows that violate constraint ‘nodeid_fkey1’… DONE
– checking for rows that violate constraint ‘fk_nodeid8’… DONE
– checking for rows that violate constraint ‘fk_demandpollid’… DONE
– checking for rows that violate constraint ‘location_monitor_fkey1’… DONE
– checking for rows that violate constraint ‘ifservices_fkey4’… DONE
– checking for rows that violate constraint ‘location_monitor_fkey2’… DONE
– checking for rows that violate constraint ‘applicationid_fkey1’… DONE
– checking for rows that violate constraint ‘ifservices_fkey3’… DONE
– checking for rows that violate constraint ‘fk_ia_nodeid1’… DONE
– checking for rows that violate constraint ‘fk_ia_nodeid8’… DONE
– checking for rows that violate constraint ‘fk_ia_nodeid2’… DONE
– checking for rows that violate constraint ‘fk_ia_nodeid3’… DONE
– checking for rows that violate constraint ‘fk_ia_nodeid4’… DONE
– checking for rows that violate constraint ‘fk_ia_nodeid5’… DONE
– checking for rows that violate constraint ‘fk_ia_nodeid6’… DONE
– checking for rows that violate constraint ‘fk_ia_nodeid7’… DONE
– checking for rows that violate constraint ‘fk_mapid’… DONE
– checking for rows that violate constraint ‘fk_statsdata_reportid’… DONE
– checking for rows that violate constraint ‘fk_statsdata_resourceid’… DONE
– checking for rows that violate constraint ‘fk_qrtz_job_listeners’… DONE
– checking for rows that violate constraint ‘fk_qrtz_triggers’… DONE
– checking for rows that violate constraint ‘fk_qrtz_simple_triggers’… DONE
– checking for rows that violate constraint ‘fk_qrtz_cron_triggers’… DONE
– checking for rows that violate constraint ‘fk_qrtz_blob_triggers’… DONE
– checking for rows that violate constraint ‘fk_qrtz_trigger_listeners’… DONE
– checking for rows that violate constraints… DONE
– creating sequences…
– checking "opennmsNxtId" sequence… DOES NOT EXIST
– creating sequence "opennmsNxtId"… OK
– granting access to ‘opennmsNxtId’ for user ‘opennms’… DONE
– checking "nodeNxtId" sequence… DOES NOT EXIST
– creating sequence "nodeNxtId"… OK
– granting access to ‘nodeNxtId’ for user ‘opennms’… DONE
– checking "serviceNxtId" sequence… DOES NOT EXIST
– creating sequence "serviceNxtId"… OK
– granting access to ‘serviceNxtId’ for user ‘opennms’… DONE
– checking "eventsNxtId" sequence… DOES NOT EXIST
– creating sequence "eventsNxtId"… OK
– granting access to ‘eventsNxtId’ for user ‘opennms’… DONE
– checking "alarmsNxtId" sequence… DOES NOT EXIST
– creating sequence "alarmsNxtId"… OK
– granting access to ‘alarmsNxtId’ for user ‘opennms’… DONE
– checking "outageNxtId" sequence… DOES NOT EXIST
– creating sequence "outageNxtId"… OK
– granting access to ‘outageNxtId’ for user ‘opennms’… DONE
– checking "notifyNxtId" sequence… DOES NOT EXIST
– creating sequence "notifyNxtId"… OK
– granting access to ‘notifyNxtId’ for user ‘opennms’… DONE
– checking "vulnNxtId" sequence… DOES NOT EXIST
– creating sequence "vulnNxtId"… OK
– granting access to ‘vulnNxtId’ for user ‘opennms’… DONE
– checking "catNxtId" sequence… DOES NOT EXIST
– creating sequence "catNxtId"… OK
– granting access to ‘catNxtId’ for user ‘opennms’… DONE
– checking "userNotifNxtId" sequence… DOES NOT EXIST
– creating sequence "userNotifNxtId"… OK
– granting access to ‘userNotifNxtId’ for user ‘opennms’… DONE
– checking "demandPollNxtId" sequence… DOES NOT EXIST
– creating sequence "demandPollNxtId"… OK
– granting access to ‘demandPollNxtId’ for user ‘opennms’… DONE
– checking "pollResultNxtId" sequence… DOES NOT EXIST
– creating sequence "pollResultNxtId"… OK
– granting access to ‘pollResultNxtId’ for user ‘opennms’… DONE
– checking "mapNxtId" sequence… DOES NOT EXIST
– creating sequence "mapNxtId"… OK
– granting access to ‘mapNxtId’ for user ‘opennms’… DONE
– checking "reportNxtId" sequence… DOES NOT EXIST
– creating sequence "reportNxtId"… OK
– granting access to ‘reportNxtId’ for user ‘opennms’… DONE
– creating sequences… DONE
– adding PL/pgSQL call handler… OK
– adding PL/pgSQL language module… OK
– adding stored procedures…
– setSnmpInterfaceKeysOnInsertTrigger.sql… OK
– getManagedOutageForNodeInWindow.sql… OK
– getManagedServiceCountForNode.sql… OK
– getManagePercentAvailNodeWindow.sql… OK
– getManagedServiceCountForIntf.sql… OK
– getPercentAvailabilityInWindow.sql… OK
– getManagedOutageForIntfInWindow.sql… OK
– setSnmpInterfaceKeysOnUpdateTrigger.sql… OK
– setIfServiceKeysOnInsertTrigger.sql… OK
– getManagePercentAvailIntfWindow.sql… OK
– getOutageTimeInWindow.sql… OK
– setIfServiceKeysOnUpdateTrigger.sql… OK
– setIpInterfaceKeysOnInsertTrigger.sql… OK
– setIpInterfaceKeysOnUpdateTrigger.sql… OK
– creating tables…
– checking table "serverMap"…
– checking table "servermap"… CREATED
– checking index ‘server_name_idx’ on this table… DONE
– granting access to ‘servermap’ for user ‘opennms’… DONE
– checking table "serviceMap"…
– checking table "servicemap"… CREATED
– checking index ‘servicemap_name_idx’ on this table… DONE
– checking index ‘serviceMap_ipaddr_idx’ on this table… DONE
– granting access to ‘servicemap’ for user ‘opennms’… DONE
– checking table "distPoller"…
– checking table "distpoller"… CREATED
– granting access to ‘distpoller’ for user ‘opennms’… DONE
– checking table "node"…
– checking table "node"… CREATED
– checking index ‘node_id_type_idx’ on this table… DONE
– checking index ‘node_label_idx’ on this table… DONE
– checking index ‘node_dpname_idx’ on this table… DONE
– checking index ‘node_foreign_unique_idx’ on this table… DONE
– granting access to ‘node’ for user ‘opennms’… DONE
– checking table "snmpInterface"…
– checking table "snmpinterface"… CREATED
– checking index ‘snmpinterface_nodeid_ifindex_unique_idx’ on this table… DONE
– checking index ‘snmpinterface_nodeid_idx’ on this table… DONE
– checking index ‘snmpinterface_ipaddr_idx’ on this table… DONE
– granting access to ‘snmpinterface’ for user ‘opennms’… DONE
– checking table "ipInterface"…
– checking table "ipinterface"… CREATED
– checking index ‘ipinterface_nodeid_ipaddr_notzero_idx’ on this table… DONE
– checking index ‘ipinterface_nodeid_ipaddr_ismanaged_idx’ on this table… DONE
– checking index ‘ipinterface_ipaddr_ismanaged_idx’ on this table… DONE
– checking index ‘ipinterface_ipaddr_idx’ on this table… DONE
– checking index ‘ipinterface_nodeid_ismanaged_idx’ on this table… DONE
– checking index ‘ipinterface_nodeid_idx’ on this table… DONE
– checking index ‘ipinterface_snmpInterfaceId_idx’ on this table… DONE
– checking trigger ‘setSnmpInterfaceKeysOnInsertTrigger’ on this table… DONE
– checking trigger ‘setSnmpInterfaceKeysOnUpdateTrigger’ on this table… DONE
– granting access to ‘ipinterface’ for user ‘opennms’… DONE
– checking table "service"…
– checking table "service"… CREATED
– granting access to ‘service’ for user ‘opennms’… DONE
– checking table "ifServices"…
– checking table "ifservices"… CREATED
– checking index ‘ifservices_nodeid_ipaddr_svc_unique’ on this table… DONE
– checking index ‘ifservices_nodeid_ipaddr_status’ on this table… DONE
– checking index ‘ifservices_nodeid_status’ on this table… DONE
– checking index ‘ifservices_nodeid_idx’ on this table… DONE
– checking index ‘ifservices_serviceid_idx’ on this table… DONE
– checking index ‘ifservices_nodeid_serviceid_idx’ on this table… DONE
– checking index ‘ifservicves_ipInterfaceId_idx’ on this table… DONE
– checking trigger ‘setIpInterfaceKeysOnInsertTrigger’ on this table… DONE
– checking trigger ‘setIpInterfaceKeysOnUpdateTrigger’ on this table… DONE
– granting access to ‘ifservices’ for user ‘opennms’… DONE
– checking table "events"…
– checking table "events"… CREATED
– checking index ‘events_uei_idx’ on this table… DONE
– checking index ‘events_nodeid_idx’ on this table… DONE
– checking index ‘events_ipaddr_idx’ on this table… DONE
– checking index ‘events_serviceid_idx’ on this table… DONE
– checking index ‘events_time_idx’ on this table… DONE
– checking index ‘events_severity_idx’ on this table… DONE
– checking index ‘events_log_idx’ on this table… DONE
– checking index ‘events_display_idx’ on this table… DONE
– checking index ‘events_ackuser_idx’ on this table… DONE
– checking index ‘events_acktime_idx’ on this table… DONE
– checking index ‘events_alarmid_idx’ on this table… DONE
– checking index ‘events_nodeid_display_ackuser’ on this table… DONE
– granting access to ‘events’ for user ‘opennms’… DONE
– checking table "outages"…
– checking table "outages"… CREATED
– checking index ‘outages_nodeid_ipaddr_svc_idx’ on this table… DONE
– checking index ‘outages_svclostid_idx’ on this table… DONE
– checking index ‘outages_svcregainedid_idx’ on this table… DONE
– checking index ‘outages_nodeid_idx’ on this table… DONE
– checking index ‘outages_serviceid_idx’ on this table… DONE
– checking index ‘outages_ipaddr_idx’ on this table… DONE
– checking index ‘outages_regainedservice_idx’ on this table… DONE
– checking index ‘outages_ifServivceId_idx’ on this table… DONE
– checking trigger ‘setIfServiceKeysOnInsertTrigger’ on this table… DONE
– checking trigger ‘setIfServiceKeysOnUpdateTrigger’ on this table… DONE
– granting access to ‘outages’ for user ‘opennms’… DONE
– checking table "vulnerabilities"…
– checking table "vulnerabilities"… CREATED
– checking index ‘vulnerabilities_nodeid_idx’ on this table… DONE
– checking index ‘vulnerabilities_ipaddr_idx’ on this table… DONE
– checking index ‘vulnerabilities_severity_idx’ on this table… DONE
– checking index ‘vulnerabilities_port_idx’ on this table… DONE
– checking index ‘vulnerabilities_protocol_idx’ on this table… DONE
– granting access to ‘vulnerabilities’ for user ‘opennms’… DONE
– checking table "vulnPlugins"…
– checking table "vulnplugins"… CREATED
– checking index ‘vulnplugins_plugin_idx’ on this table… DONE
– granting access to ‘vulnplugins’ for user ‘opennms’… DONE
– checking table "notifications"…
– checking table "notifications"… CREATED
– checking index ‘notifications_nodeid_idx’ on this table… DONE
– checking index ‘notifications_ipaddr_idx’ on this table… DONE
– checking index ‘notifications_serviceid_idx’ on this table… DONE
– checking index ‘notifications_eventid_idx’ on this table… DONE
– checking index ‘notifications_respondtime_idx’ on this table… DONE
– checking index ‘notifications_answeredby_idx’ on this table… DONE
– checking index ‘notifications_eventuei_idx’ on this table… DONE
– granting access to ‘notifications’ for user ‘opennms’… DONE
– checking table "usersNotified"…
– checking table "usersnotified"… CREATED
– checking index ‘userid_notifyid_idx’ on this table… DONE
– granting access to ‘usersnotified’ for user ‘opennms’… DONE
– checking table "alarms"…
– checking table "alarms"… CREATED
– checking index ‘alarm_uei_idx’ on this table… DONE
– checking index ‘alarm_nodeid_idx’ on this table… DONE
– checking index ‘alarm_reductionkey_idx’ on this table… DONE
– checking index ‘alarm_clearkey_idx’ on this table… DONE
– checking index ‘alarm_reduction2_idx’ on this table… DONE
– checking index ‘alarm_app_dn’ on this table… DONE
– checking index ‘alarm_oss_primary_key’ on this table… DONE
– checking index ‘alarm_eventid_idx’ on this table… DONE
– granting access to ‘alarms’ for user ‘opennms’… DONE
– checking table "alarm_attributes"…
– checking table "alarm_attributes"… CREATED
– checking index ‘alarm_attributes_idx’ on this table… DONE
– checking index ‘alarm_attributes_aan_idx’ on this table… DONE
– granting access to ‘alarm_attributes’ for user ‘opennms’… DONE
– checking table "assets"…
– checking table "assets"… CREATED
– checking index ‘assets_nodeid_idx’ on this table… DONE
– checking index ‘assets_an_idx’ on this table… DONE
– granting access to ‘assets’ for user ‘opennms’… DONE
– checking table "categories"…
– checking table "categories"… CREATED
– checking index ‘category_idx’ on this table… DONE
– granting access to ‘categories’ for user ‘opennms’… DONE
– checking table "category_node"…
– checking table "category_node"… CREATED
– checking index ‘catid_idx’ on this table… DONE
– checking index ‘catnode_idx’ on this table… DONE
– checking index ‘catenode_unique_idx’ on this table… DONE
– granting access to ‘category_node’ for user ‘opennms’… DONE
– checking table "pathOutage"…
– checking table "pathoutage"… CREATED
– checking index ‘pathoutage_nodeid’ on this table… DONE
– checking index ‘pathoutage_criticalpathip’ on this table… DONE
– checking index ‘pathoutage_criticalpathservicename_idx’ on this table… DONE
– granting access to ‘pathoutage’ for user ‘opennms’… DONE
– checking table "demandPolls"…
– checking table "demandpolls"… CREATED
– checking index ‘demandpoll_request_time’ on this table… DONE
– granting access to ‘demandpolls’ for user ‘opennms’… DONE
– checking table "pollResults"…
– checking table "pollresults"… CREATED
– checking index ‘pollresults_poll_id’ on this table… DONE
– checking index ‘pollresults_service’ on this table… DONE
– granting access to ‘pollresults’ for user ‘opennms’… DONE
– checking table "location_monitors"…
– checking table "location_monitors"… CREATED
– granting access to ‘location_monitors’ for user ‘opennms’… DONE
– checking table "location_monitor_details"…
– checking table "location_monitor_details"… CREATED
– checking index ‘location_monitor_details_id’ on this table… DONE
– checking index ‘location_monitor_details_id_property’ on this table… DONE
– granting access to ‘location_monitor_details’ for user ‘opennms’… DONE
– checking table "location_specific_status_changes"…
– checking table "location_specific_status_changes"… CREATED
– checking index ‘location_specific_status_changes_ifserviceid’ on this table… DONE
– checking index ‘location_specific_status_changes_locationmonitorid’ on this table… DONE
– checking index ‘location_specific_status_changes_locationmonitorid_ifserviceid’ on this table… DONE
– checking index ‘location_specific_status_changes_locationmonitorid_loc_if_time’ on this table… DONE
– checking index ‘location_specific_status_changes_statustime’ on this table… DONE
– granting access to ‘location_specific_status_changes’ for user ‘opennms’… DONE
– checking table "applications"…
– checking table "applications"… CREATED
– checking index ‘applications_name_idx’ on this table… DONE
– granting access to ‘applications’ for user ‘opennms’… DONE
– checking table "application_service_map"…
– checking table "application_service_map"… CREATED
– checking index ‘appid_idx’ on this table… DONE
– checking index ‘ifserviceid_idx’ on this table… DONE
– checking index ‘appid_ifserviceid_idex’ on this table… DONE
– granting access to ‘application_service_map’ for user ‘opennms’… DONE
– checking table "atinterface"…
– checking table "atinterface"… CREATED
– checking index ‘atinterface_nodeid_idx’ on this table… DONE
– checking index ‘atinterface_node_ipaddr_idx’ on this table… DONE
– checking index ‘atinterface_atphysaddr_idx’ on this table… DONE
– granting access to ‘atinterface’ for user ‘opennms’… DONE
– checking table "vlan"…
– checking table "vlan"… CREATED
– checking index ‘vlan_vlanname_idx’ on this table… DONE
– granting access to ‘vlan’ for user ‘opennms’… DONE
– checking table "stpnode"…
– checking table "stpnode"… CREATED
– checking index ‘stpnode_nodeid_idx’ on this table… DONE
– checking index ‘stpnode_baseBridgeAddress_idx’ on this table… DONE
– checking index ‘stpnode_stpdesignatedroot_idx’ on this table… DONE
– granting access to ‘stpnode’ for user ‘opennms’… DONE
– checking table "stpinterface"…
– checking table "stpinterface"… CREATED
– checking index ‘stpinterface_node_ifindex_idx’ on this table… DONE
– checking index ‘stpinterface_node_idx’ on this table… DONE
– checking index ‘stpinterface_stpvlan_idx’ on this table… DONE
– checking index ‘stpinterface_stpdesbridge_idx’ on this table… DONE
– granting access to ‘stpinterface’ for user ‘opennms’… DONE
– checking table "iprouteinterface"…
– checking table "iprouteinterface"… CREATED
– checking index ‘iprouteinterface_nodeid_idx’ on this table… DONE
– checking index ‘iprouteinterface_node_ifdex_idx’ on this table… DONE
– checking index ‘iprouteinterface_rnh_idx’ on this table… DONE
– granting access to ‘iprouteinterface’ for user ‘opennms’… DONE
– checking table "datalinkinterface"…
– checking table "datalinkinterface"… CREATED
– checking index ‘dlint_node_idx’ on this table… DONE
– checking index ‘dlint_nodeparent_idx’ on this table… DONE
– checking index ‘dlint_nodeparent_paifindex_idx’ on this table… DONE
– granting access to ‘datalinkinterface’ for user ‘opennms’… DONE
– checking table "inventory"…
– checking table "inventory"… CREATED
– checking index ‘inventory_nodeid_name_idx’ on this table… DONE
– checking index ‘inventory_nodeid_idx’ on this table… DONE
– checking index ‘inventory_lastpolltime_idx’ on this table… DONE
– checking index ‘inventory_status_idx’ on this table… DONE
– granting access to ‘inventory’ for user ‘opennms’… DONE
– checking table "map"…
– checking table "map"… CREATED
– granting access to ‘map’ for user ‘opennms’… DONE
– checking table "element"…
– checking table "element"… CREATED
– checking index ‘element_mapid_elementid’ on this table… DONE
– granting access to ‘element’ for user ‘opennms’… DONE
– checking table "reportLocator"…
– checking table "reportlocator"… CREATED
– granting access to ‘reportlocator’ for user ‘opennms’… DONE
– checking table "statisticsReport"…
– checking table "statisticsreport"… CREATED
– checking index ‘statisticsReport_startDate’ on this table… DONE
– checking index ‘statisticsReport_name’ on this table… DONE
– checking index ‘statisticsReport_purgeDate’ on this table… DONE
– granting access to ‘statisticsreport’ for user ‘opennms’… DONE
– checking table "resourceReference"…
– checking table "resourcereference"… CREATED
– checking index ‘resourceReference_resourceId’ on this table… DONE
– granting access to ‘resourcereference’ for user ‘opennms’… DONE
– checking table "statisticsReportData"…
– checking table "statisticsreportdata"… CREATED
– checking index ‘statsData_unique’ on this table… DONE
– granting access to ‘statisticsreportdata’ for user ‘opennms’… DONE
– checking table "qrtz_job_details"…
– checking table "qrtz_job_details"… CREATED
– granting access to ‘qrtz_job_details’ for user ‘opennms’… DONE
– checking table "qrtz_job_listeners"…
– checking table "qrtz_job_listeners"… CREATED
– granting access to ‘qrtz_job_listeners’ for user ‘opennms’… DONE
– checking table "qrtz_triggers"…
– checking table "qrtz_triggers"… CREATED
– granting access to ‘qrtz_triggers’ for user ‘opennms’… DONE
– checking table "qrtz_simple_triggers"…
– checking table "qrtz_simple_triggers"… CREATED
– granting access to ‘qrtz_simple_triggers’ for user ‘opennms’… DONE
– checking table "qrtz_cron_triggers"…
– checking table "qrtz_cron_triggers"… CREATED
– granting access to ‘qrtz_cron_triggers’ for user ‘opennms’… DONE
– checking table "qrtz_blob_triggers"…
– checking table "qrtz_blob_triggers"… CREATED
– granting access to ‘qrtz_blob_triggers’ for user ‘opennms’… DONE
– checking table "qrtz_trigger_listeners"…
– checking table "qrtz_trigger_listeners"… CREATED
– granting access to ‘qrtz_trigger_listeners’ for user ‘opennms’… DONE
– checking table "qrtz_calendars"…
– checking table "qrtz_calendars"… CREATED
– granting access to ‘qrtz_calendars’ for user ‘opennms’… DONE
– checking table "qrtz_paused_trigger_grps"…
– checking table "qrtz_paused_trigger_grps"… CREATED
– granting access to ‘qrtz_paused_trigger_grps’ for user ‘opennms’… DONE
– checking table "qrtz_fired_triggers"…
– checking table "qrtz_fired_triggers"… CREATED
– granting access to ‘qrtz_fired_triggers’ for user ‘opennms’… DONE
– checking table "qrtz_scheduler_state"…
– checking table "qrtz_scheduler_state"… CREATED
– granting access to ‘qrtz_scheduler_state’ for user ‘opennms’… DONE
– checking table "qrtz_locks"…
– checking table "qrtz_locks"… CREATED
– granting access to ‘qrtz_locks’ for user ‘opennms’… DONE
– creating tables… DONE
– inserting initial table data for "distPoller"… OK
– inserting initial table data for "categories"… OK
– inserting initial table data for "qrtz_locks"… OK
– checking if iplike is usable… NO
– removing existing iplike definition (if any)… OK
– inserting C iplike function… SKIPPED (location of iplike function not set)
– inserting PL/pgSQL iplike function… OK
– checking for stale eventtime.so references… OK

Installer completed successfully!

 
Start OpenNMS

VPN:/etc/init.d # ./opennms start
Starting OpenNMS: done
VPN:/etc/init.d #

 

http://localhost:8980/opennms/acegilogin.jsp

 

 

Troubleshooting

1. When restart OpenNMS, you might receive error messages shown below

cnoserver:/etc/init.d # ./opennms start

Starting OpenNMS: org.postgresql.util.PSQLException: Connection refused. Check that the hostname and port are correct and that the postmaster is accepting TCP/IP connections.
OpenNMS runs better if you start up the database first. failed

 

You need to start postgreSQL first before start OpenNMS

 

cnoserver:/etc/init.d # ./postgresql start

cnoserver:/etc/init.d # ./opennms start

 

2. Don’t forget allow TCP port 8980 on your firewall

 

Leave a Reply