Share this post
Salamon Anzel
Table of Contents
How To Monitor Windows Server with Nagios XI and SNMP
|
Salamon Anzel
![](https://library.nagios.com/wp-content/uploads/2025/02/server-room.-blue-lights.-no-smoke-07-02-2025-at-11-47-42.jpeg)
Monitoring Windows Server with Nagios XI using SNMP (Simple Network Management Protocol) provides a powerful and efficient way to track system performance, detect issues, and ensure uptime. SNMP allows Nagios XI to collect critical metrics such as CPU usage, memory utilization, disk space, and network activity from Windows servers in real time. By configuring SNMP on Windows Server and integrating it with Nagios XI, administrators can proactively monitor server health, set up alerts for potential problems, and optimize resource management. This guide will walk you through the step-by-step process of setting up SNMP on Windows Server and configuring Nagios XI to monitor essential system metrics effectively.
SNMP vs NCPA
Feature | SNMP (Simple Network Management Protocol) | NCPA (Nagios Cross-Platform Agent) |
Type | Agentless Protocol | Agent-Based |
Data Collected | Basic metrics (CPU, Memory, Disk, Network) | Detailed system metrics, logs and custom scripts |
Security | Less Secure (Uses Community strings) | More Secure (Token-based authentication and API) |
Customization | Limited (Relies on predefined OIDs) | Highly Customizable (API & scripting support) |
Real-Time Monitoring | Supports polling, but limited real-time events | Real-time data collection & active monitoring |
Best Use Case | Simple network-wide monitoring | Deep monitoring of Windows & Linux systems |
Summary:
- Use SNMP if you need basic monitoring without installing an agent.
- Use NCPA if you need in-depth Windows monitoring with strong Nagios integration.
For information on NCPA and Windows Server. See How To Monitor Windows Server with Nagios XI and NCPA
Step 1: Install SNMP on Windows Server
Method 1: Install SNMP via PowerShell
For a quicker installation, use PowerShell:
Open PowerShell as Administrator.
1. Run the following command:
Add-WindowsFeature SNMP-Service
To install SNMP Tools (optional):
Add-WindowsFeature RSAT-SNMP
2. Verify installation with:
Get-WindowsFeature | Where-Object { $_.Name -like "*SNMP*" }
Method 2: Install SNMP via Server Manager
1. Click on Start, then open Server Manager.
![How To Monitor Windows Server with Nagios XI and SNMP 1 image 44](https://library.nagios.com/wp-content/uploads/2025/02/image-44.png)
![How To Monitor Windows Server with Nagios XI and SNMP 2 image 45](https://library.nagios.com/wp-content/uploads/2025/02/image-45.png)
2. Click Add Roles and Features.
![How To Monitor Windows Server with Nagios XI and SNMP 3 image 47](https://library.nagios.com/wp-content/uploads/2025/02/image-47.png)
3. For Installation Type, choose Role-based or feature-based installation → Click Next.
![How To Monitor Windows Server with Nagios XI and SNMP 4 image 49](https://library.nagios.com/wp-content/uploads/2025/02/image-49.png)
4. For Destination Server, choose your server → Click Next.
![How To Monitor Windows Server with Nagios XI and SNMP 5 image 50](https://library.nagios.com/wp-content/uploads/2025/02/image-50.png)
5. Skip the Roles Section, Click Next (SNMP is a feature, not a role).
![How To Monitor Windows Server with Nagios XI and SNMP 6 image 53](https://library.nagios.com/wp-content/uploads/2025/02/image-53.png)
6. In Features, scroll down to SNMP Service. Check the box for SNMP Service.
(Optional) Select SNMP Tools if you want SNMP utilities for management.
![How To Monitor Windows Server with Nagios XI and SNMP 7 image 52](https://library.nagios.com/wp-content/uploads/2025/02/image-52.png)
7. Confirm Installation, click Next, then Install.
![How To Monitor Windows Server with Nagios XI and SNMP 8 image 54](https://library.nagios.com/wp-content/uploads/2025/02/image-54.png)
Wait for the installation to complete.
![How To Monitor Windows Server with Nagios XI and SNMP 9 image 55](https://library.nagios.com/wp-content/uploads/2025/02/image-55.png)
![How To Monitor Windows Server with Nagios XI and SNMP 10 image 56](https://library.nagios.com/wp-content/uploads/2025/02/image-56.png)
8. Verify Installation
Click on Start, then open the Services App.
![How To Monitor Windows Server with Nagios XI and SNMP 1 image 44](https://library.nagios.com/wp-content/uploads/2025/02/image-44.png)
![How To Monitor Windows Server with Nagios XI and SNMP 12 image 57](https://library.nagios.com/wp-content/uploads/2025/02/image-57.png)
Look for SNMP Service in the list.
![How To Monitor Windows Server with Nagios XI and SNMP 13 image 58](https://library.nagios.com/wp-content/uploads/2025/02/image-58.png)
If not running, right-click SNMP Service → Click Start.
![How To Monitor Windows Server with Nagios XI and SNMP 14 image 59](https://library.nagios.com/wp-content/uploads/2025/02/image-59.png)
Step 3: Configure Windows Server SNMP
Right-click on SNMP Service and select Properties, then the Security tab:
![How To Monitor Windows Server with Nagios XI and SNMP 15 image 63](https://library.nagios.com/wp-content/uploads/2025/02/image-63.png)
Click Add under Accepted community names
In the Community Name field, enter nagios (or your preferred community string).
Select Read-Only for minimal access (or Read-Write if needed).
Click OK to save the community string.
![How To Monitor Windows Server with Nagios XI and SNMP 16 image 67](https://library.nagios.com/wp-content/uploads/2025/02/image-67.png)
Under “Accept SNMP packets from these hosts”, click Add.
Enter the IP Address of the Nagios XI server.
Click Add to save the IP entry.
![How To Monitor Windows Server with Nagios XI and SNMP 17 image 66](https://library.nagios.com/wp-content/uploads/2025/02/image-66.png)
Click Apply, then OK
Right-click SNMP Service → Click Restart.
![How To Monitor Windows Server with Nagios XI and SNMP 18 image 68](https://library.nagios.com/wp-content/uploads/2025/02/image-68.png)
Step 4: Configure Nagios XI to Monitor Windows Server via SNMP
1. Log into Nagios XI.
2. Go to Configure → Configuration Wizards.
![How To Monitor Windows Server with Nagios XI and SNMP 19 image 7](https://library.nagios.com/wp-content/uploads/2025/02/image-7.png)
3. Select Windows SNMP
![How To Monitor Windows Server with Nagios XI and SNMP 20 image 71](https://library.nagios.com/wp-content/uploads/2025/02/image-71.png)
4. Enter Windows Server SNMP Details
IP Address: The IP of your Windows Server.
Operating System: If you’re Windows Server is higher then 2019, then select Windows Server 2019
SNMP Version: Select SNMP v2c (or v3 if configured).
Port: Leave as 161 (default).
SNMP Community String: The same string configured on Windows (e.g., nagios
or public).
![How To Monitor Windows Server with Nagios XI and SNMP 21 image 122](https://library.nagios.com/wp-content/uploads/2025/02/image-122.png)
Click Next.
5. Enter SNMP Monitoring Details
Choose the metrics you want to monitor, such as:
CPU Usage
Memory Usage
Disk Usage
Network Interface Traffic
![How To Monitor Windows Server with Nagios XI and SNMP 22 image 74](https://library.nagios.com/wp-content/uploads/2025/02/image-74-1024x827.png)
Click Next.
6. Configure the Monitoring Settings:
The default is set to monitor every 5 minutes. When there is potential problem, it will recheck every one minute up to 5 times before sending a notification.
![How To Monitor Windows Server with Nagios XI and SNMP 23 image 75](https://library.nagios.com/wp-content/uploads/2025/02/image-75.png)
Click Next
7. Configure the Notification Settings:
![How To Monitor Windows Server with Nagios XI and SNMP 24 image 118](https://library.nagios.com/wp-content/uploads/2025/02/image-118.png)
Click Next
8. Add your Windows Server to any Host Groups, Service Groups, or Parent Host
![How To Monitor Windows Server with Nagios XI and SNMP 25 image 76](https://library.nagios.com/wp-content/uploads/2025/02/image-76-1024x909.png)
Click Next.
10. Click Finish & Apply to apply configuration.
![How To Monitor Windows Server with Nagios XI and SNMP 26 image 119](https://library.nagios.com/wp-content/uploads/2025/02/image-119.png)
![How To Monitor Windows Server with Nagios XI and SNMP 27 image 120](https://library.nagios.com/wp-content/uploads/2025/02/image-120.png)
Step 4: Verify Monitoring
1. Navigate to Views > Host Detail > Select your Windows Server
![How To Monitor Windows Server with Nagios XI and SNMP 28 image 78](https://library.nagios.com/wp-content/uploads/2025/02/image-78.png)
2. Confirm your windows machine and the services you’ve selected are being monitored:
![How To Monitor Windows Server with Nagios XI and SNMP 29 image 79](https://library.nagios.com/wp-content/uploads/2025/02/image-79-1024x280.png)
3. Verify Monitoring
![How To Monitor Windows Server with Nagios XI and SNMP 30 image 127](https://library.nagios.com/wp-content/uploads/2025/02/image-127.png)
Troubleshooting
Confirm SNMP firewall port 161 is open
Confirm SNMP Firewall is open on the Windows Server by running the below command in Powershell:
Get-NetFirewallRule | Where-Object { $_.Name -eq "SNMP-In-UDP" } |
Select-Object Name, DisplayName, @{Name="LocalPort";Expression={(Get-NetFirewallPortFilter -AssociatedNetFirewallRule $_.Name).LocalPort}}, Enabled, Direction, Action
Confirm that the Enabled is True and Action is Allowed
![How To Monitor Windows Server with Nagios XI and SNMP 31 image 80](https://library.nagios.com/wp-content/uploads/2025/02/image-80-1024x129.png)
If it’s closed, you can enable it by running:
New-NetFirewallRule -DisplayName "Allow SNMP" -Direction Inbound -Protocol UDP -LocalPort 161 -Action Allow
You can also confirm in the Windows Defender Firewall with Advanced Security Setting here:
![How To Monitor Windows Server with Nagios XI and SNMP 32 image 83](https://library.nagios.com/wp-content/uploads/2025/02/image-83-1024x752.png)
Wizard detected that server does not have snmpwalk permission
![How To Monitor Windows Server with Nagios XI and SNMP 33 image 84](https://library.nagios.com/wp-content/uploads/2025/02/image-84-1024x310.png)
This alert can occur when changes are made the SNMP Service Properties on the Windows Server and a restart of the SNMP service was never performed.
Restart the SNMP Service on the Windows server to see if the issue still occurs.
Please know alerts like this won’t stop a successful configuration.
If you have additional questions or other support-related questions, please visit Nagios Support. The Nagios Support Knowledgebase is also a great support resource.