Windows memory over WinRM (win_memory)
Reads physical memory and the commit charge from Win32_OperatingSystem over WinRM.
Commit is the memory Windows has promised to programs, backed by RAM plus the page file. When it reaches the commit limit, programs fail to allocate memory even if physical memory still looks free, so it is watched as well as physical memory.
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 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
| Key | Name | Unit | Default limits |
|---|---|---|---|
used_pct | Physical memory used | % | warning above 90, error above 97 |
free_bytes | Physical memory free | B | none |
total_bytes | Physical memory total | B | none |
commit_pct | Commit charge | % | warning above 90, error above 97 |
commit_bytes | Committed | B | none |
commit_limit_bytes | Commit limit | B | none |
Parameters
| Parameter | Default | Meaning |
|---|---|---|
port | 5985, or 5986 with https | TCP port of the WinRM listener. |
https | false | Use the HTTPS listener instead of HTTP with message encryption. |
accept_self_signed | false | Accept an HTTPS certificate that cannot be verified. The credential has the same switch; either one is enough. |
Suggested interval: 60 seconds. Credential: Windows. Discovery adds it to every Windows host.
On the target
WinRM enabled and an account set up as in the WinRM setup guide. The query is SELECT TotalVisibleMemorySize,FreePhysicalMemory,TotalVirtualMemorySize,FreeVirtualMemory FROM Win32_OperatingSystem; the figures arrive in kilobytes and are reported in bytes.
Failures
The WinRM failures every Windows sensor shares are listed in the setup guide. Specific to this sensor:
| Message | Meaning |
|---|---|
WMI returned no operating system object (kind protocol) | WMI answered the query with nothing. The WMI repository on the target may be damaged. |
Win32_OperatingSystem has no physical memory figures (kind protocol) | The object came back without the memory properties. |