Monitor a Windows server

Monitor a Windows server

Resources monitors Windows Server 2019 and 2022 through Windows' native OpenSSH Server. No agent is installed: the panel connects over SSH and runs a PowerShell 5.1 collector, which already ships with the system. When it connects, the panel detects on its own whether the server is Linux or Windows.

Requirements

  • Windows Server 2019 or 2022, with PowerShell access as administrator.
  • The SSH port (22 by default) reachable from the panel, over the internet or through a contracted private network.
  • A server slot available in the plan (see pricing). Windows is included on every plan with Resources, at no extra cost.

Step by step installation

  1. On the server, open PowerShell as Administrator and enable OpenSSH Server (Windows Server 2019 or later). It includes the firewall rule for port 22:

    Add-WindowsCapability -Online -Name OpenSSH.Server~~~~0.0.1.0
    Set-Service -Name sshd -StartupType Automatic
    Start-Service sshd
    New-NetFirewallRule -Name sshd -DisplayName "OpenSSH Server (sshd)" -Enabled True -Direction Inbound -Protocol TCP -Action Allow -LocalPort 22
    
  2. In the panel, Resources menu, Add server: enter the name, the IP or domain, the SSH port (22 by default), a user in the Administrators group (for example Administrator) and its password. The password is used only once and is not stored. The panel adds its own key in C:\ProgramData\ssh\administrators_authorized_keys, readable only by Administrators and SYSTEM, and checks that it works.

  3. Allow port 22 in the Windows firewall and in your hosting provider's firewall. It is advisable to limit it to the panel's IP addresses.
  4. The panel detects on its own that it is Windows and shows the first readings.

There are no keys to copy and no permissions to adjust by hand.

Source IP restriction

Just like on Linux, the key the panel adds only works from the monitoring IP. It is also recommended to limit the port 22 firewall rule to those same addresses.

How it is read

No agent is installed. On every reading the panel sends a read-only PowerShell script over the SSH connection and receives the data.

What is measured

  • CPU, RAM and pagefile.
  • Volumes (usage and disk-full forecast) and disk I/O.
  • Network, connections and listening ports.
  • Known processes as services: IIS, SQL Server, MySQL, PostgreSQL, MongoDB and others.
  • Hardware and installed software inventory (Windows registry). See inventory.

Windows services and the stopped-service alert

The panel shows a summary of the automatic services that are running and the list of those that are stopped. When an automatic service that was running stops, an alert is sent. Like the other Resources alerts, it needs confirmation over consecutive readings, can be muted, acknowledged (ack), respects maintenance windows and is escalated by the escalation policies. See alerts and thresholds.

Not available on Windows

Removing a server

Once the server is deleted in the panel it is no longer read. On the server you can remove the panel key line from administrators_authorized_keys and, if you no longer use it, disable OpenSSH Server.

If it does not connect

Check that sshd is running, that the Windows firewall and your provider's firewall allow port 22 from the panel addresses, and that the user belongs to the Administrators group and has the right password. See troubleshooting.