Ticket #3376 (closed defect: Fixed)

Opened 7 months ago

Last modified 3 months ago

Patch to allow more disks to map in UCDHardDiskMap

Reported by: zenoss Owned by: ecn
Priority: 2 - High Milestone: zenoss-2.3
Component: DataCollector Version: 2.2.0
Keywords: Cc:
Community Patch Attached: Deployed @ Customer:
Installer: Maintenance Target:
Specific ZenPack: Maintenance Status:
Documentation Note?: Not required Regression:

Description

UCDHardDiskMap currently allows disks represented as /dev/hd[a-z] or /dev/sd[a-z], however it is possible to have disks with double identifier characters, e.g /dev/sdaa. Also c0d0 type disks are not mapped.

Please review and apply this patch to alter the regex used for mapping disks in UCDHardDiskMap.

Applies to file: $ZENHOME/Products/DataCollector/plugins/zenoss/snmp/UCDHardDiskMap.py

Attachments

UCDHardDiskMap.py.patch (0.5 kB) - added by zenoss 7 months ago.
Patch to allow additonal disks: [sh]daa, c0d0, c0t0d0s2 etc.

Change History

Changed 7 months ago by zenoss

Altered regex to include Solaris type disks (e.g: c0t0d0s2)

Changed 7 months ago by zenoss

Patch to allow additonal disks: [sh]daa, c0d0, c0t0d0s2 etc.

Changed 7 months ago by ecn

  • status changed from new to closed
  • resolution set to fixed

Changed 6 months ago by zenoss

  • status changed from closed to reopened
  • resolution fixed deleted

This fix has an additional ' in, the line:

DISK_PATTERN = '[hs]d[a-z]{1,2}$|'\/c[0-9]{1,2}(t[0-9]{1,2}){0,1}d[0-9]{1,2}(s2){0,1}$'

Should read:

DISK_PATTERN = '[hs]d[a-z]{1,2}$|\/c[0-9]{1,2}(t[0-9]{1,2}){0,1}d[0-9]{1,2}(s2){0,1}$'

Changed 6 months ago by edahl

We really need a zProperty for this like we have for filesystems except maybe its not ignoring them but collecting them?

Changed 4 months ago by bbibeault

  • reviewed set to 0
  • milestone set to zenoss-2.3

Changed 3 months ago by bbibeault

  • status changed from reopened to closed
  • resolution set to fixed
  • reviewed changed from 0 to 1

There is now a zProperty to control this. Search for UCDHardDiskMap.

Note: See TracTickets for help on using tickets.