Back to the list of connectors[1]

WMI - Disks

Description

This connector discovers and monitors S.M.A.R.T.-enabled disks that are directly handled by Windows through the WMI service.

This connector is superseded by:

Target

Typical platform: Any system

Operating system: Microsoft Windows

Prerequisites

Leverages: WMI

Technology and protocols: WMI/WinRM

Examples

CLI

metricshub HOSTNAME -t win -c +WBEMGenDiskNT --wmi -u USER

metricshub.yaml

resourceGroups:
  <RESOURCE_GROUP>:
    resources:
      <HOSTNAME-ID>:
        attributes:
          host.name: <HOSTNAME> # Change with actual host name
          host.type: win
        selectConnectors: [ WBEMGenDiskNT ] # Optional, to load only this connector
        protocols:
          wmi:
            username: <USERNAME> # Change with actual credentials
            password: <PASSWORD> # Encrypted using metricshub-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
disk_controller
  • hw.status{hw.type="disk_controller", state="present"}
  • controller_number
  • hw.parent.type
  • id
  • model
  • name
  • vendor
physical_disk
  • hw.physical_disk.size
  • hw.status{hw.type="physical_disk", state="degraded|failed|ok"}
  • hw.status{hw.type="physical_disk", state="predicted_failure"}
  • hw.status{hw.type="physical_disk", state="present"}
  • hw.parent.id
  • hw.parent.type
  • id
  • name
  • vendor
No results.