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

SNMP timeouts generate Unexpected exception warnings when using non default location

    XMLWordPrintable

Details

    Description

      I'm getting unexpected exceptions like

       

      SNMP data collection on interface 192.168.5.1 failed because of the following condition: 'Unexpected exception when collecting SNMP data for interface 192.168.5.1 at location Neuhof.'.

      and the log offers me timed out errors. I'm using v22. Not sure if it's important: the error occurs on nodes which are piped through a Minion.

       

      2018-06-01 09:37:07,778 WARN  [Collectd-Thread-1-of-50] o.o.n.c.CollectableService: Unexpected exception when collecting SNMP data for interface 192.168.5.62 at location Neuhof.
       org.opennms.netmgt.collection.api.CollectionWarning: Unexpected exception when collecting SNMP data for interface 192.168.5.62 at location Neuhof.
               at org.opennms.netmgt.collectd.SnmpCollectionSet$1.onUnknown(SnmpCollectionSet.java:420) ~[opennms-services-22.0.0.jar:?]
               at org.opennms.netmgt.collectd.SnmpCollectionSet$1.onUnknown(SnmpCollectionSet.java:391) ~[opennms-services-22.0.0.jar:?]
               at org.opennms.core.rpc.api.RpcExceptionUtils.handleException(RpcExceptionUtils.java:56) ~[org.opennms.core.ipc.rpc.api-22.0.0.jar:?]
               at org.opennms.netmgt.collectd.SnmpCollectionSet.collect(SnmpCollectionSet.java:391) ~[opennms-services-22.0.0.jar:?]
               at org.opennms.netmgt.collectd.SnmpCollector.collect(SnmpCollector.java:250) ~[opennms-services-22.0.0.jar:?]
               at org.opennms.netmgt.collection.client.rpc.CollectorClientRpcModule$1.get(CollectorClientRpcModule.java:83) ~[org.opennms.features.collection.client-rpc-22.0.0.jar:?]
               at org.opennms.netmgt.collection.client.rpc.CollectorClientRpcModule$1.get(CollectorClientRpcModule.java:77) ~[org.opennms.features.collection.client-rpc-22.0.0.jar:?]
               at java.util.concurrent.CompletableFuture$AsyncSupply.run(CompletableFuture.java:1590) ~[?:1.8.0_131]
               at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) ~[?:1.8.0_131]
               at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) ~[?:1.8.0_131]
               at java.lang.Thread.run(Thread.java:748) [?:1.8.0_131]
       Caused by: java.util.concurrent.ExecutionException: org.opennms.core.rpc.api.RemoteExecutionException: java.util.concurrent.CompletionException: org.opennms.netmgt.snmp.SnmpAgentTimeoutException: Timeout retrieving 'SnmpCollectors for 192.168.5.62' for 192.168.5.62.
        at java.util.concurrent.CompletableFuture.encodeThrowable(CompletableFuture.java:292)
        at java.util.concurrent.CompletableFuture.completeThrowable(CompletableFuture.java:308)
        at java.util.concurrent.CompletableFuture.biApply(CompletableFuture.java:1095)
        at java.util.concurrent.CompletableFuture$BiApply.tryFire(CompletableFuture.java:1070)
        at java.util.concurrent.CompletableFuture.postComplete(CompletableFuture.java:474)
        at java.util.concurrent.CompletableFuture.completeExceptionally(CompletableFuture.java:1977)
        at org.opennms.netmgt.snmp.proxy.common.SnmpProxyRpcModule$4.complete(SnmpProxyRpcModule.java:143)
        at org.opennms.netmgt.snmp.SnmpWalker.finish(SnmpWalker.java:176)
        at org.opennms.netmgt.snmp.SnmpWalker.processError(SnmpWalker.java:161)
        at org.opennms.netmgt.snmp.SnmpWalker.handleTimeout(SnmpWalker.java:151)
        at org.opennms.netmgt.snmp.snmp4j.Snmp4JWalker.access$1200(Snmp4JWalker.java:49)
        at org.opennms.netmgt.snmp.snmp4j.Snmp4JWalker$Snmp4JResponseListener.onResponse(Snmp4JWalker.java:173)
        at org.snmp4j.Snmp$PendingRequest.run(Snmp.java:1878)
        at java.util.TimerThread.mainLoop(Timer.java:555)
        at java.util.TimerThread.run(Timer.java:505)
       Caused by: org.opennms.netmgt.snmp.SnmpAgentTimeoutException: Timeout retrieving 'SnmpCollectors for 192.168.5.62' for 192.168.5.62.
        ... 6 more

       

      Some words to the setup:

      • SNMP node behind a Minion
      • SNMP config is correct on both sides and on ONMS side minion location is set
      • In requisition the node has the correct Minion location too
      • the monitored nodes are Ubiquiti Airmax devices which don't do correct SNMP. The use v1 and I have to set v2inv1 Option in opennms.properties to get it working. But it seems Minions don't like that

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              fuhrmann Marcel Fuhrmann
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated: