WMI changed naming format for wmiLogicalDisk and wmiPhysicalDisk device

Description

It appears that the WMI wmiLogicalDisk and wmiPhysicalDisk device RRD data file directories have changed in version 14 to a different naming format. For example, what was C_ is now C: and what was 0_C_ is now 0 C:

As Windows drives were referenced in version 12 differently, this causes new RRD data directories to be created and so doubles the number of drive devices in charts and breaks continuity with previous statistics.

Here is an example:

root@mccokMonitor:/var/lib/opennms/rrd/snmp/18/wmiLogicalDisk# ls -la total 48 drwxrwxr-x 10 root root 4096 Dec 22 10:33 . drwxrwxr-x 15 root root 12288 Feb 17 2014 .. drwxrwxr-x 2 root root 4096 Dec 23 2013 C_ <-- v1.12 NAME drwxrwxr-x 2 root root 4096 Dec 22 10:33 C: <-- v14 NAME drwxrwxr-x 2 root root 4096 Dec 23 2013 D_ drwxrwxr-x 2 root root 4096 Dec 22 10:33 D: drwxrwxr-x 2 root root 4096 Dec 23 2013 E_ drwxrwxr-x 2 root root 4096 Dec 22 10:33 E: drwxrwxr-x 2 root root 4096 Dec 23 2013 HarddiskVolume3 drwxrwxr-x 2 root root 4096 Dec 23 2013 _Total

and

root@mccokMonitor:/var/lib/opennms/rrd/snmp/18/wmiPhysicalDisk# ls -la total 44 drwxrwxr-x 9 root root 4096 Dec 22 10:33 . drwxrwxr-x 15 root root 12288 Feb 17 2014 .. drwxrwxr-x 2 root root 4096 Dec 22 11:10 0 C: <-- v14 NAME drwxrwxr-x 2 root root 4096 Dec 23 2013 0_C_ <-- v1.12 NAME drwxrwxr-x 2 root root 4096 Dec 22 11:10 1 D: drwxrwxr-x 2 root root 4096 Dec 23 2013 1_D_ drwxrwxr-x 2 root root 4096 Dec 22 11:10 2 E: drwxrwxr-x 2 root root 4096 Dec 23 2013 2_E_ drwxrwxr-x 2 root root 4096 Dec 22 11:10 _Total

I remember there was a specific upgrade script written for the v1.12 upgrade (NMS-6056) to handle a similar case for the SNMP interface names changing format. Could something similar be done here?

Alternatively, I could do a find to locate all directories using the v1.12 names and delete them to clean up, but this would cause all previous WMI disk stats to be lost.

Thanks,
Tim Miller Dyck

Acceptance / Success Criteria

None

Lucidchart Diagrams

Activity

Show:

Ronny Trommer January 21, 2015 at 7:08 PM

Tim Miller Dyck December 23, 2014 at 9:45 AM
Edited

This appears to be related to the changes made in WMI in https://opennms.atlassian.net/browse/NMS-6924#icft=NMS-6924, which first appeared in 14.0.1.

Tim Miller Dyck December 22, 2014 at 2:57 PM

Also, WMI graphs for WMI physical disks show X marks instead of the graph. On a guess, it appears to be a URL encoding issue related to the new space and : in physical devices names. I can view graphs for the old physical devices and their old stats (created pre-OpenNMS v14 using the pre v14-names) fine still on OpenNMS v14.

Fixed

Details

Assignee

Reporter

Labels

Affects versions

Priority

PagerDuty

Created December 22, 2014 at 11:54 AM
Updated April 7, 2015 at 3:03 PM
Resolved January 21, 2015 at 7:08 PM

Flag notifications