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

WS-Man collection fail with unknown reason code 2

    Details

    • Sprint:
      Horizon - Nov 30th, Horizon - Dec 7th

      Description

      Try to add a new Datacollection for WS-Man for example total PercentUsage of the Pagingfile.

      The normal windows-os group works but no chance we get this one working.
      Definition is wsman-datacollection/microsoft-windows.xml:

      <group name="windows-pagefile"
      resource-uri="http://schemas.microsoft.com/wbem/wsman/1/wmi/root/cimv2/*"
      dialect="http://schemas.microsoft.com/wbem/wsman/1/WQL"
      filter="select PercentUsage from Win32_PerfFormattedData_PerfOS_PagingFile where Name ='_Total'"
      resource-type="node">
      <attrib name="PercentUsage" alias="PageFilePctUsage" type="Gauge"/>
      </group>

      Access to PerformanceCounters are granted and verified - but we get the following error in collectd.log:

      2016-10-21 15:58:29,819 DEBUG [Collectd-Thread-2-of-50] o.o.n.c.a.AbstractPersister: Persisting Attribute[freeVirtMem:3381276.0]
      2016-10-21 15:58:29,819 DEBUG [Collectd-Thread-2-of-50] o.o.n.c.a.AbstractPersister: Storing attribute Attribute[freeVirtMem:3381276.0]
      2016-10-21 15:58:29,819 DEBUG [Collectd-Thread-2-of-50] o.o.n.r.r.MultithreadedJniRrdStrategy: createDefinition: filename [/var/lib/opennms/rrd/snmp/3/freeVirtMem.rrd] already exists returning null as definition
      2016-10-21 15:58:29,819 DEBUG [Collectd-Thread-2-of-50] o.o.n.r.r.MultithreadedJniRrdStrategy: createRRD: skipping RRD file
      2016-10-21 15:58:29,820 INFO [Collectd-Thread-2-of-50] o.o.n.c.p.r.RrdPersistOperationBuilder: updateRRD: updating RRD file /var/lib/opennms/rrd/snmp/3/freeVirtMem.rrd with values '1477058310:3381276'
      2016-10-21 15:58:29,820 DEBUG [Collectd-Thread-2-of-50] o.o.n.c.p.r.RrdPersistOperationBuilder: updateRRD: RRD update command completed.
      2016-10-21 15:58:29,822 WARN [Collectd-Thread-2-of-50] o.o.n.c.CollectableService: run: failed collection for 3/10.10.10.141/WS-Man/default SNMP collection
      2016-10-21 15:58:29,823 ERROR [Collectd-Thread-2-of-50] o.o.n.c.CollectableService: Collection failed for an unknown reason (code 2. Please review previous logs for this thread for details. You can also open up an enhancement bug report (include your logs) to request that failure messages are logged for this type of error.
      org.opennms.netmgt.collectd.CollectionFailed: Collection failed for an unknown reason (code 2. Please review previous logs for this thread for details. You can also open up an enhancement bug report (include your logs) to request that failure messages are logged for this type of error.
      at org.opennms.netmgt.collectd.CollectableService.doCollection(CollectableService.java:419) ~[opennms-services-18.0.2.jar:?]
      at org.opennms.netmgt.collectd.CollectableService.doRun(CollectableService.java:337) [opennms-services-18.0.2.jar:?]
      at org.opennms.netmgt.collectd.CollectableService.access$200(CollectableService.java:69) [opennms-services-18.0.2.jar:?]
      at org.opennms.netmgt.collectd.CollectableService$1.run(CollectableService.java:315) [opennms-services-18.0.2.jar:?]
      at org.opennms.core.logging.Logging.withPrefix(Logging.java:70) [org.opennms.core.logging-18.0.2.jar:?]
      at org.opennms.netmgt.collectd.CollectableService.run(CollectableService.java:304) [opennms-services-18.0.2.jar:?]
      at org.opennms.netmgt.scheduler.LegacyScheduler$1.run(LegacyScheduler.java:209) [opennms-services-18.0.2.jar:?]
      at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) [?:1.8.0_60]
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) [?:1.8.0_60]
      at org.opennms.core.concurrent.LogPreservingThreadFactory$3.run(LogPreservingThreadFactory.java:124) [opennms-util-18.0.2.jar:?]
      at java.lang.Thread.run(Thread.java:745) [?:1.8.0_60]
      2016-10-21 15:58:29,832 DEBUG [Collectd-Thread-2-of-50] o.o.n.c.CollectableService: run: change in collection status, generating event.
      2016-10-21 15:58:29,842 DEBUG [Collectd-Thread-2-of-50] o.o.n.e.EventIpcManagerDefaultImpl: sending: org.opennms.netmgt.xml.event.Log@763b0137[header=<null>,events=org.opennms.netmgt.xml.event.Events@1bd86ce5[event=[org.opennms.netmgt.xml.event.Event@3462c653[uuid=<null>,dbid=<null>,dist-poller=<null>,creation-time=Fri Oct 21 15:58:29 CEST 2016,master-station=<null>,mask=<null>,uei=uei.opennms.org/nodes/dataCollectionFailed,source=OpenNMS.Collectd,nodeid=3,time=Fri Oct 21 15:58:29 CEST 2016,host=nms-tmp-01,interface=10.10.10.141,snmphost=<null>,service=WS-Man,snmp=<null>,parms=[org.opennms.netmgt.xml.event.Parm@fcdcfaa[parmName=reason,value=org.opennms.netmgt.xml.event.Value@215155dd[content=Collection failed for an unknown reason (code 2. Please review previous logs for this thread for details. You can also open up an enhancement bug report (include your logs) to request that failure messages are logged for this type of error.,type=string,encoding=text]]],descr=<null>,logmsg=<null>,severity=<null>,pathoutage=<null>,correlation=<null>,operinstruct=<null>,autoaction=[],operaction=[],autoacknowledge=<null>,loggroup=[],tticket=<null>,forward=[],script=[],ifIndex=<null>,ifAlias=<null>,mouseovertext=<null>,alarm-data=<null>]]]]
      2016-10-21 15:58:29,850 DEBUG [Collectd-Thread-2-of-50] o.o.n.c.CollectableService: sendEvent: Sent event uei.opennms.org/nodes/dataCollectionFailed for 3/10.10.10.141/WS-Man
      2016-10-21 15:58:29,851 DEBUG [Collectd-Thread-2-of-50] o.o.n.s.LegacyScheduler: schedule: Adding ready runnable CollectableService for service 3:/10.10.10.141:WS-Man (ready in 299999ms) at interval 300000
      2016-10-21 15:58:29,851 DEBUG [Collectd-Thread-2-of-50] o.o.n.s.LegacyScheduler: schedule: interval queue did not exist, a new one has been created
      2016-10-21 15:58:29,851 DEBUG [Collectd-Thread-2-of-50] o.o.n.s.LegacyScheduler: schedule: queue element added, calling notify all since none were scheduled

        Attachments

          Activity

            People

            • Assignee:
              j-white Jesse White
              Reporter:
              mlaercher Martin Laercher
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: