OpenNMS
-
I'll admit - not done much command line tasks in a very long time. And only a bit of Linux. But with having a EdgeMax Router Lite, and a CloudatCost DevBox - it's high time I really put some time in learning.
First project is openNMS - Open Source Network Monitoring System.
I'm following their documentation for installing it and have to say - not having to much issue thus far.
-
@g.jacobse said:
I'll admit - not done much command line tasks in a very long time. And only a bit of Linux. But with having a EdgeMax Router Lite, and a CloudatCost DevBox - it's high time I really put some time in learning.
First project is openNMS - Open Source Network Monitoring System.
I'm following their documentation for installing it and have to say - not having to much issue thus far.
Way to go!
-
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'?
-
Make sure you run Yum update and then do
rpm --import http://yum.opennms.org/OPENNMS-GPG-KEY
to reimport the key. -
Learn vi.
-
-
@scottalanmiller said:
@thanksajdotcom said:
Learn vi.
Yeah, what's up with installing nano?
My thoughts exactly.
-
@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
-
I'm assuming vi works no problem though.
-
-
@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.
-
@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.
-
I see.. now. Been around since 1991 pronounced vee-eye
-
@thanksajdotcom
Thank you. -
It's slow - but It's running, and I'm connected.
-
Most any network monitor will be slow, without beefy hardware to back it up. They are quiet resource intensive.
-
It's on CloudatCost -
-
@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.
-
(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.
-
That's where the log stops?