Back to the list of connectors

WMI - Disks

Description

This connector provides monitoring of the S.M.A.R.T.-enabled disks that are directly handled by Windows (and WBEM through the WMI service). It tries to exclude disks that are actually logical disks exposed by some RAID controllers.

Connector ID: WBEMGenDiskNT

This connector is superseded by:

Target

Typical platform: Any system

Operating system: Microsoft Windows

Prerequisites

Leverages: WMI

Technology and protocols: WMI

Examples

CLI

hws HOSTNAME -t win -f WBEMGenDiskNT --wmi -u USER

hws-config.yaml

hosts:
- host:
    hostname: <HOSTNAME> # Change with actual host name
    type: win
  selectedConnectors: [ WBEMGenDiskNT ] # Optional, to load only this connector
  wmi:
    username: <USERNAME> # Change with actual credentials
    password: <PASSWORD> # Encrypted using hws-encrypt

Connector Activation Criteria

The WMI - Disks connector will be automatically activated, and its status will be reported as OK if all the below criteria are met:

  • Operating System is Microsoft Windows
  • The Windows service WINMGMT is running
  • The WMI query below to the managed host succeeds:
    • Namespace: root\WMI
    • WQL Query: SELECT InstanceName FROM MSStorageDriver_FailurePredictStatus WHERE Active=TRUE
    • Result contains: \(^[^M]...\)\|\(^.[^P]..\)\|\(^..[^I].\)\|\(^...[^O]\) (regex)

Metrics

Type Collected Metrics Specific Attributes (Labels)
Disk Controller
  • hw.status{hw.type="disk_controller",state="present"}
  • model
  • vendor
Physical Disk
  • hw.physical_disk.size
  • hw.status{hw.type="physical_disk",state="ok|degraded|failed"}
  • hw.status{hw.type="physical_disk",state="predicted_failure"}
  • hw.status{hw.type="physical_disk",state="present"}
  • vendor
No results.