WS-Man collection with resource-type only store last resource

Description

If WS-Man datacollection group with resource-type is used, only the last resource is stored.
Please see attached collect.log.

Used the following wsman collection group and resource type:

<resourceType name="WinPagefileIndex" label="Pagefile - WS" resourceLabel="Pagefile (${PagefileName})">
<persistenceSelectorStrategy class="org.opennms.netmgt.collection.support.PersistAllSelectorStrategy"/>
<storageStrategy class="org.opennms.netmgt.dao.support.SiblingColumnStorageStrategy">
<parameter key="sibling-column-name" value="PagefileName" />
<parameter key="replace-all" value="s/\s//" />
<parameter key="replace-all" value="s/:/_/" />
<parameter key="replace-all" value="s/\./_/" />
<parameter key="replace-all" value="s/
/_/" />
</storageStrategy>
</resourceType>

<group name="windows-pagefile"
resource-uri="http://schemas.microsoft.com/wbem/wsman/1/wmi/root/cimv2/Win32_PageFileUsage"
resource-type="WinPagefileIndex">
<attrib name="Name" alias="PagefileName" type="String"/>
<attrib name="AllocatedBaseSize" alias="PagefileAllocSize" type="Gauge"/>
<attrib name="CurrentUsage" alias="PagefileCurUsage" type="Gauge"/>
</group>

Acceptance / Success Criteria

None

Attachments

1

Lucidchart Diagrams

Activity

Seth Leger December 9, 2016 at 8:00 PM

Merged PR, marking as fixed.

Dino Yancey December 2, 2016 at 6:25 PM

Just some feedback - I cherry picked this commit into my local clone of 18.0.2, recompiled and it perfectly addresses the issue in my environment. Thanks!

Jesse White December 2, 2016 at 1:49 PM

Fixed

Details

Assignee

Reporter

Components

Sprint

Affects versions

Priority

PagerDuty

Created October 25, 2016 at 6:05 AM
Updated December 10, 2016 at 12:57 AM
Resolved December 9, 2016 at 8:00 PM