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

NPE when persisting data with Newts

    XMLWordPrintable

Details

    Description

      A user reported the following on the discuss list:

      we are monitoring haproxy like discribed at https://www.opennms.org/wiki/HAProxy_Monitoring_How-To Opennms is v.17.0.0

      If we use rrd everything works fine and collection of the values ist working.

      Now trying Newts, we get the following error in collectd.log, when opennms is polling snmp values at the haproxy:

      2016-01-28 08:24:24,029 ERROR [Collectd-Thread-1-of-50] o.o.n.c.CollectableService: An undeclared throwable was caught during data collection for interface 218/XXX.XXX.XXX.XXX/SNMP org.opennms.netmgt.collection.api.CollectionException: An undeclared throwable was caught during data collection for interface 218/XXX.XXX.XXX.XXX/SNMP at org.opennms.netmgt.collectd.CollectableService.doCollection(CollectableService.java:427) ~[opennms-services-17.0.0.jar:?] 
      at org.opennms.netmgt.collectd.CollectableService.doRun(CollectableService.java:337) [opennms-services-17.0.0.jar:?] 
      at org.opennms.netmgt.collectd.CollectableService.access$200(CollectableService.java:69) [opennms-services-17.0.0.jar:?] 
      at org.opennms.netmgt.collectd.CollectableService$1.run(CollectableService.java:315) [opennms-services-17.0.0.jar:?] at org.opennms.core.logging.Logging.withPrefix(Logging.java:70) [org.opennms.core.logging-17.0.0.jar:?] 
      at org.opennms.netmgt.collectd.CollectableService.run(CollectableService.java:304) [opennms-services-17.0.0.jar:?] 
      at org.opennms.netmgt.scheduler.LegacyScheduler$1.run(LegacyScheduler.java:209) [opennms-services-17.0.0.jar:?] 
      at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) [?:1.8.0_45] 
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) [?:1.8.0_45] 
      at org.opennms.core.concurrent.LogPreservingThreadFactory$3.run(LogPreservingThreadFactory.java:124) [opennms-util-17.0.0.jar:?] 
      at java.lang.Thread.run(Thread.java:745) [?:1.8.0_45] Caused by: java.lang.NullPointerException 
      at org.opennms.newts.api.ValueType.compose(ValueType.java:78) ~[newts-api-1.3.2.jar:?] 
      at org.opennms.netmgt.collection.persistence.newts.NewtsPersistOperationBuilder.getSamples(NewtsPersistOperationBuilder.java:135) ~[org.opennms.features.newts-17.0.0.jar:?] 
      at org.opennms.netmgt.collection.persistence.newts.NewtsPersistOperationBuilder.commit(NewtsPersistOperationBuilder.java:109) ~[org.opennms.features.newts-17.0.0.jar:?] 
      at org.opennms.netmgt.collection.api.AbstractPersister.commitBuilder(AbstractPersister.java:87) ~[org.opennms.features.collection.api-17.0.0.jar:?] 
      at org.opennms.netmgt.collection.persistence.newts.NewtsPersister.completeGroup(NewtsPersister.java:86) ~[org.opennms.features.newts-17.0.0.jar:?] 
      at org.opennms.netmgt.collection.api.AttributeGroup.visit(AttributeGroup.java:114) ~[org.opennms.features.collection.api-17.0.0.jar:?] 
      at org.opennms.netmgt.collectd.SnmpCollectionResource.visit(SnmpCollectionResource.java:152) ~[opennms-services-17.0.0.jar:?] 
      t org.opennms.netmgt.collectd.SnmpCollectionSet.visit(SnmpCollectionSet.java:309) ~[opennms-services-17.0.0.jar:?] 
      at org.opennms.netmgt.collectd.CollectableService.doCollection(CollectableService.java:400) ~[opennms-services-17.0.0.jar:?] ... 10 more 
      

      Attachments

        Activity

          People

            j-white Jesse White
            j-white Jesse White
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: