Supported Platforms[1]   Connectors Directory[2]

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:

community[4] hardware[5] windows[6]

Source[7]

Target

Typical platform: Microsoft Windows[8]

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
        connectors: [ +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
  • 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
metricshub community connector hardware system
Links:
  • [1] ../supported-platforms.html
  • [2] ../connectors-directory.html
  • [3] winstoragespaces.html
  • [4] tags/community.html
  • [5] tags/hardware.html
  • [6] tags/windows.html
  • [7] https://github.com/metricshub/community-connectors/tree/main/src/main/connector/hardware/WBEMGenDiskNT/WBEMGenDiskNT.yaml
  • [8] platforms/microsoft-windows.html
Searching...
No results.