Uploaded image for project: 'OpenNMS'
  1. OpenNMS
  2. NMS-8882

Unable to ping nodes with Minion due to missing class org.opennms.netmgt.icmp.jni6.Jni6Pinger

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved (View Workflow)
    • Priority: Blocker
    • Resolution: Fixed
    • Affects Version/s: 19.0.0
    • Fix Version/s: 19.0.0
    • Component/s: Minion
    • Security Level: Default (Default Security Scheme)
    • Labels:
    • Sprint:
      Horizon - Nov 9th

      Description

      I've installed Minion from repository and tried to poll nodes in a remote network called "branch" through the Minion. All nodes associated with the "branch" location in the 172.31/16 network are down, the Minion itself is running, heartbeat is working properly and also SNMP data collection through the minion works. Checking the Karaf log with log:tail shows the following exception:

      2016-11-10 11:43:59,514 | ERROR | ol-124-thread-13 | AbstractPingerFactory            | 247 - org.opennms.opennms-icmp-api - 19.0.0.SNAPSHOT | Unable to find class named org.opennms.netmgt.icmp.jni6.Jni6Pinger
      java.lang.IllegalArgumentException: Unable to find class named org.opennms.netmgt.icmp.jni6.Jni6Pinger
          at org.opennms.netmgt.icmp.AbstractPingerFactory.getInstance(AbstractPingerFactory.java:64)[247:org.opennms.opennms-icmp-api:19.0.0.SNAPSHOT]
          at Proxy8982ccb4_9f03_445e_8766_6a0dd2f7c297.getInstance(Unknown Source)[:]
          at org.opennms.netmgt.poller.monitors.IcmpMonitor.poll(IcmpMonitor.java:94)[230:org.opennms.features.poller.monitors.core:19.0.0.SNAPSHOT]
          at Proxyf995896b_36f0_4ed0_a98f_626533edfe2e.poll(Unknown Source)[:]
          at org.opennms.netmgt.poller.client.rpc.PollerClientRpcModule$1.get(PollerClientRpcModule.java:77)[229:org.opennms.features.poller.client-rpc:19.0.0.SNAPSHOT]
          at org.opennms.netmgt.poller.client.rpc.PollerClientRpcModule$1.get(PollerClientRpcModule.java:71)[229:org.opennms.features.poller.client-rpc:19.0.0.SNAPSHOT]
          at java.util.concurrent.CompletableFuture$AsyncSupply.run(CompletableFuture.java:1590)[:1.8.0_112]
          at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)[:1.8.0_112]
          at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)[:1.8.0_112]
          at java.lang.Thread.run(Thread.java:745)[:1.8.0_112]
      Caused by: java.lang.IllegalStateException: Unable to locate pinger class org.opennms.netmgt.icmp.jni6.Jni6Pinger
          at org.opennms.netmgt.icmp.PingerFactoryImpl.getPingerClass(PingerFactoryImpl.java:19)[247:org.opennms.opennms-icmp-api:19.0.0.SNAPSHOT]
          at org.opennms.netmgt.icmp.AbstractPingerFactory.getInstance(AbstractPingerFactory.java:62)[247:org.opennms.opennms-icmp-api:19.0.0.SNAPSHOT]
          ... 9 more
      

      Verifying which features are installed in Karaf with features:list | grep minion:

      minion-core                             | 19.0.0.SNAPSHOT  | x        | Started     | minion-core-features    | Minion :: Core
      minion-core-shell                       | 19.0.0.SNAPSHOT  | x        | Started     | minion-core-features    | Minion :: Core :: Shell
      minion-core-api                         | 19.0.0.SNAPSHOT  |          | Started     | minion-19.0.0-SNAPSHOT  | OpenNMS :: Minion :: Core :: API
      opennms-dao-minion                      | 19.0.0.SNAPSHOT  |          | Started     | minion-19.0.0-SNAPSHOT  | OpenNMS :: DAO :: Minion
      opennms-discoverer                      | 19.0.0.SNAPSHOT  | x        | Started     | minion-19.0.0-SNAPSHOT  | OpenNMS :: Discovery :: Discoverer
      opennms-syslogd-handler-minion          | 19.0.0.SNAPSHOT  | x        | Started     | minion-19.0.0-SNAPSHOT  | OpenNMS :: Syslogd :: Handler :: Minion
      opennms-syslogd-handler-kafka           | 19.0.0.SNAPSHOT  |          | Uninstalled | minion-19.0.0-SNAPSHOT  | OpenNMS :: Syslogd :: Handler :: Kafka
      opennms-trapd-handler-minion            | 19.0.0.SNAPSHOT  | x        | Started     | minion-19.0.0-SNAPSHOT  | OpenNMS :: Trapd :: Handler :: Minion
      opennms-trapd-handler-kafka             | 19.0.0.SNAPSHOT  |          | Uninstalled | minion-19.0.0-SNAPSHOT  | OpenNMS :: Trapd :: Handler :: Kafka
      minion-heartbeat-producer               | 19.0.0.SNAPSHOT  | x        | Started     | minion-19.0.0-SNAPSHOT  | OpenNMS :: Minion :: Heartbeat Producer
      minion-rpc-server                       | 19.0.0.SNAPSHOT  |          | Started     | minion-19.0.0-SNAPSHOT  | OpenNMS :: Minion :: RPC Server
      minion-snmp-proxy                       | 19.0.0.SNAPSHOT  | x        | Started     | minion-19.0.0-SNAPSHOT  | OpenNMS :: Minion :: SNMP Proxy
      minion-icmp-proxy                       | 19.0.0.SNAPSHOT  | x        | Started     | minion-19.0.0-SNAPSHOT  | OpenNMS :: Minion :: Icmp Proxy
      minion-provisiond-detectors             | 19.0.0.SNAPSHOT  | x        | Started     | minion-19.0.0-SNAPSHOT  | Minion :: Provisond :: Detectors
      minion-shell                            | 19.0.0.SNAPSHOT  | x        | Started     | minion-19.0.0-SNAPSHOT  | Minion :: Shell
      minion-shell-provision                  | 19.0.0.SNAPSHOT  |          | Started     | minion-19.0.0-SNAPSHOT  | Minion :: Shell :: Provision
      minion-shell-poller                     | 19.0.0.SNAPSHOT  |          | Started     | minion-19.0.0-SNAPSHOT  | Minion :: Shell :: Poller
      minion-poller                           | 19.0.0.SNAPSHOT  | x        | Started     | minion-19.0.0-SNAPSHOT  | Minion :: Poller
      minion-core-api                         | 19.0.0.SNAPSHOT  |          | Started     | opennms-19.0.0-SNAPSHOT | OpenNMS :: Minion :: Core :: API
      

      Verify if it's possible to ping the localhost IP and the network IP from OpenNMS Karaf for the remote location "branch" with

      opennms> ping:ping -l branch 127.0.0.1
      PING: /127.0.0.1 2.692 ms
      
      opennms> ping:ping -l branch 172.31.0.35
      PING: /172.31.0.35 0.525 ms
      

      Try to poll the service with the ICMP test class using:

      opennms> poller:poll -l branch org.opennms.netmgt.poller.monitors.IcmpMonitor 172.31.0.35
      Service is Down on 172.31.0.35 using org.opennms.netmgt.poller.monitors.IcmpMonitor
          Reason: Unable to find class named org.opennms.netmgt.icmp.jni6.Jni6Pinger
      

      The Jni6Pinger class seems not to be available. The version I've installed the minion is:

      yum info opennms-minion
      Loaded plugins: fastestmirror, ovl
      Loading mirror speeds from cached hostfile
       * base: mirror.cc.columbia.edu
       * extras: mirror.rackspace.com
       * updates: mirror.rackspace.com
      Installed Packages
      Name        : opennms-minion
      Arch        : noarch
      Version     : 19.0.0
      Release     : 0.20161109.onms.develop.761
      Size        : 0.0
      Repo        : installed
      From repo   : opennms-repo-develop-common
      Summary     : OpenNMS Minion
      URL         : http://www.opennms.org/wiki/Minion
      License     : LGPL/AGPL
      Description : OpenNMS Minion is a container infrastructure for distributed, scalable network
                  : management and monitoring.
                  :
                  : http://www.opennms.org/wiki/Minion
                  :
                  : This is an OpenNMS build from the develop branch.  For a complete log, see:
                  : https://github.com/OpenNMS/opennms/commit/e876dc366c65f12ad73d3a36d1f10a3dab855c34
      

        Attachments

          Activity

            People

            • Assignee:
              j-white Jesse White
              Reporter:
              indigo Ronny Trommer
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: