ML
    • Recent
    • Categories
    • Tags
    • Popular
    • Users
    • Groups
    • Register
    • Login

    OpenNMS

    Scheduled Pinned Locked Moved IT Discussion
    open sourceopennmscloudatcostlinux
    24 Posts 5 Posters 6.6k Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • gjacobseG
      gjacobse
      last edited by

      I've been working on this for a little bit now,..

      • Installed the Repository RPM
      • Installed the PostgreSQL
      • Installed Nano to edit the pg_hba.conf file to allow access to the db.
      • restarted the PosgreSQL db

      Didn't want to fight the Java 7 JDK - the document stated that they "While we provide a JDK in our YUM repository as a fallback" so this one step I have skipped.

      Now I get in to a spot, Installing OpenNMS.

      [root@localhost data]# yum -y install opennms
      Loaded plugins: fastestmirror
      Loading mirror speeds from cached hostfile
       * base: less.cogeco.net
       * epel: mirrors.rit.edu
       * extras: less.cogeco.net
       * updates: centos.mirror.rafal.ca
      Setting up Install Process
      Resolving Dependencies
      --> Running transaction check
      ---> Package opennms.noarch 0:15.0.1-1 will be installed
      --> Processing Dependency: opennms-core = 15.0.1-1 for package: opennms-15.0.1-1.noarch
      --> Processing Dependency: opennms-core = 15.0.1-1 for package: opennms-15.0.1-1.noarch
      --> Processing Dependency: opennms-webui >= 15.0.1-1 for package: opennms-15.0.1-1.noarch
      --> Processing Dependency: opennms-webui >= 15.0.1-1 for package: opennms-15.0.1-1.noarch
      --> Running transaction check
      ---> Package opennms-core.noarch 0:15.0.1-1 will be installed
      --> Processing Dependency: jdk >= 2000:1.7 for package: opennms-core-15.0.1-1.noarch
      --> Processing Dependency: jdk >= 2000:1.7 for package: opennms-core-15.0.1-1.noarch
      --> Processing Dependency: jicmp6 for package: opennms-core-15.0.1-1.noarch
      --> Processing Dependency: jicmp6 for package: opennms-core-15.0.1-1.noarch
      --> Processing Dependency: jicmp for package: opennms-core-15.0.1-1.noarch
      --> Processing Dependency: jicmp for package: opennms-core-15.0.1-1.noarch
      ---> Package opennms-webapp-jetty.noarch 0:15.0.1-1 will be installed
      --> Running transaction check
      ---> Package jdk.i586 2000:1.7.0_75-fcs will be installed
      ---> Package jicmp.i386 0:1.4.1-1 will be installed
      ---> Package jicmp6.i386 0:1.2.1-1 will be installed
      --> Finished Dependency Resolution
      
      Dependencies Resolved
      
      ==========================================================================================================
       Package                     Arch          Version                     Repository                    Size
      ==========================================================================================================
      Installing:
       opennms                     noarch        15.0.1-1                    opennms-stable-common        2.2 k
      Installing for dependencies:
       jdk                         i586          2000:1.7.0_75-fcs           opennms-stable-common        119 M
       jicmp                       i386          1.4.1-1                     opennms-stable-rhel6          45 k
       jicmp6                      i386          1.2.1-1                     opennms-stable-rhel6          28 k
       opennms-core                noarch        15.0.1-1                    opennms-stable-common        288 M
       opennms-webapp-jetty        noarch        15.0.1-1                    opennms-stable-common        193 M
      
      Transaction Summary
      ==========================================================================================================
      Install       6 Package(s)
      
      Total size: 601 M
      Installed size: 792 M
      Downloading Packages:
      warning: rpmts_HdrFromFdno: Header V3 DSA/SHA1 Signature, key ID 5b9efd43: NOKEY
      Retrieving key from file:///etc/yum.repos.d/OPENNMS-GPG-KEY
      
      
      Invalid GPG Key from file:///etc/yum.repos.d/OPENNMS-GPG-KEY: first PGP packet should be a public-key pack                                          et, not signature packet
      

      and can not proceed to the next step..

      Is the GPG key causing this? Is my skipping installing the Java7 package to 'blame'?

      1 Reply Last reply Reply Quote 0
      • ?
        A Former User
        last edited by

        Make sure you run Yum update and then do rpm --import http://yum.opennms.org/OPENNMS-GPG-KEY to reimport the key.

        1 Reply Last reply Reply Quote 2
        • thanksajdotcomT
          thanksajdotcom
          last edited by

          Learn vi.

          scottalanmillerS gjacobseG 2 Replies Last reply Reply Quote 1
          • scottalanmillerS
            scottalanmiller @thanksajdotcom
            last edited by

            @thanksajdotcom said:

            Learn vi.

            Yeah, what's up with installing nano?

            thanksajdotcomT gjacobseG JaredBuschJ 3 Replies Last reply Reply Quote 1
            • thanksajdotcomT
              thanksajdotcom @scottalanmiller
              last edited by

              @scottalanmiller said:

              @thanksajdotcom said:

              Learn vi.

              Yeah, what's up with installing nano?

              My thoughts exactly.

              1 Reply Last reply Reply Quote 0
              • gjacobseG
                gjacobse @scottalanmiller
                last edited by

                @scottalanmiller said:

                @thanksajdotcom said:

                Learn vi.

                Yeah, what's up with installing nano?

                didn't run when I attempted to use it. Nor was emac

                [root@localhost data]# nano pg_hba.conf
                -bash: nano: command not found
                [root@localhost data]# emac pg_hba.conf
                -bash: emac: command not found
                
                
                1 Reply Last reply Reply Quote 0
                • thanksajdotcomT
                  thanksajdotcom
                  last edited by

                  I'm assuming vi works no problem though.

                  1 Reply Last reply Reply Quote 0
                  • gjacobseG
                    gjacobse @thanksajdotcom
                    last edited by

                    @thanksajdotcom said:

                    Learn vi.

                    Easily said - what is vi?

                    And yes,.. I am looking for it.

                    scottalanmillerS thanksajdotcomT 2 Replies Last reply Reply Quote 0
                    • scottalanmillerS
                      scottalanmiller @gjacobse
                      last edited by

                      @g.jacobse said:

                      @thanksajdotcom said:

                      Learn vi.

                      Easily said - what is vi?

                      And yes,.. I am looking for it.

                      vi is the one text editor that exists in "every" UNIX system. It's the editor you always have, no matter what. Only one you need to know because it is the only one you know you'll always have.

                      gjacobseG 1 Reply Last reply Reply Quote 1
                      • thanksajdotcomT
                        thanksajdotcom @gjacobse
                        last edited by

                        @g.jacobse said:

                        @thanksajdotcom said:

                        Learn vi.

                        Easily said - what is vi?

                        And yes,.. I am looking for it.

                        Vi is a text editor, sometimes also called vim. It'd just be:

                        vi pg_hba.conf
                        

                        Press i to make edits and when done, press Esc and :wq followed by enter.

                        gjacobseG 1 Reply Last reply Reply Quote 0
                        • gjacobseG
                          gjacobse @scottalanmiller
                          last edited by

                          @scottalanmiller

                          I see.. now. Been around since 1991 pronounced vee-eye

                          1 Reply Last reply Reply Quote 1
                          • gjacobseG
                            gjacobse @thanksajdotcom
                            last edited by

                            @thanksajdotcom
                            Thank you.

                            1 Reply Last reply Reply Quote 0
                            • gjacobseG
                              gjacobse
                              last edited by

                              It's slow - but It's running, and I'm connected.

                              1 Reply Last reply Reply Quote 0
                              • ?
                                A Former User
                                last edited by

                                Most any network monitor will be slow, without beefy hardware to back it up. They are quiet resource intensive.

                                1 Reply Last reply Reply Quote 0
                                • gjacobseG
                                  gjacobse
                                  last edited by gjacobse

                                  It's on CloudatCost -

                                  1 Reply Last reply Reply Quote 0
                                  • JaredBuschJ
                                    JaredBusch @scottalanmiller
                                    last edited by

                                    @scottalanmiller said:

                                    Yeah, what's up with installing nano?

                                    Nothing wrong with using nano either. I have never had an issue caused by nano.

                                    I know how to use vi, but I don't use it.

                                    1 Reply Last reply Reply Quote 1
                                    • gjacobseG
                                      gjacobse
                                      last edited by

                                      (command line) restarted the box yesterday.

                                      PostgreSQL is starting okay
                                      but OpenNMS is not.

                                      [root@c1115844-28040 ~]# /sbin/service postgresql start
                                      Starting postgresql service:                               [  OK  ]
                                      [root@c1115844-28040 ~]# /sbin/service postgresql opennms
                                      Usage: /etc/init.d/postgresql {start|stop|status|restart|condrestart|try-restart|reload|force-reloa                                                                                                                                       d|initdb}
                                      [root@c1115844-28040 ~]# /sbin/service opennms start
                                      Starting OpenNMS: Started OpenNMS, but it stopped running: for details see /opt/opennms/logs/output                                                                                                                                       .log
                                                                                                 [FAILED]
                                      [root@c1115844-28040 ~]# vi /opt/opennms/logs/output.log
                                      ------------------------------------------------------------------------------
                                      Fri Apr 17 13:17:02 EDT 2015
                                      begin ulimit settings:
                                      core file size          (blocks, -c) 0
                                      data seg size           (kbytes, -d) unlimited
                                      scheduling priority             (-e) 0
                                      file size               (blocks, -f) unlimited
                                      pending signals                 (-i) 3879
                                      max locked memory       (kbytes, -l) 64
                                      max memory size         (kbytes, -m) unlimited
                                      open files                      (-n) 20480
                                      pipe size            (512 bytes, -p) 8
                                      POSIX message queues     (bytes, -q) 819200
                                      real-time priority              (-r) 0
                                      stack size              (kbytes, -s) 8192
                                      cpu time               (seconds, -t) unlimited
                                      max user processes              (-u) 3879
                                      virtual memory          (kbytes, -v) unlimited
                                      file locks                      (-x) unlimited
                                      end ulimit settings
                                      Executing command: /opt/opennms/bin/runjava -r  -- -Djava.endorsed.dirs=/opt/opennms/lib/endorsed   -Dopennms.home=/opt/opennms -Dcom.sun.management.jmxremote.port=18980 -Dcom.sun.management.jmxremote.ssl=false -Dcom.sun.management.jmxremote.authenticate=false -Xmx512m -XX:+HeapDumpOnOutOfMemoryError  -DisThreadContextMapInheritable=true -XX:MaxPermSize=256m -Djava.io.tmpdir=/opt/opennms/data/tmp -jar /opt/opennms/lib/opennms_bootstrap.jar  start
                                      [DEBUG] System property 'opennms.library.jicmp' set to '/usr/lib/libjicmp.so.  Attempting to load jicmp library from this location.
                                      [INFO] Successfully loaded jicmp library.
                                      [DEBUG] System property 'opennms.library.jicmp6' set to '/usr/lib/libjicmp6.so.  Attempting to load jicmp6 library from this location.
                                      [INFO] Successfully loaded jicmp6 library.
                                      init...
                                      Apr 17, 2015 1:19:46 PM com.noelios.restlet.http.StreamClientHelper start
                                      INFO: Starting the HTTP client
                                      org.ops4j.pax.logging.pax-logging-api[org.ops4j.pax.logging.internal.Activator] : Enabling SLF4J API support.
                                      org.ops4j.pax.logging.pax-logging-api[org.ops4j.pax.logging.internal.Activator] : Enabling Jakarta Commons Logging API support.
                                      org.ops4j.pax.logging.pax-logging-api[org.ops4j.pax.logging.internal.Activator] : Enabling Log4J API support.
                                      org.ops4j.pax.logging.pax-logging-api[org.ops4j.pax.logging.internal.Activator] : Enabling Avalon Logger API support.
                                      org.ops4j.pax.logging.pax-logging-api[org.ops4j.pax.logging.internal.Activator] : Enabling JULI Logger API support.
                                      [Main] INFO com.sun.jersey.api.core.PackagesResourceConfig - Scanning for root resource and provider classes in the packages:
                                        org.codehaus.jackson.jaxrs
                                        org.opennms.web.rest
                                        org.opennms.web.rest.config
                                      [Main] INFO com.sun.jersey.spi.service.ServiceFinder - Running in a non-OSGi environment
                                      [FelixStartLevel] INFO org.apache.felix.fileinstall - Creating configuration from org.ops4j.pax.url.mvn.cfg
                                      [FelixStartLevel] INFO org.apache.felix.fileinstall - Creating configuration from org.apache.karaf.features.cfg
                                      [FelixStartLevel] INFO org.apache.felix.fileinstall - Creating configuration from org.opennms.features.vaadin.nodemaps.cfg
                                      [FelixStartLevel] INFO org.apache.felix.fileinstall - Creating configuration from jmx.acl.org.apache.karaf.config.cfg
                                      [FelixStartLevel] INFO org.apache.felix.fileinstall - Creating configuration from org.apache.felix.fileinstall-deploy.cfg
                                      [FelixStartLevel] INFO org.apache.felix.fileinstall - Creating configuration from org.apache.karaf.jaas.cfg
                                      [FelixStartLevel] INFO org.apache.felix.fileinstall - Creating configuration from org.apache.karaf.shell.cfg
                                      [FelixStartLevel] INFO org.apache.felix.fileinstall - Creating configuration from org.apache.karaf.features.repos.cfg
                                      [FelixStartLevel] INFO org.apache.felix.fileinstall - Creating configuration from jmx.acl.java.lang.Memory.cfg
                                      [FelixStartLevel] INFO org.apache.felix.fileinstall - Creating configuration from org.apache.karaf.log.cfg
                                      [FelixStartLevel] INFO org.apache.felix.fileinstall - Creating configuration from org.apache.karaf.features.obr.cfg
                                      [FelixStartLevel] INFO org.apache.felix.fileinstall - Creating configuration from jmx.acl.org.apache.karaf.bundle.cfg
                                      [FelixStartLevel] INFO org.apache.felix.fileinstall - Creating configuration from org.apache.karaf.kar.cfg
                                      [FelixStartLevel] INFO org.apache.felix.fileinstall - Creating configuration from org.apache.karaf.command.acl.osgi.cfg
                                      [FelixStartLevel] INFO org.apache.felix.fileinstall - Creating configuration from org.opennms.features.topology.plugin.ncs.cfg
                                      [FelixStartLevel] INFO org.apache.felix.fileinstall - Creating configuration from org.apache.karaf.command.acl.features.cfg
                                      [FelixStartLevel] INFO org.apache.felix.fileinstall - Creating configuration from jmx.acl.org.apache.karaf.security.jmx.cfg
                                      [FelixStartLevel] INFO org.apache.felix.fileinstall - Creating configuration from org.ops4j.pax.logging.cfg
                                      

                                      By posting the log file here, i'm hoping to see something different. I"m not accustom to this type of log file... so I am unsure what to look for.

                                      1 Reply Last reply Reply Quote 0
                                      • scottalanmillerS
                                        scottalanmiller
                                        last edited by

                                        That's where the log stops?

                                        gjacobseG 1 Reply Last reply Reply Quote 0
                                        • gjacobseG
                                          gjacobse @scottalanmiller
                                          last edited by

                                          @scottalanmiller said:

                                          That's where the log stops?

                                          Yes- unless I'm doing something incorrectly. Even the attempt last night and review of the log shows this. However since I am new to using vi and looking at logs on the Linux system using the CLI,.. I might see about downloading it locally and going from there... There is a high chance I am not seeing the complete log.

                                          1 Reply Last reply Reply Quote 0
                                          • ?
                                            A Former User
                                            last edited by A Former User

                                            You can use the cat command to view files. Tail will allow you to only see certian lines of a log file as well.

                                            1 Reply Last reply Reply Quote 2
                                            • 1
                                            • 2
                                            • 1 / 2
                                            • First post
                                              Last post