Windows network adapter traffic over WinRM (win_net)
Reads the raw counters of one network adapter (Win32_PerfRawData_Tcpip_NetworkInterface) over WinRM and reports traffic in and out, errors, discards, the link speed and how much of it is used, without SNMP. Every rate is the average between the previous poll and this one.
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 of the network adapter of a Windows Server domain controller reached over WinRM. That machine's virtual adapter reports no byte counts, so traffic and utilisation read 0 there while the packet rates move; a physical adapter reports both. 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 |
|---|---|---|---|
in_bps | Traffic in | bit/s | none |
out_bps | Traffic out | bit/s | none |
utilisation_pct | Utilisation | % | warning above 90 |
speed_bps | Link speed | bit/s | none |
in_errors_ps | Errors in | errors/s | warning above 1 |
out_errors_ps | Errors out | errors/s | warning above 1 |
in_discards_ps | Discards in | packets/s | warning above 10 |
out_discards_ps | Discards out | packets/s | warning above 10 |
in_packets_ps | Packets in | packets/s | none |
out_packets_ps | Packets out | packets/s | none |
Utilisation is the busier of the two directions as a share of the link speed, because a full-duplex link is full when either way is. It is capped at 100. It is unknown when the driver reports no link speed (the value 0, or one at the top of the range, as some virtual and tunnel adapters do). The link speed is the speed the adapter negotiated, so it changes when a cable renegotiates at 100 Mbit/s.
Parameters
| Parameter | Default | Meaning |
|---|---|---|
adapter | required | The adapter's name, either as Windows lists it (Intel(R) PRO/1000 MT Network Connection) or as the performance counters write it (Intel[R] PRO_1000 MT Network Connection). Case does not matter, and the two spellings are the same sensor. A second adapter of the same model is ... _2 in the counters, or ... #2 in the adapter list. |
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 one sensor for each adapter that is physical (PhysicalAdapter) and connected (NetConnectionStatus 2) and that the counters list. Tunnel and pseudo adapters (ISATAP, Teredo, 6to4, loopback, WAN miniports, the kernel debug adapter) are left out, and so are the virtual adapters Hyper-V creates, which Windows does not call physical. An adapter whose cable is out when discovery runs is not proposed; add it by hand.
The name comes from the counters, so it can change when a driver is reinstalled or a card is replaced. The sensor then fails with a message that lists the adapters the target has now; change the parameter to the new name.
How the rates are worked out
The formatted counter classes need two samples inside one WMI session, and every poll is a new session, so they would read 0 or the instant rate of the last second. The sensor keeps the raw counters and the time the target stamped on them from each poll, and divides the difference by the difference in time on the target's own clock, so a slow answer does not skew the rate.
The first poll after the sensor is created only takes the starting reading: its rates are unknown (first reading of X taken; rates are known from the next poll). A rate is unknown again for the interval in which:
- a counter went backwards, for example when the adapter was disabled and enabled, or
- the machine restarted (told by the target's uptime clock starting again), even if a counter has since passed its old value, or
- a 32-bit counter (errors and discards) wrapped. A wrap looks the same as a reset and is not guessed at.
The other channels of the same poll are not affected by one counter's reset, and the next poll has rates again.
Some virtual adapters do not report byte counts. The Intel adapter emulated by some hypervisors, for example, leaves the byte counters at zero while its packet counters run. Traffic then reads as 0 bit/s and the packet channels show the activity.
On the target
WinRM enabled and an account set up as in the WinRM setup guide. Reading performance counters needs membership of Performance Monitor Users as well as the WMI rights.
Failures
The WinRM failures every Windows sensor shares are listed in the setup guide. Specific to this sensor:
| Message | Meaning |
|---|---|
the network adapter X does not exist on the target (it lists ...) (kind config) | The counters have no adapter of that name. It was renamed, removed or disabled, or the name is mistyped. The message lists up to ten names the target has. |
the counters of X carry no timestamp (kind protocol) | The class answered without the time stamps a rate needs. The counter library may be damaged (lodctr /R rebuilds it). |
the WMI class does not exist (kind config) | The target has no Win32_PerfRawData_Tcpip_NetworkInterface, so its counters are not installed. |