Skip to content

Windows disk space over WinRM (win_disk) ​

Reads the size and free space of one volume by drive letter from Win32_LogicalDisk over WinRM.

Transport. Under a Windows probe the device can be set to read this sensor over native WMI instead of WinRM; the query and the result are the same. The target is then set up as in the WMI setup guide instead.

What it looks like ​

The page of a win_disk sensor in the light theme

The sensor's page after a few polls, watching a Windows Server domain controller reached over WinRM. In the dark theme: the sensor's page. The form for adding it, with its parameters filled in: light, dark.

Channels ​

KeyNameUnitDefault limits
used_pctUsed%warning above 85, error above 95
free_bytesFreeBnone
total_bytesSizeBnone

Parameters ​

ParameterDefaultMeaning
volumerequiredDrive letter with a colon, such as C:. c: and C:\ mean the same volume and the same sensor.
port5985, or 5986 with httpsTCP port of the WinRM listener.
httpsfalseUse the HTTPS listener instead of HTTP with message encryption.
accept_self_signedfalseAccept an HTTPS certificate that cannot be verified. The credential has the same switch; either one is enough.

Suggested interval: 300 seconds. Credential: Windows. Discovery adds one sensor for each fixed volume (DriveType 3) that reports a size. Removable, network and optical drives are not proposed. Volumes mounted on a folder rather than a drive letter are not covered by this sensor.

On the target ​

WinRM enabled and an account set up as in the WinRM setup guide.

Failures ​

The WinRM failures every Windows sensor shares are listed in the setup guide. Specific to this sensor:

MessageMeaning
the volume X: does not exist on the target (kind config)No volume has that drive letter any more. Remove the sensor or change the letter.
the volume X: reports no size; it may be an empty drive (kind protocol)The letter exists but has no medium or no file system.

AGPL-3.0-only