Cloud VPS from $1.98/mo · pay with Bitcoin, Ethereum, Monero, USDT or Solana · paid in crypto
DevOps

Self-hosted Windows server monitoring: Zabbix or Prometheus

Self-hosted monitoring for Windows servers: the signals that matter, how Zabbix agent 2 and Prometheus windows_exporter collect them, plus SNMP and security.

CloudSat teamNovember 18, 20267 min read
A grid of window-shaped panels lighting up in sequence while thin signal lines converge on a central dial
On this pageWhat to watch on a Windows server

Teams that move away from commercial suites such as PRTG or SolarWinds usually want the same three things back: health data for each Windows server, checks for switches and firewalls, and alerts that reach the right person. Two open-source paths cover Windows well. Zabbix is a complete monitoring product with agents, templates, a database and a web interface. Prometheus with windows_exporter is a metrics pipeline that you assemble, usually with Grafana on top. The better fit depends on which Windows signals you need, so start there.

What to watch on a Windows server

Windows fails in its own ways. A useful setup covers these signals before anything else:

Signal Why it matters Zabbix Prometheus path
Automatic services that stopped The most common silent failure: the server is up, the app is not Service discovery in the Windows templates service collector, on by default
Errors in the System and Application logs Disk, driver and crash warnings appear here first eventlog[] items, natively Needs a log shipper and a log store such as Loki
Free space per volume A full C: drive stops updates, logs and databases File system discovery logical_disk collector
CPU, memory and commit charge Commit charge near its limit means paging and failed allocations Performance counter items cpu and memory collectors
Unexpected restarts Uptime that resets without a change ticket Uptime item and trigger system collector
Pending reboot after updates Patches are not active until the restart A registry item or user parameter A scheduled script feeding the textfile collector

Add outside-in checks for what users touch: HTTP checks on IIS sites, TCP checks on SQL Server or RDP from inside your network, and certificate expiry for anything served over HTTPS.

Path 1: Zabbix with agent 2

Zabbix 8.0 LTS was released on November 5, 2026, and the previous LTS, 7.0, keeps full support until June 2027. Since version 7.0, Zabbix is licensed under AGPL-3.0. A Zabbix installation has a server, a database (PostgreSQL or MySQL/MariaDB), a PHP web frontend and an agent on each monitored host. Zabbix agent 2 is the newer agent, with plugins for services such as Microsoft SQL Server.

Install the agent with encryption

Generate a pre-shared key on the Zabbix server with openssl rand -hex 32, then install the agent silently from a Command Prompt opened as administrator, the form the Zabbix documentation uses. Put the file name of the MSI you downloaded and your own key in place of the examples:

msiexec.exe /l*v C:\zabbix-agent2-install.log /i zabbix_agent2-8.0.0-windows-amd64-openssl.msi /qn ^
  SERVER=10.10.0.5 SERVERACTIVE=10.10.0.5 HOSTNAME=win-app-01 ^
  TLSCONNECT=psk TLSACCEPT=psk TLSPSKIDENTITY=win-app-01 ^
  TLSPSKFILE="C:\Program Files\Zabbix Agent 2\psk.key" ^
  TLSPSKVALUE=PASTE_THE_64_HEX_CHARACTER_KEY_HERE

SERVER lists who may poll the agent on port 10050, and SERVERACTIVE is where the agent sends active checks, on the server's port 10051. When TLSPSKFILE and TLSPSKVALUE are both set, the installer writes the key into the file; restrict that file to administrators and the agent's service account.

Then allow only the Zabbix server through Windows Firewall, this time from PowerShell:

New-NetFirewallRule -DisplayName "Zabbix agent 2" -Direction Inbound -Protocol TCP `
  -LocalPort 10050 -RemoteAddress 10.10.0.5 -Action Allow

In the frontend, create the host with the same host name, enter the PSK identity and value on its encryption tab, and link the Windows template for Zabbix agent (or its active variant). Discovery then creates items and triggers for services, volumes and network interfaces. Event logs need active checks with the log value type, for example:

eventlog[System,,"Error|Critical",,,,skip]

The skip mode ignores entries written before the item existed, so a new item does not flood you with old errors.

Path 2: Prometheus with windows_exporter

windows_exporter is an MIT-licensed exporter maintained by the Prometheus community. It listens on port 9182 and enables the cpu, logical_disk, memory, net, os, physical_disk, service and system collectors by default. The MSI accepts the options as properties, and REMOTE_ADDR limits its firewall exception to your Prometheus server:

msiexec /i windows_exporter.msi --% ENABLED_COLLECTORS=[defaults],textfile TEXTFILE_DIRS=C:\custom_metrics REMOTE_ADDR=10.10.0.5

The --% token tells PowerShell to pass the rest of the line to msiexec unchanged. Add the server to a Prometheus job:

scrape_configs:
  - job_name: windows
    static_configs:
      - targets: ["10.10.0.21:9182"]
        labels:
          instance: win-app-01

Alerts are PromQL expressions. Two that cover the first rows of the table above:

# a service you care about is not running (check the exact name label on /metrics)
windows_service_state{name="w3svc", state="running"} == 0

# less than 10% free on any volume
windows_logical_disk_free_bytes / windows_logical_disk_size_bytes < 0.10

Fill the gaps with the textfile collector

Anything the collectors do not cover can come from a script. A scheduled task that runs this every 15 minutes publishes a pending-reboot flag, based on one common registry indicator:

$dir = 'C:\custom_metrics'
$pending = Test-Path 'HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\WindowsUpdate\Auto Update\RebootRequired'
"windows_reboot_required $([int]$pending)" | Set-Content -Encoding ascii "$dir\reboot.prom.tmp"
Move-Item -Force "$dir\reboot.prom.tmp" "$dir\reboot.prom"

Writing to a temporary file and renaming it prevents the exporter from reading a half-written file. Event logs remain the real gap on this path: windows_exporter does not read them, so ship them to Loki with an agent such as Grafana Alloy, which has a Windows event log source, and alert on them there.

Switches, firewalls and other SNMP devices

Network gear speaks SNMP, and both paths handle it. Zabbix ships SNMP templates for many vendors. Prometheus uses snmp_exporter, whose generator turns vendor MIBs into a scrape configuration. For a network that is mostly switches and routers, LibreNMS, a GPL-licensed tool built around SNMP auto-discovery, is also worth a look.

Use SNMPv3 with authentication and encryption wherever devices support it; v2c community strings travel in clear text. On Windows itself, prefer the agent: Microsoft has long marked the Windows SNMP service as deprecated.

Keep the monitoring plane private

Monitoring agents answer questions about your servers, so treat their ports as sensitive:

  • Allow 10050 (Zabbix agent) or 9182 (windows_exporter) from the monitoring server only, never from the internet.
  • Encrypt Zabbix traffic with PSK or certificates, and give windows_exporter TLS and basic authentication through its web configuration file if traffic crosses an untrusted network.
  • Keep the monitoring server and its web interface on a private network or VPN, with MFA on the login.
  • Watch the watcher: an external uptime check on the monitoring server's web interface tells you when alerts have gone quiet for the wrong reason.

The monitoring server itself runs on Linux in both paths. On CloudSat, Zabbix deploys as a one-click app, and a Zabbix proxy placed in each region collects locally and forwards to the central server.

Choosing between them

  • Pick Zabbix when Windows servers and network devices are most of what you run, when event logs matter, and when your team prefers templates and configuration in a web interface. It is one product with one database to back up.
  • Pick Prometheus when you already run Prometheus and Grafana for Linux hosts or containers, want alert rules as code in Git, and are willing to add Loki for logs.
  • Mix them if you need both: Grafana has a Zabbix data source plugin, so one set of dashboards can show both systems.

For the Prometheus side of the stack, the Prometheus and Grafana explainer covers sizing and failure modes, and the Docker Compose walkthrough builds a working server.

FAQ

Can I monitor Windows without installing an agent?

Partly. Ping, TCP port and HTTP checks need nothing on the server. Services, volumes, performance counters and event logs need an agent or exporter running locally, which is also more secure than opening remote WMI access to the monitoring server.

What about SQL Server and IIS?

Both paths cover them. Zabbix has templates for IIS and for Microsoft SQL Server through an agent 2 plugin, and windows_exporter has iis and mssql collectors that you enable alongside the defaults.

Do these tools replace network maps and scheduled reports?

Zabbix includes network maps and scheduled PDF reports. With Prometheus, Grafana dashboards take that role, and reports come from Grafana's own features or from exporting panels.

Run it on CloudSat. Cloud VPS on AMD EPYC and NVMe from $1.98/mo in 13 regions, delivered in under 5 minutes and paid in crypto. See plans or deploy a server.