<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	xmlns:media="http://search.yahoo.com/mrss/" >

<channel>
	<title>Windows Server 2019 &#8211; Nagios Library</title>
	<atom:link href="https://library.nagios.com/tag/windows-server-2019/feed/" rel="self" type="application/rss+xml" />
	<link>https://library.nagios.com</link>
	<description>Complete Nagios monitoring resources and documentation</description>
	<lastBuildDate>Mon, 16 Feb 2026 21:55:27 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.9.4</generator>

<image>
	<url>https://library.nagios.com/wp-content/uploads/2024/11/Nagios-Blue-N.svg</url>
	<title>Windows Server 2019 &#8211; Nagios Library</title>
	<link>https://library.nagios.com</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>Sending Windows Server Logs to Nagios Log Server</title>
		<link>https://library.nagios.com/monitoring/sending-windows-server-logs-to-nagios-log-server/</link>
		
		<dc:creator><![CDATA[Salamon Anzel]]></dc:creator>
		<pubDate>Tue, 11 Feb 2025 18:50:57 +0000</pubDate>
				<category><![CDATA[Monitoring]]></category>
		<category><![CDATA[Documentation]]></category>
		<category><![CDATA[Log Monitoring]]></category>
		<category><![CDATA[Setup & Installation]]></category>
		<category><![CDATA[Windows Monitoring]]></category>
		<category><![CDATA[Windows Server 2012]]></category>
		<category><![CDATA[Windows Server 2019]]></category>
		<category><![CDATA[Windows Server 2022]]></category>
		<category><![CDATA[Windows Server 2025]]></category>
		<guid isPermaLink="false">https://library.nagios.com/?p=45483</guid>

					<description><![CDATA[Collecting logs from Windows Server is crucial for monitoring system health and security. Integrating these logs with Nagios Log Server allows for centralized analysis, real-time alerts, and efficient troubleshooting. This article covers the setup process, from configuring Windows Event Log forwarding to analyzing logs in Nagios Log Server. To see how this is done in [&#8230;]]]></description>
										<content:encoded><![CDATA[
<p>Collecting logs from Windows Server is crucial for monitoring system health and security. Integrating these logs with <strong>Nagios Log Server</strong> allows for centralized analysis, real-time alerts, and efficient troubleshooting. This article covers the setup process, from configuring Windows Event Log forwarding to analyzing logs in Nagios Log Server.</p>



<p>To see how this is done in Nagios Log Server, check out this tutorial: </p>



<figure class="wp-block-embed is-type-video is-provider-youtube wp-block-embed-youtube wp-embed-aspect-16-9 wp-has-aspect-ratio"><div class="wp-block-embed__wrapper">
<iframe title="How To Add Windows Hosts In Nagios Log Server" width="800" height="450" src="https://www.youtube.com/embed/aQou1pV5M9w?feature=oembed" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" referrerpolicy="strict-origin-when-cross-origin" allowfullscreen></iframe>
</div></figure>



<hr class="wp-block-separator has-alpha-channel-opacity"/>



<h2 class="wp-block-heading">Step 1: Add a Log Source in Nagios Log Server</h2>



<p>1. <strong>Log in</strong> to your <strong>Nagios Log Server</strong> web interface.</p>



<p>2. On the <strong>Home</strong> page, locate the section for adding log sources.</p>



<figure class="wp-block-image size-full"><a href="https://library.nagios.com/wp-content/uploads/2025/02/image-132.png"><img decoding="async" width="429" height="59" src="https://library.nagios.com/wp-content/uploads/2025/02/image-132.png" alt="image 132" class="wp-image-45522" title="Sending Windows Server Logs to Nagios Log Server 1" srcset="https://library.nagios.com/wp-content/uploads/2025/02/image-132.png 429w, https://library.nagios.com/wp-content/uploads/2025/02/image-132-300x41.png 300w" sizes="(max-width: 429px) 100vw, 429px" /></a><figcaption class="wp-element-caption">add log source</figcaption></figure>



<p>3. Click the <strong>+ Windows</strong> button to begin the configuration process. </p>



<figure class="wp-block-image size-full"><a href="https://library.nagios.com/wp-content/uploads/2025/02/image-133.png"><img decoding="async" width="423" height="116" src="https://library.nagios.com/wp-content/uploads/2025/02/image-133.png" alt="image 133" class="wp-image-45525" title="Sending Windows Server Logs to Nagios Log Server 2" srcset="https://library.nagios.com/wp-content/uploads/2025/02/image-133.png 423w, https://library.nagios.com/wp-content/uploads/2025/02/image-133-300x82.png 300w" sizes="(max-width: 423px) 100vw, 423px" /></a><figcaption class="wp-element-caption">select windows</figcaption></figure>



<hr class="wp-block-separator has-alpha-channel-opacity"/>



<h2 class="wp-block-heading">Step 2: Install NXLog CE on Windows Server</h2>



<p>1. On the <strong>Nagios Log Server Windows Source</strong> page, find the <strong>Getting Started</strong> section and download <strong>NXLog CE</strong> from the provided link.</p>



<figure class="wp-block-image size-large"><a href="https://library.nagios.com/wp-content/uploads/2025/02/image-135.png"><img fetchpriority="high" decoding="async" width="1024" height="198" src="https://library.nagios.com/wp-content/uploads/2025/02/image-135-1024x198.png" alt="image 135" class="wp-image-45531" title="Sending Windows Server Logs to Nagios Log Server 3" srcset="https://library.nagios.com/wp-content/uploads/2025/02/image-135-1024x198.png 1024w, https://library.nagios.com/wp-content/uploads/2025/02/image-135-300x58.png 300w, https://library.nagios.com/wp-content/uploads/2025/02/image-135-768x148.png 768w, https://library.nagios.com/wp-content/uploads/2025/02/image-135.png 1102w" sizes="(max-width: 1024px) 100vw, 1024px" /></a><figcaption class="wp-element-caption">getting started</figcaption></figure>



<p>2. Run the installer on your <strong>Windows Server</strong>.</p>



<figure class="wp-block-image size-full"><a href="https://library.nagios.com/wp-content/uploads/2025/02/image-137.png"><img loading="lazy" decoding="async" width="251" height="43" src="https://library.nagios.com/wp-content/uploads/2025/02/image-137.png" alt="image 137" class="wp-image-45536" title="Sending Windows Server Logs to Nagios Log Server 4"></a><figcaption class="wp-element-caption">nxlog-ce-latest.msi</figcaption></figure>



<p>3. Click <strong>Next</strong> to the Welcome Screen.</p>



<figure class="wp-block-image size-full"><a href="https://library.nagios.com/wp-content/uploads/2025/02/image-138.png"><img loading="lazy" decoding="async" width="489" height="384" src="https://library.nagios.com/wp-content/uploads/2025/02/image-138.png" alt="image 138" class="wp-image-45550" title="Sending Windows Server Logs to Nagios Log Server 5" srcset="https://library.nagios.com/wp-content/uploads/2025/02/image-138.png 489w, https://library.nagios.com/wp-content/uploads/2025/02/image-138-300x236.png 300w" sizes="(max-width: 489px) 100vw, 489px" /></a><figcaption class="wp-element-caption">welcome screen</figcaption></figure>



<p>3. Accept the <strong>License Agreement</strong> and click <strong>Next</strong></p>



<figure class="wp-block-image size-full"><a href="https://library.nagios.com/wp-content/uploads/2025/02/image-139.png"><img loading="lazy" decoding="async" width="488" height="379" src="https://library.nagios.com/wp-content/uploads/2025/02/image-139.png" alt="image 139" class="wp-image-45551" title="Sending Windows Server Logs to Nagios Log Server 6" srcset="https://library.nagios.com/wp-content/uploads/2025/02/image-139.png 488w, https://library.nagios.com/wp-content/uploads/2025/02/image-139-300x233.png 300w" sizes="(max-width: 488px) 100vw, 488px" /></a><figcaption class="wp-element-caption">license agreement</figcaption></figure>



<p>4. Pick the destination folder to install Nagios Log Server (Default C:\Program Files\nxlog\)</p>



<figure class="wp-block-image size-full"><a href="https://library.nagios.com/wp-content/uploads/2025/02/image-140.png"><img loading="lazy" decoding="async" width="487" height="379" src="https://library.nagios.com/wp-content/uploads/2025/02/image-140.png" alt="image 140" class="wp-image-45552" title="Sending Windows Server Logs to Nagios Log Server 7" srcset="https://library.nagios.com/wp-content/uploads/2025/02/image-140.png 487w, https://library.nagios.com/wp-content/uploads/2025/02/image-140-300x233.png 300w" sizes="(max-width: 487px) 100vw, 487px" /></a><figcaption class="wp-element-caption">destination folder</figcaption></figure>



<p>5. Click Install: </p>



<figure class="wp-block-image size-full"><a href="https://library.nagios.com/wp-content/uploads/2025/02/image-141.png"><img loading="lazy" decoding="async" width="489" height="381" src="https://library.nagios.com/wp-content/uploads/2025/02/image-141.png" alt="image 141" class="wp-image-45553" title="Sending Windows Server Logs to Nagios Log Server 8" srcset="https://library.nagios.com/wp-content/uploads/2025/02/image-141.png 489w, https://library.nagios.com/wp-content/uploads/2025/02/image-141-300x234.png 300w" sizes="(max-width: 489px) 100vw, 489px" /></a><figcaption class="wp-element-caption">read to install</figcaption></figure>



<p>5. Click <strong>Finish</strong> after a successful installation.</p>



<figure class="wp-block-image size-full"><a href="https://library.nagios.com/wp-content/uploads/2025/02/image-142.png"><img loading="lazy" decoding="async" width="486" height="380" src="https://library.nagios.com/wp-content/uploads/2025/02/image-142.png" alt="image 142" class="wp-image-45554" title="Sending Windows Server Logs to Nagios Log Server 9" srcset="https://library.nagios.com/wp-content/uploads/2025/02/image-142.png 486w, https://library.nagios.com/wp-content/uploads/2025/02/image-142-300x235.png 300w" sizes="(max-width: 486px) 100vw, 486px" /></a><figcaption class="wp-element-caption">installation in progress</figcaption></figure>



<figure class="wp-block-image size-full"><a href="https://library.nagios.com/wp-content/uploads/2025/02/image-143.png"><img loading="lazy" decoding="async" width="487" height="380" src="https://library.nagios.com/wp-content/uploads/2025/02/image-143.png" alt="image 143" class="wp-image-45555" title="Sending Windows Server Logs to Nagios Log Server 10" srcset="https://library.nagios.com/wp-content/uploads/2025/02/image-143.png 487w, https://library.nagios.com/wp-content/uploads/2025/02/image-143-300x234.png 300w" sizes="(max-width: 487px) 100vw, 487px" /></a><figcaption class="wp-element-caption">installation complete</figcaption></figure>



<hr class="wp-block-separator has-alpha-channel-opacity"/>



<h2 class="wp-block-heading">Step 3: Configure NXLog CE</h2>



<p>1. On the <strong>Nagios Log Server Windows Source</strong> page, locate the <strong>Configuration Setup</strong> section.</p>



<p>2. Copy the <strong>provided configuration code</strong>:</p>



<p>Right-click and select <strong>Copy</strong>.</p>



<p>Click the <strong>Select All</strong> button in the top-right of the code block.</p>



<figure class="wp-block-image size-large"><a href="https://library.nagios.com/wp-content/uploads/2025/02/image-144.png"><img loading="lazy" decoding="async" width="1024" height="131" src="https://library.nagios.com/wp-content/uploads/2025/02/image-144-1024x131.png" alt="image 144" class="wp-image-45557" title="Sending Windows Server Logs to Nagios Log Server 11" srcset="https://library.nagios.com/wp-content/uploads/2025/02/image-144-1024x131.png 1024w, https://library.nagios.com/wp-content/uploads/2025/02/image-144-300x38.png 300w, https://library.nagios.com/wp-content/uploads/2025/02/image-144-768x98.png 768w, https://library.nagios.com/wp-content/uploads/2025/02/image-144.png 1111w" sizes="(max-width: 1024px) 100vw, 1024px" /></a><figcaption class="wp-element-caption">configuration setup</figcaption></figure>



<p>3. On your <strong>Windows Server</strong>, open <strong>Notepad</strong> as an administrator.</p>



<figure class="wp-block-image size-full"><a href="https://library.nagios.com/wp-content/uploads/2025/02/image-145.png"><img loading="lazy" decoding="async" width="144" height="55" src="https://library.nagios.com/wp-content/uploads/2025/02/image-145.png" alt="image 145" class="wp-image-45559" title="Sending Windows Server Logs to Nagios Log Server 12"></a><figcaption class="wp-element-caption">notepad</figcaption></figure>



<p>4. Open the <strong>NXLog configuration file</strong>:</p>



<ul class="wp-block-list">
<li>Navigate to <code><strong>C:\Program Files\nxlog\conf\</strong></code></li>



<li>Select <strong>All Files (<em>.</em>)</strong> in the file type dropdown.</li>



<li>Open <code>nxlog.conf</code>.</li>
</ul>



<figure class="wp-block-image size-full"><a href="https://library.nagios.com/wp-content/uploads/2025/02/image-146.png"><img loading="lazy" decoding="async" width="490" height="182" src="https://library.nagios.com/wp-content/uploads/2025/02/image-146.png" alt="image 146" class="wp-image-45560" title="Sending Windows Server Logs to Nagios Log Server 13" srcset="https://library.nagios.com/wp-content/uploads/2025/02/image-146.png 490w, https://library.nagios.com/wp-content/uploads/2025/02/image-146-300x111.png 300w" sizes="(max-width: 490px) 100vw, 490px" /></a><figcaption class="wp-element-caption">nxlog.conf</figcaption></figure>



<p>5. Paste the copied configuration into the file.</p>



<p>6. Save and close <strong>Notepad</strong>.</p>



<hr class="wp-block-separator has-alpha-channel-opacity"/>



<h2 class="wp-block-heading">Step 4: Confirm the NXLog Service is running</h2>



<p>1. In the Windows <strong>Services </strong>App. Locate the <strong>NXLog </strong>service and confirm it&#8217;s <strong>running</strong>.</p>



<figure class="wp-block-image size-full"><a href="https://library.nagios.com/wp-content/uploads/2025/02/image-147.png"><img loading="lazy" decoding="async" width="513" height="19" src="https://library.nagios.com/wp-content/uploads/2025/02/image-147.png" alt="image 147" class="wp-image-45566" title="Sending Windows Server Logs to Nagios Log Server 14" srcset="https://library.nagios.com/wp-content/uploads/2025/02/image-147.png 513w, https://library.nagios.com/wp-content/uploads/2025/02/image-147-300x11.png 300w" sizes="(max-width: 513px) 100vw, 513px" /></a><figcaption class="wp-element-caption">NCLog services running</figcaption></figure>



<p>If not, you can manually start it by right-clicking on <strong>NXLog </strong>and select <strong>Start</strong>: <br></p>



<figure class="wp-block-image size-full"><a href="https://library.nagios.com/wp-content/uploads/2025/02/image-151.png"><img loading="lazy" decoding="async" width="189" height="31" src="https://library.nagios.com/wp-content/uploads/2025/02/image-151.png" alt="image 151" class="wp-image-45575" title="Sending Windows Server Logs to Nagios Log Server 15"></a><figcaption class="wp-element-caption">starting NXLog service</figcaption></figure>



<p>2. You can also run <strong>sc query NXLog</strong>. Confirm the value of <strong>STATE</strong> is <strong>RUNNING</strong></p>



<figure class="wp-block-image size-full"><a href="https://library.nagios.com/wp-content/uploads/2025/02/image-149.png"><img loading="lazy" decoding="async" width="608" height="240" src="https://library.nagios.com/wp-content/uploads/2025/02/image-149.png" alt="image 149" class="wp-image-45569" title="Sending Windows Server Logs to Nagios Log Server 16" srcset="https://library.nagios.com/wp-content/uploads/2025/02/image-149.png 608w, https://library.nagios.com/wp-content/uploads/2025/02/image-149-300x118.png 300w" sizes="(max-width: 608px) 100vw, 608px" /></a><figcaption class="wp-element-caption">sc query NXLog output</figcaption></figure>



<p>If needed, you can manually start the service by running <strong>net start NXLog</strong>.</p>



<p></p>



<hr class="wp-block-separator has-alpha-channel-opacity"/>



<h2 class="wp-block-heading">Step 5: Verify Logs in Nagios Log Server</h2>



<p>1. You can verify a successful connection by going back in the Nagios Log Server &gt; Add Log Source &gt; Windows. In the <strong>Verify Incoming Logs</strong> section. Add the IP Address of your Windows Server and click <strong>Verify</strong></p>



<figure class="wp-block-image size-full"><a href="https://library.nagios.com/wp-content/uploads/2025/02/image-152.png"><img loading="lazy" decoding="async" width="907" height="151" src="https://library.nagios.com/wp-content/uploads/2025/02/image-152.png" alt="image 152" class="wp-image-45578" title="Sending Windows Server Logs to Nagios Log Server 17" srcset="https://library.nagios.com/wp-content/uploads/2025/02/image-152.png 907w, https://library.nagios.com/wp-content/uploads/2025/02/image-152-300x50.png 300w, https://library.nagios.com/wp-content/uploads/2025/02/image-152-768x128.png 768w" sizes="(max-width: 907px) 100vw, 907px" /></a><figcaption class="wp-element-caption">verify incoming logs</figcaption></figure>



<p>2. Now navigate to Home. Under Unique Hosts &gt; select View</p>



<figure class="wp-block-image size-full"><a href="https://library.nagios.com/wp-content/uploads/2025/02/image-153.png"><img loading="lazy" decoding="async" width="323" height="214" src="https://library.nagios.com/wp-content/uploads/2025/02/image-153.png" alt="image 153" class="wp-image-45579" title="Sending Windows Server Logs to Nagios Log Server 18" srcset="https://library.nagios.com/wp-content/uploads/2025/02/image-153.png 323w, https://library.nagios.com/wp-content/uploads/2025/02/image-153-300x199.png 300w" sizes="(max-width: 323px) 100vw, 323px" /></a><figcaption class="wp-element-caption">unique hosts</figcaption></figure>



<p>3. Select the IP Address/Hostname of your windows server.</p>



<p>4. Confirm Event logs are being received: </p>



<figure class="wp-block-image size-large"><a href="https://library.nagios.com/wp-content/uploads/2025/02/image-154.png"><img loading="lazy" decoding="async" width="1024" height="485" src="https://library.nagios.com/wp-content/uploads/2025/02/image-154-1024x485.png" alt="image 154" class="wp-image-45580" title="Sending Windows Server Logs to Nagios Log Server 19" srcset="https://library.nagios.com/wp-content/uploads/2025/02/image-154-1024x485.png 1024w, https://library.nagios.com/wp-content/uploads/2025/02/image-154-300x142.png 300w, https://library.nagios.com/wp-content/uploads/2025/02/image-154-768x364.png 768w, https://library.nagios.com/wp-content/uploads/2025/02/image-154-1536x728.png 1536w, https://library.nagios.com/wp-content/uploads/2025/02/image-154.png 1866w" sizes="(max-width: 1024px) 100vw, 1024px" /></a><figcaption class="wp-element-caption">event logs in nagios log server</figcaption></figure>



<hr class="wp-block-separator has-alpha-channel-opacity"/>



<h2 class="wp-block-heading">Troubleshooting</h2>



<h4 class="wp-block-heading"><strong>Check NXLog Configuration File</strong></h4>



<p>1. Open <code>C:\Program Files\nxlog\conf\nxlog.conf</code> in Notepad.</p>



<p>2. Ensure the configuration matches the one provided by <strong>Nagios Log Server</strong>.</p>



<p>3. Look for <strong>syntax errors</strong>: Run NXLog manually to check for issues:</p>



<div class="wp-block-kevinbatdorf-code-block-pro" data-code-block-pro-font-family="Code-Pro-Geist-Mono" style="font-size:.875rem;font-family:Code-Pro-Geist-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:1.5rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)"><span role="button" tabindex="0" style="color:#D4D4D4;display:none" aria-label="Copy" class="code-block-pro-copy-button"><pre class="code-block-pro-copy-button-pre" aria-hidden="true"><textarea class="code-block-pro-copy-button-textarea" tabindex="-1" aria-hidden="true" readonly>"C:\Program Files (x86)\nxlog\nxlog.exe" -v</textarea></pre><svg xmlns="http://www.w3.org/2000/svg" style="width:24px;height:24px" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2"><path class="with-check" stroke-linecap="round" stroke-linejoin="round" d="M4.5 12.75l6 6 9-13.5"></path><path class="without-check" stroke-linecap="round" stroke-linejoin="round" d="M16.5 8.25V6a2.25 2.25 0 00-2.25-2.25H6A2.25 2.25 0 003.75 6v8.25A2.25 2.25 0 006 16.5h2.25m8.25-8.25H18a2.25 2.25 0 012.25 2.25V18A2.25 2.25 0 0118 20.25h-7.5A2.25 2.25 0 018.25 18v-1.5m8.25-8.25h-6a2.25 2.25 0 00-2.25 2.25v6"></path></svg></span><pre class="shiki dark-plus" style="background-color: #1E1E1E" tabindex="0"><code><span class="line"><span style="color: #CE9178">&quot;C:</span><span style="color: #D7BA7D">\P</span><span style="color: #CE9178">rogram Files (x86)</span><span style="color: #D7BA7D">\n</span><span style="color: #CE9178">xlog</span><span style="color: #D7BA7D">\n</span><span style="color: #CE9178">xlog.exe&quot;</span><span style="color: #D4D4D4"> -</span><span style="color: #9CDCFE">v</span></span></code></pre></div>



<p><br>4. If any errors appear, correct them in <code>nxlog.conf</code> and restart the service.</p>



<p></p>



<h4 class="wp-block-heading"><strong>Verify Firewall</strong></h4>



<p>If logs are not reaching <strong>Nagios Log Server</strong>, try:</p>



<p>1. On your Windows Server, confirm outbound port 3515 is open by running: </p>



<div class="wp-block-kevinbatdorf-code-block-pro" data-code-block-pro-font-family="Code-Pro-Geist-Mono" style="font-size:.875rem;font-family:Code-Pro-Geist-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:1.5rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)"><span role="button" tabindex="0" style="color:#D4D4D4;display:none" aria-label="Copy" class="code-block-pro-copy-button"><pre class="code-block-pro-copy-button-pre" aria-hidden="true"><textarea class="code-block-pro-copy-button-textarea" tabindex="-1" aria-hidden="true" readonly>Get-NetFirewallRule -Direction Inbound, Outbound | Get-NetFirewallPortFilter | Where-Object { $_.LocalPort -eq 3515 }</textarea></pre><svg xmlns="http://www.w3.org/2000/svg" style="width:24px;height:24px" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2"><path class="with-check" stroke-linecap="round" stroke-linejoin="round" d="M4.5 12.75l6 6 9-13.5"></path><path class="without-check" stroke-linecap="round" stroke-linejoin="round" d="M16.5 8.25V6a2.25 2.25 0 00-2.25-2.25H6A2.25 2.25 0 003.75 6v8.25A2.25 2.25 0 006 16.5h2.25m8.25-8.25H18a2.25 2.25 0 012.25 2.25V18A2.25 2.25 0 0118 20.25h-7.5A2.25 2.25 0 018.25 18v-1.5m8.25-8.25h-6a2.25 2.25 0 00-2.25 2.25v6"></path></svg></span><pre class="shiki dark-plus" style="background-color: #1E1E1E" tabindex="0"><code><span class="line"><span style="color: #9CDCFE">Get</span><span style="color: #D4D4D4">-</span><span style="color: #9CDCFE">NetFirewallRule</span><span style="color: #D4D4D4"> -</span><span style="color: #9CDCFE">Direction</span><span style="color: #D4D4D4"> </span><span style="color: #9CDCFE">Inbound</span><span style="color: #D4D4D4">, </span><span style="color: #9CDCFE">Outbound</span><span style="color: #D4D4D4"> | </span><span style="color: #9CDCFE">Get</span><span style="color: #D4D4D4">-</span><span style="color: #9CDCFE">NetFirewallPortFilter</span><span style="color: #D4D4D4"> | </span><span style="color: #9CDCFE">Where</span><span style="color: #D4D4D4">-</span><span style="color: #9CDCFE">Object</span><span style="color: #D4D4D4"> { </span><span style="color: #9CDCFE">$_</span><span style="color: #D4D4D4">.</span><span style="color: #9CDCFE">LocalPort</span><span style="color: #D4D4D4"> -</span><span style="color: #9CDCFE">eq</span><span style="color: #D4D4D4"> </span><span style="color: #B5CEA8">3515</span><span style="color: #D4D4D4"> }</span></span></code></pre></div>



<p>2. To Allow traffic for NXLog on your windows server, which uses by default outbound port 3515:</p>



<div class="wp-block-kevinbatdorf-code-block-pro" data-code-block-pro-font-family="Code-Pro-Geist-Mono" style="font-size:.875rem;font-family:Code-Pro-Geist-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:1.5rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)"><span role="button" tabindex="0" style="color:#D4D4D4;display:none" aria-label="Copy" class="code-block-pro-copy-button"><pre class="code-block-pro-copy-button-pre" aria-hidden="true"><textarea class="code-block-pro-copy-button-textarea" tabindex="-1" aria-hidden="true" readonly>netsh advfirewall firewall add rule name="Allow NXLog" dir=out action=allow protocol=tcp localport=3515</textarea></pre><svg xmlns="http://www.w3.org/2000/svg" style="width:24px;height:24px" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2"><path class="with-check" stroke-linecap="round" stroke-linejoin="round" d="M4.5 12.75l6 6 9-13.5"></path><path class="without-check" stroke-linecap="round" stroke-linejoin="round" d="M16.5 8.25V6a2.25 2.25 0 00-2.25-2.25H6A2.25 2.25 0 003.75 6v8.25A2.25 2.25 0 006 16.5h2.25m8.25-8.25H18a2.25 2.25 0 012.25 2.25V18A2.25 2.25 0 0118 20.25h-7.5A2.25 2.25 0 018.25 18v-1.5m8.25-8.25h-6a2.25 2.25 0 00-2.25 2.25v6"></path></svg></span><pre class="shiki dark-plus" style="background-color: #1E1E1E" tabindex="0"><code><span class="line"><span style="color: #9CDCFE">netsh</span><span style="color: #D4D4D4"> </span><span style="color: #9CDCFE">advfirewall</span><span style="color: #D4D4D4"> </span><span style="color: #9CDCFE">firewall</span><span style="color: #D4D4D4"> </span><span style="color: #9CDCFE">add</span><span style="color: #D4D4D4"> </span><span style="color: #9CDCFE">rule</span><span style="color: #D4D4D4"> </span><span style="color: #9CDCFE">name</span><span style="color: #D4D4D4">=</span><span style="color: #CE9178">&quot;Allow NXLog&quot;</span><span style="color: #D4D4D4"> </span><span style="color: #9CDCFE">dir</span><span style="color: #D4D4D4">=</span><span style="color: #9CDCFE">out</span><span style="color: #D4D4D4"> </span><span style="color: #9CDCFE">action</span><span style="color: #D4D4D4">=</span><span style="color: #9CDCFE">allow</span><span style="color: #D4D4D4"> </span><span style="color: #9CDCFE">protocol</span><span style="color: #D4D4D4">=</span><span style="color: #9CDCFE">tcp</span><span style="color: #D4D4D4"> </span><span style="color: #9CDCFE">localport</span><span style="color: #D4D4D4">=</span><span style="color: #B5CEA8">3515</span></span></code></pre></div>



<p></p>



<h4 class="wp-block-heading">Enable Debugging in NXLog</h4>



<p>If issues persist, enable debugging in NXLog:</p>



<p>1. Open <code><strong>C:\Program Files\nxlog\conf\nxlog.conf</strong></code></p>



<p>2. Add:</p>



<p><code>LogLevel DEBUG</code></p>



<figure class="wp-block-image size-full"><a href="https://library.nagios.com/wp-content/uploads/2025/02/image-155.png"><img loading="lazy" decoding="async" width="377" height="81" src="https://library.nagios.com/wp-content/uploads/2025/02/image-155.png" alt="image 155" class="wp-image-45597" title="Sending Windows Server Logs to Nagios Log Server 20" srcset="https://library.nagios.com/wp-content/uploads/2025/02/image-155.png 377w, https://library.nagios.com/wp-content/uploads/2025/02/image-155-300x64.png 300w" sizes="(max-width: 377px) 100vw, 377px" /></a><figcaption>Sending Windows Server Logs to Nagios Log Server 22</figcaption></figure>



<p>3. Restart NXLog:</p>



<figure class="wp-block-image size-full"><a href="https://library.nagios.com/wp-content/uploads/2025/02/image-156.png"><img loading="lazy" decoding="async" width="234" height="122" src="https://library.nagios.com/wp-content/uploads/2025/02/image-156.png" alt="image 156" class="wp-image-45600" title="Sending Windows Server Logs to Nagios Log Server 21"></a><figcaption class="wp-element-caption">restart nxlog</figcaption></figure>



<p>4. Check logs in: <strong>C<code>:\Program Files\nxlog\data\nxlog.log</code></strong></p>



<hr class="wp-block-separator has-alpha-channel-opacity"/>



<p>If you have additional questions or other support-related questions, please visit Nagios <a href="https://support.nagios.com/" data-type="link" data-id="https://support.nagios.com/forum" target="_blank" rel="noopener">Support</a>. The <a href="https://support.nagios.com/kb" data-type="link" data-id="https://support.nagios.com/kb" target="_blank" rel="noopener">Nagios Support Knowledgebase</a> is also a great support resource.<br></p>
]]></content:encoded>
					
		
		
		<media:content url="https://www.youtube.com/embed/aQou1pV5M9w" medium="video">
			<media:player url="https://www.youtube.com/embed/aQou1pV5M9w" />
			<media:title type="plain">Windows Server 2019 Archives - Nagios Library</media:title>
			<media:description type="html"><![CDATA[Enjoy the videos and music you love, upload original content, and share it all with friends, family, and the world on YouTube.]]></media:description>
			<media:thumbnail url="https://library.nagios.com/wp-content/uploads/2025/02/Gemini_Generated_Image_3bi6aq3bi6aq3bi6.jpg" />
			<media:rating scheme="urn:simple">nonadult</media:rating>
		</media:content>
	</item>
		<item>
		<title>Monitor Windows Server with Nagios XI and NSClient++</title>
		<link>https://library.nagios.com/monitoring/monitor-windows-server-with-nagios-xi-and-nsclient/</link>
		
		<dc:creator><![CDATA[Salamon Anzel]]></dc:creator>
		<pubDate>Fri, 07 Feb 2025 23:09:43 +0000</pubDate>
				<category><![CDATA[Monitoring]]></category>
		<category><![CDATA[Documentation]]></category>
		<category><![CDATA[NSClient++]]></category>
		<category><![CDATA[Operating System Monitoring]]></category>
		<category><![CDATA[Setup & Installation]]></category>
		<category><![CDATA[Windows Monitoring]]></category>
		<category><![CDATA[Windows Server 2012]]></category>
		<category><![CDATA[Windows Server 2019]]></category>
		<category><![CDATA[Windows Server 2022]]></category>
		<category><![CDATA[Windows Server 2025]]></category>
		<guid isPermaLink="false">https://library.nagios.com/?p=44632</guid>

					<description><![CDATA[Unlock the full potential of your Windows 2022 monitoring with NSClient++ and Nagios XI.]]></description>
										<content:encoded><![CDATA[
<p><strong>NSClient++</strong> is an open-source monitoring agent for Windows systems that enables <strong>Nagios XI</strong> and other monitoring tools to collect system performance data, check service statuses, and monitor event logs. It supports multiple communication protocols such as <strong>NRPE, NSCA, check_nt, and REST API</strong>, allowing remote monitoring of CPU usage, memory, disk space, and running services. NSClient++ can also execute custom scripts, monitor log files, and send alerts when predefined thresholds are exceeded. By acting as a bridge between Windows servers and <strong>Nagios XI</strong>, it ensures proactive system monitoring and alerting for critical infrastructure components.</p>



<p></p>



<p></p>



<h3 class="wp-block-heading">Alternative Agents</h3>



<p>NSClient++ is one of many agents that can be used to monitor Windows devices. This document will<br>go through the installation and use of NSClient++. However, for ease of use and greater functionality,<br>Nagios Enterprises recommend using a multi-platform agent called NCPA that can be downloaded for<br>Windows, Linux, and Mac devices. For more information on NCPA, view the documentation here:</p>



<p>For information on NCPA and Windows Server. See <a href="https://library.nagios.com/documentation/how-to-monitor-windows-2022-with-ncpa/" target="_blank" data-type="link" data-id="https://library.nagios.com/uncategorized/how-to-monitor-windows-2022-with-nagios-xi-and-snmp/" rel="noreferrer noopener">How To Monitor Windows Server with Nagios XI and NCPA</a>.</p>



<hr class="wp-block-separator has-alpha-channel-opacity"/>



<h3 class="wp-block-heading">Step 1: Download the NSCLIENT++ Agent</h3>



<p>The NSClient++ agent can be obtained through the following methods:</p>



<p><strong>NSClient++ Official Downloads Page</strong> – The agent is available for download at <a href="https://github.com/mickem/nscp/releases/" target="_blank" rel="noreferrer noopener">https://github.com/mickem/nscp/releases/</a>.</p>



<p><strong>Nagios XI Web Interface</strong> – The agent can be downloaded directly when using the NSClient++ Monitoring Wizard.</p>



<hr class="wp-block-separator has-alpha-channel-opacity"/>



<h3 class="wp-block-heading">Step 2: Install the NSCLIENT++ Agent</h3>



<p>Before Nagios can monitor system metrics, services, processes, or performance data on a Windows machine, the NSClient++ agent must be installed and properly configured on the target system.</p>



<p>1. Locate the downloaded <code>.msi</code> installer file and double-click it to launch the installation wizard. </p>



<figure class="wp-block-image size-full"><a href="https://library.nagios.com/wp-content/uploads/2025/02/image-94.png"><img loading="lazy" decoding="async" width="758" height="589" src="https://library.nagios.com/wp-content/uploads/2025/02/image-94.png" alt="image 94" class="wp-image-44793" title="Monitor Windows Server with Nagios XI and NSClient++ 23" srcset="https://library.nagios.com/wp-content/uploads/2025/02/image-94.png 758w, https://library.nagios.com/wp-content/uploads/2025/02/image-94-300x233.png 300w" sizes="(max-width: 758px) 100vw, 758px" /></a><figcaption class="wp-element-caption">Welcome screen.</figcaption></figure>



<p><br>Click <strong>Next</strong> on the welcome screen to proceed.</p>



<p>2. Select <strong>Typical</strong> for a standard installation or <strong>Custom</strong> if advanced configuration is needed.</p>



<figure class="wp-block-image size-full"><a href="https://library.nagios.com/wp-content/uploads/2025/02/image-95.png"><img loading="lazy" decoding="async" width="761" height="592" src="https://library.nagios.com/wp-content/uploads/2025/02/image-95.png" alt="image 95" class="wp-image-44796" title="Monitor Windows Server with Nagios XI and NSClient++ 24" srcset="https://library.nagios.com/wp-content/uploads/2025/02/image-95.png 761w, https://library.nagios.com/wp-content/uploads/2025/02/image-95-300x233.png 300w" sizes="(max-width: 761px) 100vw, 761px" /></a><figcaption class="wp-element-caption">Setup type.</figcaption></figure>



<p>Click <strong>Next</strong> to continue.</p>



<p>3. On the <strong>Setup Options</strong> screen.</p>



<p>In the <strong>Allowed Hosts</strong> field, enter the IP address of the Nagios XI server to allow communication:</p>



<figure class="wp-block-image size-full"><a href="https://library.nagios.com/wp-content/uploads/2025/02/image-105.png"><img loading="lazy" decoding="async" width="488" height="380" src="https://library.nagios.com/wp-content/uploads/2025/02/image-105.png" alt="image 105" class="wp-image-44860" title="Monitor Windows Server with Nagios XI and NSClient++ 25" srcset="https://library.nagios.com/wp-content/uploads/2025/02/image-105.png 488w, https://library.nagios.com/wp-content/uploads/2025/02/image-105-300x234.png 300w" sizes="(max-width: 488px) 100vw, 488px" /></a><figcaption class="wp-element-caption">Setup Options &#8211; Allowed Hosts.</figcaption></figure>



<p></p>



<p>In the <strong>Password</strong> field, enter a secure password that will be used to authenticate communication between Nagios XI and your Windows server.</p>



<figure class="wp-block-image size-full"><a href="https://library.nagios.com/wp-content/uploads/2025/02/image-106.png"><img loading="lazy" decoding="async" width="488" height="380" src="https://library.nagios.com/wp-content/uploads/2025/02/image-106.png" alt="image 106" class="wp-image-44861" title="Monitor Windows Server with Nagios XI and NSClient++ 26" srcset="https://library.nagios.com/wp-content/uploads/2025/02/image-106.png 488w, https://library.nagios.com/wp-content/uploads/2025/02/image-106-300x234.png 300w" sizes="(max-width: 488px) 100vw, 488px" /></a><figcaption class="wp-element-caption">Setup Options &#8211; Password.</figcaption></figure>



<p>Then check the following options: </p>



<p><strong>Enable common check plugins</strong>.</p>



<p><strong>Enable NRPE Server (check_nrpe)</strong>.</p>



<p><strong>Enable NSClient Server (check_nt)</strong> (if using legacy Nagios monitoring).</p>



<figure class="wp-block-image size-full"><a href="https://library.nagios.com/wp-content/uploads/2025/02/image-107.png"><img loading="lazy" decoding="async" width="488" height="380" src="https://library.nagios.com/wp-content/uploads/2025/02/image-107.png" alt="image 107" class="wp-image-44862" title="Monitor Windows Server with Nagios XI and NSClient++ 27" srcset="https://library.nagios.com/wp-content/uploads/2025/02/image-107.png 488w, https://library.nagios.com/wp-content/uploads/2025/02/image-107-300x234.png 300w" sizes="(max-width: 488px) 100vw, 488px" /></a><figcaption class="wp-element-caption">Setup Options &#8211; Modules to load.</figcaption></figure>



<p>Click <strong>Next</strong>.</p>



<p></p>



<p>4. Click <strong>Install</strong> to finish: </p>



<figure class="wp-block-image size-full"><a href="https://library.nagios.com/wp-content/uploads/2025/02/image-97.png"><img loading="lazy" decoding="async" width="766" height="594" src="https://library.nagios.com/wp-content/uploads/2025/02/image-97.png" alt="image 97" class="wp-image-44825" title="Monitor Windows Server with Nagios XI and NSClient++ 28" srcset="https://library.nagios.com/wp-content/uploads/2025/02/image-97.png 766w, https://library.nagios.com/wp-content/uploads/2025/02/image-97-300x233.png 300w" sizes="(max-width: 766px) 100vw, 766px" /></a><figcaption class="wp-element-caption">Ready to install.</figcaption></figure>



<figure class="wp-block-image size-full"><a href="https://library.nagios.com/wp-content/uploads/2025/02/image-101.png"><img loading="lazy" decoding="async" width="763" height="595" src="https://library.nagios.com/wp-content/uploads/2025/02/image-101.png" alt="image 101" class="wp-image-44847" title="Monitor Windows Server with Nagios XI and NSClient++ 29" srcset="https://library.nagios.com/wp-content/uploads/2025/02/image-101.png 763w, https://library.nagios.com/wp-content/uploads/2025/02/image-101-300x234.png 300w" sizes="(max-width: 763px) 100vw, 763px" /></a><figcaption class="wp-element-caption">Install in progress.</figcaption></figure>



<figure class="wp-block-image size-full"><a href="https://library.nagios.com/wp-content/uploads/2025/02/image-102.png"><img loading="lazy" decoding="async" width="763" height="594" src="https://library.nagios.com/wp-content/uploads/2025/02/image-102.png" alt="image 102" class="wp-image-44848" title="Monitor Windows Server with Nagios XI and NSClient++ 30" srcset="https://library.nagios.com/wp-content/uploads/2025/02/image-102.png 763w, https://library.nagios.com/wp-content/uploads/2025/02/image-102-300x234.png 300w" sizes="(max-width: 763px) 100vw, 763px" /></a><figcaption class="wp-element-caption">Install finished.</figcaption></figure>



<hr class="wp-block-separator has-alpha-channel-opacity"/>



<h2 class="wp-block-heading">Step 3: Configure Nagios XI to Monitor Windows Server via NSClient++</h2>



<p>1. Log into Nagios XI.</p>



<p>2. Go to <strong>Configure → Configuration Wizards</strong>.</p>



<figure class="wp-block-image size-full"><a href="https://library.nagios.com/wp-content/uploads/2025/02/image-7.png"><img loading="lazy" decoding="async" width="583" height="145" src="https://library.nagios.com/wp-content/uploads/2025/02/image-7.png" alt="image 7" class="wp-image-43957" title="Monitor Windows Server with Nagios XI and NSClient++ 31" srcset="https://library.nagios.com/wp-content/uploads/2025/02/image-7.png 583w, https://library.nagios.com/wp-content/uploads/2025/02/image-7-300x75.png 300w" sizes="(max-width: 583px) 100vw, 583px" /></a><figcaption class="wp-element-caption">Nagios XI Configuration Wizard.<br></figcaption></figure>



<p>3. Select NSClient++ (Legacy):</p>



<figure class="wp-block-image size-full"><a href="https://library.nagios.com/wp-content/uploads/2025/02/image-103.png"><img loading="lazy" decoding="async" width="337" height="69" src="https://library.nagios.com/wp-content/uploads/2025/02/image-103.png" alt="image 103" class="wp-image-44856" title="Monitor Windows Server with Nagios XI and NSClient++ 32" srcset="https://library.nagios.com/wp-content/uploads/2025/02/image-103.png 337w, https://library.nagios.com/wp-content/uploads/2025/02/image-103-300x61.png 300w" sizes="(max-width: 337px) 100vw, 337px" /></a><figcaption>Monitor Windows Server with Nagios XI and NSClient++ 45</figcaption></figure>



<p></p>



<p>4. Define the target Windows server: </p>



<figure class="wp-block-image size-full"><a href="https://library.nagios.com/wp-content/uploads/2025/02/image-104.png"><img loading="lazy" decoding="async" width="877" height="255" src="https://library.nagios.com/wp-content/uploads/2025/02/image-104.png" alt="image 104" class="wp-image-44858" title="Monitor Windows Server with Nagios XI and NSClient++ 33" srcset="https://library.nagios.com/wp-content/uploads/2025/02/image-104.png 877w, https://library.nagios.com/wp-content/uploads/2025/02/image-104-300x87.png 300w, https://library.nagios.com/wp-content/uploads/2025/02/image-104-768x223.png 768w" sizes="(max-width: 877px) 100vw, 877px" /></a><figcaption class="wp-element-caption">Enter host information.</figcaption></figure>



<p>Click <strong>Next</strong> to proceed.</p>



<p></p>



<p>5. Configure Monitoring Options.</p>



<p>Enter the <strong>NSClient++</strong> password configured in Step 3.</p>



<figure class="wp-block-image size-large"><a href="https://library.nagios.com/wp-content/uploads/2025/02/image-109.png"><img loading="lazy" decoding="async" width="1024" height="470" src="https://library.nagios.com/wp-content/uploads/2025/02/image-109-1024x470.png" alt="image 109" class="wp-image-44864" title="Monitor Windows Server with Nagios XI and NSClient++ 34" srcset="https://library.nagios.com/wp-content/uploads/2025/02/image-109-1024x470.png 1024w, https://library.nagios.com/wp-content/uploads/2025/02/image-109-300x138.png 300w, https://library.nagios.com/wp-content/uploads/2025/02/image-109-768x353.png 768w, https://library.nagios.com/wp-content/uploads/2025/02/image-109.png 1043w" sizes="(max-width: 1024px) 100vw, 1024px" /></a><figcaption class="wp-element-caption">Host details &#8211; agent password.</figcaption></figure>



<p>6. Select the system metrics you want to monitor (CPU, memory, disk usage, services, processes, etc):</p>



<figure class="wp-block-image size-full"><a href="https://library.nagios.com/wp-content/uploads/2025/02/image-113.png"><img loading="lazy" decoding="async" width="716" height="567" src="https://library.nagios.com/wp-content/uploads/2025/02/image-113.png" alt="image 113" class="wp-image-44869" title="Monitor Windows Server with Nagios XI and NSClient++ 35" srcset="https://library.nagios.com/wp-content/uploads/2025/02/image-113.png 716w, https://library.nagios.com/wp-content/uploads/2025/02/image-113-300x238.png 300w" sizes="(max-width: 716px) 100vw, 716px" /></a><figcaption class="wp-element-caption">Server metrics.</figcaption></figure>



<figure class="wp-block-image size-full"><a href="https://library.nagios.com/wp-content/uploads/2025/02/image-112.png"><img loading="lazy" decoding="async" width="875" height="949" src="https://library.nagios.com/wp-content/uploads/2025/02/image-112.png" alt="image 112" class="wp-image-44868" title="Monitor Windows Server with Nagios XI and NSClient++ 36" srcset="https://library.nagios.com/wp-content/uploads/2025/02/image-112.png 875w, https://library.nagios.com/wp-content/uploads/2025/02/image-112-277x300.png 277w, https://library.nagios.com/wp-content/uploads/2025/02/image-112-768x833.png 768w" sizes="(max-width: 875px) 100vw, 875px" /></a><figcaption class="wp-element-caption">Services, processes, performance counters.</figcaption></figure>



<p></p>



<p>Click <strong>Next.</strong></p>



<p></p>



<p>7. Configure the Monitoring Settings:</p>



<p>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.</p>



<figure class="wp-block-image size-full"><a href="https://library.nagios.com/wp-content/uploads/2025/02/image-114.png"><img loading="lazy" decoding="async" width="873" height="441" src="https://library.nagios.com/wp-content/uploads/2025/02/image-114.png" alt="image 114" class="wp-image-44872" title="Monitor Windows Server with Nagios XI and NSClient++ 37" srcset="https://library.nagios.com/wp-content/uploads/2025/02/image-114.png 873w, https://library.nagios.com/wp-content/uploads/2025/02/image-114-300x152.png 300w, https://library.nagios.com/wp-content/uploads/2025/02/image-114-768x388.png 768w" sizes="(max-width: 873px) 100vw, 873px" /></a><figcaption class="wp-element-caption">Monitoring settings.</figcaption></figure>



<p></p>



<p>8. Configure the Notification Settings:</p>



<figure class="wp-block-image size-full"><a href="https://library.nagios.com/wp-content/uploads/2025/02/image-115.png"><img loading="lazy" decoding="async" width="869" height="840" src="https://library.nagios.com/wp-content/uploads/2025/02/image-115.png" alt="image 115" class="wp-image-44873" title="Monitor Windows Server with Nagios XI and NSClient++ 38" srcset="https://library.nagios.com/wp-content/uploads/2025/02/image-115.png 869w, https://library.nagios.com/wp-content/uploads/2025/02/image-115-300x290.png 300w, https://library.nagios.com/wp-content/uploads/2025/02/image-115-768x742.png 768w" sizes="(max-width: 869px) 100vw, 869px" /></a><figcaption class="wp-element-caption">Notification settings.</figcaption></figure>



<p>Click <strong>Next</strong></p>



<p></p>



<p>9. Add your Windows Server to any <strong>Host Groups</strong>, <strong>Service Groups</strong>, or<strong> Parent Host</strong>:</p>



<figure class="wp-block-image size-full"><a href="https://library.nagios.com/wp-content/uploads/2025/02/image-116.png"><img loading="lazy" decoding="async" width="874" height="951" src="https://library.nagios.com/wp-content/uploads/2025/02/image-116.png" alt="image 116" class="wp-image-44874" title="Monitor Windows Server with Nagios XI and NSClient++ 39" srcset="https://library.nagios.com/wp-content/uploads/2025/02/image-116.png 874w, https://library.nagios.com/wp-content/uploads/2025/02/image-116-276x300.png 276w, https://library.nagios.com/wp-content/uploads/2025/02/image-116-768x836.png 768w" sizes="(max-width: 874px) 100vw, 874px" /></a><figcaption class="wp-element-caption">Host groups, Service groups parent hosts.</figcaption></figure>



<p>Click <strong>Next.</strong></p>



<p></p>



<p>10. Click <strong>Apply</strong> to finish configuration:</p>



<p></p>



<figure class="wp-block-image size-full"><a href="https://library.nagios.com/wp-content/uploads/2025/02/image-117.png"><img loading="lazy" decoding="async" width="908" height="433" src="https://library.nagios.com/wp-content/uploads/2025/02/image-117.png" alt="image 117" class="wp-image-44876" title="Monitor Windows Server with Nagios XI and NSClient++ 40" srcset="https://library.nagios.com/wp-content/uploads/2025/02/image-117.png 908w, https://library.nagios.com/wp-content/uploads/2025/02/image-117-300x143.png 300w, https://library.nagios.com/wp-content/uploads/2025/02/image-117-768x366.png 768w" sizes="(max-width: 908px) 100vw, 908px" /></a><figcaption class="wp-element-caption">Final settings.</figcaption></figure>



<figure class="wp-block-image size-full"><a href="https://library.nagios.com/wp-content/uploads/2025/02/image-121.png"><img loading="lazy" decoding="async" width="747" height="439" src="https://library.nagios.com/wp-content/uploads/2025/02/image-121.png" alt="image 121" class="wp-image-44893" title="Monitor Windows Server with Nagios XI and NSClient++ 41" srcset="https://library.nagios.com/wp-content/uploads/2025/02/image-121.png 747w, https://library.nagios.com/wp-content/uploads/2025/02/image-121-300x176.png 300w" sizes="(max-width: 747px) 100vw, 747px" /></a><figcaption class="wp-element-caption">Successful install.</figcaption></figure>



<hr class="wp-block-separator has-alpha-channel-opacity"/>



<h2 class="wp-block-heading">Step 4: Verify Monitoring</h2>



<p>1. Navigate to <strong>Views </strong>&gt; Host Detail &gt; Select your Windows Server:</p>



<figure class="wp-block-image size-full"><a href="https://library.nagios.com/wp-content/uploads/2025/02/image-125.png"><img loading="lazy" decoding="async" width="597" height="487" src="https://library.nagios.com/wp-content/uploads/2025/02/image-125.png" alt="image 125" class="wp-image-45201" title="Monitor Windows Server with Nagios XI and NSClient++ 42" srcset="https://library.nagios.com/wp-content/uploads/2025/02/image-125.png 597w, https://library.nagios.com/wp-content/uploads/2025/02/image-125-300x245.png 300w" sizes="(max-width: 597px) 100vw, 597px" /></a><figcaption class="wp-element-caption">Host details.</figcaption></figure>



<p>2. Confirm your windows machine and the services you&#8217;ve selected are being monitored: </p>



<figure class="wp-block-image size-large"><a href="https://library.nagios.com/wp-content/uploads/2025/02/image-123.png"><img loading="lazy" decoding="async" width="1024" height="289" src="https://library.nagios.com/wp-content/uploads/2025/02/image-123-1024x289.png" alt="image 123" class="wp-image-45196" title="Monitor Windows Server with Nagios XI and NSClient++ 43" srcset="https://library.nagios.com/wp-content/uploads/2025/02/image-123-1024x289.png 1024w, https://library.nagios.com/wp-content/uploads/2025/02/image-123-300x85.png 300w, https://library.nagios.com/wp-content/uploads/2025/02/image-123-768x217.png 768w, https://library.nagios.com/wp-content/uploads/2025/02/image-123.png 1460w" sizes="(max-width: 1024px) 100vw, 1024px" /></a><figcaption class="wp-element-caption">Host status details.</figcaption></figure>



<hr class="wp-block-separator has-alpha-channel-opacity"/>



<h2 class="wp-block-heading">Troubleshooting</h2>



<h4 class="wp-block-heading">Firewall</h4>



<p>Make sure all ports that need to be open can be accessed from the Nagios XI server</p>



<ul class="wp-block-list">
<li>TCP port 12489 for NSClientServer (Nagios XI Server check_nt &gt; Windows Machine)</li>



<li>TCP port 5666 for NRPEServer (Nagios XI Server check_nrpe &gt; Windows Machine)</li>



<li>TCP port 5667 for NSCAClient (Windows Machine &gt; Nagios XI Server)</li>



<li>TCP port 80 or 443 for NRDPClient (Windows Machine &gt; Nagios XI Server)</li>
</ul>



<p>You can test if a port is accessible by using the nmap command from the Nagios XI server. Establish a terminal session to your Nagios XI server as root and run the following command: </p>



<div class="wp-block-kevinbatdorf-code-block-pro" data-code-block-pro-font-family="Code-Pro-Geist-Mono" style="font-size:.875rem;font-family:Code-Pro-Geist-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:1.5rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)"><span role="button" tabindex="0" style="color:#D4D4D4;display:none" aria-label="Copy" class="code-block-pro-copy-button"><pre class="code-block-pro-copy-button-pre" aria-hidden="true"><textarea class="code-block-pro-copy-button-textarea" tabindex="-1" aria-hidden="true" readonly>nmap &#91;windows_machine_ip_address&#93; -p T:12489</textarea></pre><svg xmlns="http://www.w3.org/2000/svg" style="width:24px;height:24px" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2"><path class="with-check" stroke-linecap="round" stroke-linejoin="round" d="M4.5 12.75l6 6 9-13.5"></path><path class="without-check" stroke-linecap="round" stroke-linejoin="round" d="M16.5 8.25V6a2.25 2.25 0 00-2.25-2.25H6A2.25 2.25 0 003.75 6v8.25A2.25 2.25 0 006 16.5h2.25m8.25-8.25H18a2.25 2.25 0 012.25 2.25V18A2.25 2.25 0 0118 20.25h-7.5A2.25 2.25 0 018.25 18v-1.5m8.25-8.25h-6a2.25 2.25 0 00-2.25 2.25v6"></path></svg></span><pre class="shiki dark-plus" style="background-color: #1E1E1E" tabindex="0"><code><span class="line"><span style="color: #9CDCFE">nmap</span><span style="color: #D4D4D4"> &#91;</span><span style="color: #9CDCFE">windows_machine_ip_address</span><span style="color: #D4D4D4">&#93; -</span><span style="color: #9CDCFE">p</span><span style="color: #D4D4D4"> </span><span style="color: #C8C8C8">T</span><span style="color: #D4D4D4">:</span><span style="color: #B5CEA8">12489</span></span></code></pre></div>



<p></p>



<p>If <strong>nmap</strong> command output shows the <strong>STATE</strong> as <strong>open</strong>, then you have a successful connection to the NSClientT++</p>



<figure class="wp-block-image size-full"><a href="https://library.nagios.com/wp-content/uploads/2025/02/image-131.png"><img loading="lazy" decoding="async" width="514" height="165" src="https://library.nagios.com/wp-content/uploads/2025/02/image-131.png" alt="image 131" class="wp-image-45365" title="Monitor Windows Server with Nagios XI and NSClient++ 44" srcset="https://library.nagios.com/wp-content/uploads/2025/02/image-131.png 514w, https://library.nagios.com/wp-content/uploads/2025/02/image-131-300x96.png 300w" sizes="(max-width: 514px) 100vw, 514px" /></a><figcaption>Monitor Windows Server with Nagios XI and NSClient++ 46</figcaption></figure>



<p>If <strong>nmap</strong> command output shows the <strong>STATE </strong>as <strong>closed</strong> or <strong>filtered</strong>, then NSClient++ is NOT listening on that port or is being blocked by a firewall.</p>



<p></p>



<h4 class="wp-block-heading">Log File</h4>



<p>To troubleshoot issues, you can review the NSCLIENT++ log file nsclient.log typically located<br>in: <strong>C:\Program Files\NSClient++\nsclient.log</strong></p>



<p></p>



<p></p>



<p></p>



<p>If you have additional questions or other support-related questions, please visit Nagios <a href="https://support.nagios.com/" data-type="link" data-id="https://support.nagios.com/forum" target="_blank" rel="noopener">Support</a>. The <a href="https://support.nagios.com/kb" data-type="link" data-id="https://support.nagios.com/kb" target="_blank" rel="noopener">Nagios Support Knowledgebase</a> is also a great support resource.</p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>Monitor Windows Server with Nagios XI and SNMP</title>
		<link>https://library.nagios.com/monitoring/monitor-windows-server-with-nagios-xi-and-snmp/</link>
		
		<dc:creator><![CDATA[Salamon Anzel]]></dc:creator>
		<pubDate>Thu, 06 Feb 2025 18:25:34 +0000</pubDate>
				<category><![CDATA[Monitoring]]></category>
		<category><![CDATA[Documentation]]></category>
		<category><![CDATA[Operating System Monitoring]]></category>
		<category><![CDATA[Setup & Installation]]></category>
		<category><![CDATA[SNMP]]></category>
		<category><![CDATA[Windows Monitoring]]></category>
		<category><![CDATA[Windows Server 2012]]></category>
		<category><![CDATA[Windows Server 2019]]></category>
		<category><![CDATA[Windows Server 2022]]></category>
		<category><![CDATA[Windows Server 2025]]></category>
		<guid isPermaLink="false">https://library.nagios.com/?p=44151</guid>

					<description><![CDATA[Unlock the full potential of your Windows Server 2022 with Nagios XI and SNMP.]]></description>
										<content:encoded><![CDATA[
<p>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.</p>



<hr class="wp-block-separator has-alpha-channel-opacity"/>



<h2 class="wp-block-heading">SNMP vs. NCPA</h2>



<div class="wp-block-columns is-layout-flex wp-container-core-columns-is-layout-28f84493 wp-block-columns-is-layout-flex">
<div class="wp-block-column is-layout-flow wp-block-column-is-layout-flow" style="flex-basis:100%">
<figure class="wp-block-table"><table class="has-fixed-layout"><tbody><tr><td><strong>Feature</strong></td><td><strong>SNMP (Simple Network Management Protocol)</strong></td><td><strong>NCPA (Nagios Cross-Platform Agent)</strong></td></tr><tr><td><strong>Type</strong></td><td>Agentless Protocol</td><td>Agent-Based</td></tr><tr><td><strong><strong>Data Collected</strong></strong></td><td>Basic metrics (CPU, Memory, Disk, Network)</td><td>Detailed system metrics, logs and custom scripts</td></tr><tr><td><strong>Security</strong></td><td>Less Secure (Uses Community strings)</td><td>More Secure (Token-based authentication and API)</td></tr><tr><td><strong><strong>Customization</strong></strong></td><td>Limited (Relies on predefined OIDs)</td><td>Highly Customizable (API &amp; scripting support)</td></tr><tr><td><strong><strong>Real-Time Monitoring</strong></strong></td><td>Supports polling, but limited real-time events</td><td>Real-time data collection &amp; active monitoring</td></tr><tr><td><strong><strong>Best Use Case</strong></strong></td><td>Simple network-wide monitoring</td><td>Deep monitoring of Windows &amp; Linux systems</td></tr></tbody></table></figure>
</div>
</div>



<p><strong>Summary:</strong></p>



<ul class="wp-block-list">
<li><strong>Use SNMP</strong> if you need basic monitoring without installing an agent.</li>



<li><strong>Use NCPA</strong> if you need in-depth Windows monitoring with strong Nagios integration.</li>
</ul>



<p></p>



<p>For information on NCPA and Windows Server. See <a href="https://library.nagios.com/documentation/how-to-monitor-windows-server-with-ncpa/" data-type="link" data-id="https://library.nagios.com/uncategorized/how-to-monitor-windows-2022-with-nagios-xi-and-snmp/" target="_blank" rel="noreferrer noopener">How To Monitor Windows Server with Nagios XI and NCPA</a>.</p>



<hr class="wp-block-separator has-alpha-channel-opacity"/>



<h2 class="wp-block-heading">Step 1: Install SNMP on Windows Server</h2>



<h3 class="wp-block-heading"><strong>Method 1: Install SNMP via PowerShell</strong></h3>



<p>For a quicker installation, use PowerShell:</p>



<p>Open <strong>PowerShell as Administrator</strong>.</p>



<p>1. Run the following command:</p>



<div class="wp-block-kevinbatdorf-code-block-pro" data-code-block-pro-font-family="Code-Pro-Geist-Mono" style="font-size:.875rem;font-family:Code-Pro-Geist-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:1.5rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)"><span role="button" tabindex="0" style="color:#D4D4D4;display:none" aria-label="Copy" class="code-block-pro-copy-button"><pre class="code-block-pro-copy-button-pre" aria-hidden="true"><textarea class="code-block-pro-copy-button-textarea" tabindex="-1" aria-hidden="true" readonly>Add-WindowsFeature SNMP-Service</textarea></pre><svg xmlns="http://www.w3.org/2000/svg" style="width:24px;height:24px" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2"><path class="with-check" stroke-linecap="round" stroke-linejoin="round" d="M4.5 12.75l6 6 9-13.5"></path><path class="without-check" stroke-linecap="round" stroke-linejoin="round" d="M16.5 8.25V6a2.25 2.25 0 00-2.25-2.25H6A2.25 2.25 0 003.75 6v8.25A2.25 2.25 0 006 16.5h2.25m8.25-8.25H18a2.25 2.25 0 012.25 2.25V18A2.25 2.25 0 0118 20.25h-7.5A2.25 2.25 0 018.25 18v-1.5m8.25-8.25h-6a2.25 2.25 0 00-2.25 2.25v6"></path></svg></span><pre class="shiki dark-plus" style="background-color: #1E1E1E" tabindex="0"><code><span class="line"><span style="color: #9CDCFE">Add</span><span style="color: #D4D4D4">-</span><span style="color: #9CDCFE">WindowsFeature</span><span style="color: #D4D4D4"> </span><span style="color: #4FC1FF">SNMP</span><span style="color: #D4D4D4">-</span><span style="color: #9CDCFE">Service</span></span></code></pre></div>



<p><br>To install <strong>SNMP Tools</strong> (optional):</p>



<div class="wp-block-kevinbatdorf-code-block-pro" data-code-block-pro-font-family="Code-Pro-Geist-Mono" style="font-size:.875rem;font-family:Code-Pro-Geist-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:1.5rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)"><span role="button" tabindex="0" style="color:#D4D4D4;display:none" aria-label="Copy" class="code-block-pro-copy-button"><pre class="code-block-pro-copy-button-pre" aria-hidden="true"><textarea class="code-block-pro-copy-button-textarea" tabindex="-1" aria-hidden="true" readonly>Add-WindowsFeature RSAT-SNMP</textarea></pre><svg xmlns="http://www.w3.org/2000/svg" style="width:24px;height:24px" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2"><path class="with-check" stroke-linecap="round" stroke-linejoin="round" d="M4.5 12.75l6 6 9-13.5"></path><path class="without-check" stroke-linecap="round" stroke-linejoin="round" d="M16.5 8.25V6a2.25 2.25 0 00-2.25-2.25H6A2.25 2.25 0 003.75 6v8.25A2.25 2.25 0 006 16.5h2.25m8.25-8.25H18a2.25 2.25 0 012.25 2.25V18A2.25 2.25 0 0118 20.25h-7.5A2.25 2.25 0 018.25 18v-1.5m8.25-8.25h-6a2.25 2.25 0 00-2.25 2.25v6"></path></svg></span><pre class="shiki dark-plus" style="background-color: #1E1E1E" tabindex="0"><code><span class="line"><span style="color: #9CDCFE">Add</span><span style="color: #D4D4D4">-</span><span style="color: #9CDCFE">WindowsFeature</span><span style="color: #D4D4D4"> </span><span style="color: #4FC1FF">RSAT</span><span style="color: #D4D4D4">-</span><span style="color: #4FC1FF">SNMP</span></span></code></pre></div>



<p>2. Verify installation with:</p>



<div class="wp-block-kevinbatdorf-code-block-pro" data-code-block-pro-font-family="Code-Pro-Geist-Mono" style="font-size:.875rem;font-family:Code-Pro-Geist-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:1.5rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)"><span role="button" tabindex="0" style="color:#D4D4D4;display:none" aria-label="Copy" class="code-block-pro-copy-button"><pre class="code-block-pro-copy-button-pre" aria-hidden="true"><textarea class="code-block-pro-copy-button-textarea" tabindex="-1" aria-hidden="true" readonly>Get-WindowsFeature | Where-Object { $_.Name -like "*SNMP*" }</textarea></pre><svg xmlns="http://www.w3.org/2000/svg" style="width:24px;height:24px" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2"><path class="with-check" stroke-linecap="round" stroke-linejoin="round" d="M4.5 12.75l6 6 9-13.5"></path><path class="without-check" stroke-linecap="round" stroke-linejoin="round" d="M16.5 8.25V6a2.25 2.25 0 00-2.25-2.25H6A2.25 2.25 0 003.75 6v8.25A2.25 2.25 0 006 16.5h2.25m8.25-8.25H18a2.25 2.25 0 012.25 2.25V18A2.25 2.25 0 0118 20.25h-7.5A2.25 2.25 0 018.25 18v-1.5m8.25-8.25h-6a2.25 2.25 0 00-2.25 2.25v6"></path></svg></span><pre class="shiki dark-plus" style="background-color: #1E1E1E" tabindex="0"><code><span class="line"><span style="color: #9CDCFE">Get</span><span style="color: #D4D4D4">-</span><span style="color: #9CDCFE">WindowsFeature</span><span style="color: #D4D4D4"> | </span><span style="color: #9CDCFE">Where</span><span style="color: #D4D4D4">-</span><span style="color: #9CDCFE">Object</span><span style="color: #D4D4D4"> { </span><span style="color: #9CDCFE">$_</span><span style="color: #D4D4D4">.</span><span style="color: #9CDCFE">Name</span><span style="color: #D4D4D4"> -</span><span style="color: #9CDCFE">like</span><span style="color: #D4D4D4"> </span><span style="color: #CE9178">&quot;*SNMP*&quot;</span><span style="color: #D4D4D4"> }</span></span></code></pre></div>



<hr class="wp-block-separator has-alpha-channel-opacity"/>



<h3 class="wp-block-heading"><strong>Method 2: Install SNMP via Server Manager</strong></h3>



<p>1. Click on <strong>Start</strong>, then open <strong>Server Manager</strong>.</p>



<figure class="wp-block-image size-full is-resized"><a href="https://library.nagios.com/wp-content/uploads/2025/02/image-44.png"><img loading="lazy" decoding="async" width="44" height="37" src="https://library.nagios.com/wp-content/uploads/2025/02/image-44.png" alt="image 44" class="wp-image-44255" style="width:44px;height:auto" title="Monitor Windows Server with Nagios XI and SNMP 47"></a><figcaption class="wp-element-caption">Windows Start Button.</figcaption></figure>



<figure class="wp-block-image size-full"><a href="https://library.nagios.com/wp-content/uploads/2025/02/image-45.png"><img loading="lazy" decoding="async" width="169" height="56" src="https://library.nagios.com/wp-content/uploads/2025/02/image-45.png" alt="image 45" class="wp-image-44256" title="Monitor Windows Server with Nagios XI and SNMP 48"></a><figcaption class="wp-element-caption">Server Manager.</figcaption></figure>



<p>2. Click <strong>Add Roles and Features</strong>.</p>



<figure class="wp-block-image size-full"><a href="https://library.nagios.com/wp-content/uploads/2025/02/image-47.png"><img loading="lazy" decoding="async" width="1003" height="440" src="https://library.nagios.com/wp-content/uploads/2025/02/image-47.png" alt="Server Manager dashboard with options" class="wp-image-44260" title="Monitor Windows Server with Nagios XI and SNMP 49" srcset="https://library.nagios.com/wp-content/uploads/2025/02/image-47.png 1003w, https://library.nagios.com/wp-content/uploads/2025/02/image-47-300x132.png 300w, https://library.nagios.com/wp-content/uploads/2025/02/image-47-768x337.png 768w" sizes="(max-width: 1003px) 100vw, 1003px" /></a><figcaption class="wp-element-caption">Add roles and features.</figcaption></figure>



<p>3. For<strong> Installation Type</strong>, choose <strong>Role-based or feature-based installation</strong> → Click <strong>Next</strong>.</p>



<figure class="wp-block-image size-full"><a href="https://library.nagios.com/wp-content/uploads/2025/02/image-49.png"><img loading="lazy" decoding="async" width="777" height="552" src="https://library.nagios.com/wp-content/uploads/2025/02/image-49.png" alt="Installation type selection for server setup" class="wp-image-44263" title="Monitor Windows Server with Nagios XI and SNMP 50" srcset="https://library.nagios.com/wp-content/uploads/2025/02/image-49.png 777w, https://library.nagios.com/wp-content/uploads/2025/02/image-49-300x213.png 300w, https://library.nagios.com/wp-content/uploads/2025/02/image-49-768x546.png 768w" sizes="(max-width: 777px) 100vw, 777px" /></a><figcaption class="wp-element-caption">Installation Type.</figcaption></figure>



<p>4. For <strong>Destination Server</strong>, choose your server → Click <strong>Next</strong>.</p>



<figure class="wp-block-image size-full"><a href="https://library.nagios.com/wp-content/uploads/2025/02/image-50.png"><img loading="lazy" decoding="async" width="775" height="553" src="https://library.nagios.com/wp-content/uploads/2025/02/image-50.png" alt="Server selection in installation wizard" class="wp-image-44265" title="Monitor Windows Server with Nagios XI and SNMP 51" srcset="https://library.nagios.com/wp-content/uploads/2025/02/image-50.png 775w, https://library.nagios.com/wp-content/uploads/2025/02/image-50-300x214.png 300w, https://library.nagios.com/wp-content/uploads/2025/02/image-50-768x548.png 768w" sizes="(max-width: 775px) 100vw, 775px" /></a><figcaption class="wp-element-caption">Server Selection.</figcaption></figure>



<p>5. Skip the <strong>Roles Section</strong>, Click <strong>Next</strong> (SNMP is a feature, not a role).</p>



<figure class="wp-block-image size-full"><a href="https://library.nagios.com/wp-content/uploads/2025/02/image-53.png"><img loading="lazy" decoding="async" width="776" height="554" src="https://library.nagios.com/wp-content/uploads/2025/02/image-53.png" alt="Server roles selection in Windows setup" class="wp-image-44270" title="Monitor Windows Server with Nagios XI and SNMP 52" srcset="https://library.nagios.com/wp-content/uploads/2025/02/image-53.png 776w, https://library.nagios.com/wp-content/uploads/2025/02/image-53-300x214.png 300w, https://library.nagios.com/wp-content/uploads/2025/02/image-53-768x548.png 768w" sizes="(max-width: 776px) 100vw, 776px" /></a><figcaption class="wp-element-caption">Server Roles.</figcaption></figure>



<p>6. In <strong>Features</strong>, scroll down to <strong>SNMP Service</strong>. Check the box for <strong>SNMP Service</strong>.</p>



<p>(Optional) Select <strong>SNMP Tools</strong> if you want SNMP utilities for management.</p>



<figure class="wp-block-image size-full"><a href="https://library.nagios.com/wp-content/uploads/2025/02/image-52.png"><img loading="lazy" decoding="async" width="775" height="554" src="https://library.nagios.com/wp-content/uploads/2025/02/image-52.png" alt="image 52" class="wp-image-44269" title="Monitor Windows Server with Nagios XI and SNMP 53" srcset="https://library.nagios.com/wp-content/uploads/2025/02/image-52.png 775w, https://library.nagios.com/wp-content/uploads/2025/02/image-52-300x214.png 300w, https://library.nagios.com/wp-content/uploads/2025/02/image-52-768x549.png 768w" sizes="(max-width: 775px) 100vw, 775px" /></a><figcaption class="wp-element-caption">Features.</figcaption></figure>



<p>7. <strong>Confirm Installation</strong>, click <strong>Next</strong>, then <strong>Install</strong>.</p>



<figure class="wp-block-image size-full"><a href="https://library.nagios.com/wp-content/uploads/2025/02/image-54.png"><img loading="lazy" decoding="async" width="774" height="551" src="https://library.nagios.com/wp-content/uploads/2025/02/image-54.png" alt="image 54" class="wp-image-44272" title="Monitor Windows Server with Nagios XI and SNMP 54" srcset="https://library.nagios.com/wp-content/uploads/2025/02/image-54.png 774w, https://library.nagios.com/wp-content/uploads/2025/02/image-54-300x214.png 300w, https://library.nagios.com/wp-content/uploads/2025/02/image-54-768x547.png 768w" sizes="(max-width: 774px) 100vw, 774px" /></a><figcaption class="wp-element-caption">Confirmation.</figcaption></figure>



<p>Wait for the installation to complete.</p>



<figure class="wp-block-image size-full"><a href="https://library.nagios.com/wp-content/uploads/2025/02/image-55.png"><img loading="lazy" decoding="async" width="774" height="551" src="https://library.nagios.com/wp-content/uploads/2025/02/image-55.png" alt="image 55" class="wp-image-44273" title="Monitor Windows Server with Nagios XI and SNMP 55" srcset="https://library.nagios.com/wp-content/uploads/2025/02/image-55.png 774w, https://library.nagios.com/wp-content/uploads/2025/02/image-55-300x214.png 300w, https://library.nagios.com/wp-content/uploads/2025/02/image-55-768x547.png 768w" sizes="(max-width: 774px) 100vw, 774px" /></a><figcaption class="wp-element-caption">Installation in progress.</figcaption></figure>



<figure class="wp-block-image size-full"><a href="https://library.nagios.com/wp-content/uploads/2025/02/image-56.png"><img loading="lazy" decoding="async" width="777" height="552" src="https://library.nagios.com/wp-content/uploads/2025/02/image-56.png" alt="image 56" class="wp-image-44274" title="Monitor Windows Server with Nagios XI and SNMP 56" srcset="https://library.nagios.com/wp-content/uploads/2025/02/image-56.png 777w, https://library.nagios.com/wp-content/uploads/2025/02/image-56-300x213.png 300w, https://library.nagios.com/wp-content/uploads/2025/02/image-56-768x546.png 768w" sizes="(max-width: 777px) 100vw, 777px" /></a><figcaption class="wp-element-caption">Installation complete.</figcaption></figure>



<p>8. Verify Installation.</p>



<p>Click on <strong>Start</strong>, then open the <strong>Services App</strong>.</p>



<figure class="wp-block-image size-full is-resized"><a href="https://library.nagios.com/wp-content/uploads/2025/02/image-44.png"><img loading="lazy" decoding="async" width="44" height="37" src="https://library.nagios.com/wp-content/uploads/2025/02/image-44.png" alt="image 44" class="wp-image-44255" style="width:44px;height:auto" title="Monitor Windows Server with Nagios XI and SNMP 47"></a><figcaption class="wp-element-caption">Windows Start button</figcaption></figure>



<figure class="wp-block-image size-full"><a href="https://library.nagios.com/wp-content/uploads/2025/02/image-57.png"><img loading="lazy" decoding="async" width="119" height="56" src="https://library.nagios.com/wp-content/uploads/2025/02/image-57.png" alt="Settings icon with &#039;Services&#039; label" class="wp-image-44275" title="Monitor Windows Server with Nagios XI and SNMP 58"></a><figcaption class="wp-element-caption">Services App.</figcaption></figure>



<p>Look for <strong>SNMP Service</strong> in the list.</p>



<figure class="wp-block-image size-full"><a href="https://library.nagios.com/wp-content/uploads/2025/02/image-58.png"><img loading="lazy" decoding="async" width="601" height="20" src="https://library.nagios.com/wp-content/uploads/2025/02/image-58.png" alt="image 58" class="wp-image-44277" title="Monitor Windows Server with Nagios XI and SNMP 59" srcset="https://library.nagios.com/wp-content/uploads/2025/02/image-58.png 601w, https://library.nagios.com/wp-content/uploads/2025/02/image-58-300x10.png 300w" sizes="(max-width: 601px) 100vw, 601px" /></a><figcaption class="wp-element-caption">SNMP Service Running</figcaption></figure>



<p>If not running, right-click <strong>SNMP Service</strong> → Click <strong>Start</strong>.</p>



<figure class="wp-block-image size-full"><a href="https://library.nagios.com/wp-content/uploads/2025/02/image-59.png"><img loading="lazy" decoding="async" width="284" height="247" src="https://library.nagios.com/wp-content/uploads/2025/02/image-59.png" alt="Menu showing SNMP Service options" class="wp-image-44280" title="Monitor Windows Server with Nagios XI and SNMP 60"></a><figcaption class="wp-element-caption">Start SNMP Service.</figcaption></figure>



<hr class="wp-block-separator has-alpha-channel-opacity"/>



<h2 class="wp-block-heading">Step 3: Configure Windows Server SNMP</h2>



<p>Right-click on <strong>SNMP Service</strong> and select <strong>Properties</strong>, then the <strong>Security </strong>tab:</p>



<figure class="wp-block-image size-full"><a href="https://library.nagios.com/wp-content/uploads/2025/02/image-63.png"><img loading="lazy" decoding="async" width="360" height="242" src="https://library.nagios.com/wp-content/uploads/2025/02/image-63.png" alt="Menu options for SNMP Service settings" class="wp-image-44360" title="Monitor Windows Server with Nagios XI and SNMP 61" srcset="https://library.nagios.com/wp-content/uploads/2025/02/image-63.png 360w, https://library.nagios.com/wp-content/uploads/2025/02/image-63-300x202.png 300w" sizes="(max-width: 360px) 100vw, 360px" /></a><figcaption class="wp-element-caption">SNMP Service Properties.</figcaption></figure>



<p>Click <strong>Add</strong> under <strong>Accepted community names</strong>.</p>



<p>In the <strong>Community Name</strong> field, enter <strong>nagios</strong> (or your preferred community string).</p>



<p>Select <strong>Read-Only</strong> for minimal access (or <strong>Read-Write</strong> if needed).</p>



<p>Click <strong>OK</strong> to save the community string.</p>



<figure class="wp-block-image size-full"><a href="https://library.nagios.com/wp-content/uploads/2025/02/image-67.png"><img loading="lazy" decoding="async" width="397" height="472" src="https://library.nagios.com/wp-content/uploads/2025/02/image-67.png" alt="SNMP service configuration settings window" class="wp-image-44382" title="Monitor Windows Server with Nagios XI and SNMP 62" srcset="https://library.nagios.com/wp-content/uploads/2025/02/image-67.png 397w, https://library.nagios.com/wp-content/uploads/2025/02/image-67-252x300.png 252w" sizes="(max-width: 397px) 100vw, 397px" /></a><figcaption class="wp-element-caption">Adding Accepted community names.</figcaption></figure>



<p>Under <strong>&#8220;Accept SNMP packets from these hosts&#8221;</strong>, click <strong>Add</strong>.</p>



<p>Enter the <strong>IP Address</strong> of the Nagios XI server.</p>



<p>Click <strong>Add</strong> to save the IP entry.</p>



<figure class="wp-block-image size-full"><a href="https://library.nagios.com/wp-content/uploads/2025/02/image-66.png"><img loading="lazy" decoding="async" width="396" height="473" src="https://library.nagios.com/wp-content/uploads/2025/02/image-66.png" alt="SNMP service configuration settings displayed" class="wp-image-44381" title="Monitor Windows Server with Nagios XI and SNMP 63" srcset="https://library.nagios.com/wp-content/uploads/2025/02/image-66.png 396w, https://library.nagios.com/wp-content/uploads/2025/02/image-66-251x300.png 251w" sizes="(max-width: 396px) 100vw, 396px" /></a><figcaption class="wp-element-caption">Adding Accepted SNMP Host.</figcaption></figure>



<p>Click <strong>Apply</strong>, then <strong>OK</strong></p>



<p>Right-click <strong>SNMP Service</strong> → Click <strong>Restart</strong>.</p>



<figure class="wp-block-image size-full"><a href="https://library.nagios.com/wp-content/uploads/2025/02/image-68.png"><img loading="lazy" decoding="async" width="248" height="245" src="https://library.nagios.com/wp-content/uploads/2025/02/image-68.png" alt="Menu with SNMP service options" class="wp-image-44385" title="Monitor Windows Server with Nagios XI and SNMP 64"></a><figcaption class="wp-element-caption">Restart SNMP Service.</figcaption></figure>



<hr class="wp-block-separator has-alpha-channel-opacity"/>



<h2 class="wp-block-heading">Step 4: Configure Nagios XI to Monitor Windows Server via SNMP</h2>



<p>1. Log into Nagios XI.</p>



<p>2. Go to <strong>Configure → Configuration Wizards</strong>.</p>



<figure class="wp-block-image size-full"><a href="https://library.nagios.com/wp-content/uploads/2025/02/image-7.png"><img loading="lazy" decoding="async" width="583" height="145" src="https://library.nagios.com/wp-content/uploads/2025/02/image-7.png" alt="Menu with configuration options displayed" class="wp-image-43957" title="Monitor Windows Server with Nagios XI and SNMP 65" srcset="https://library.nagios.com/wp-content/uploads/2025/02/image-7.png 583w, https://library.nagios.com/wp-content/uploads/2025/02/image-7-300x75.png 300w" sizes="(max-width: 583px) 100vw, 583px" /></a><figcaption class="wp-element-caption">Nagios XI Configuration Wizard.</figcaption></figure>



<p></p>



<p>3. Select <strong>Windows SNMP</strong> </p>



<figure class="wp-block-image size-full"><a href="https://library.nagios.com/wp-content/uploads/2025/02/image-71.png"><img loading="lazy" decoding="async" width="400" height="69" src="https://library.nagios.com/wp-content/uploads/2025/02/image-71.png" alt="image 71" class="wp-image-44418" title="Monitor Windows Server with Nagios XI and SNMP 66" srcset="https://library.nagios.com/wp-content/uploads/2025/02/image-71.png 400w, https://library.nagios.com/wp-content/uploads/2025/02/image-71-300x52.png 300w" sizes="(max-width: 400px) 100vw, 400px" /></a><figcaption class="wp-element-caption">Windows SNMP button.</figcaption></figure>



<p></p>



<p>4. Enter Windows Server SNMP Details.</p>



<p><strong>IP Address</strong>: The IP of your <strong>Windows Server</strong>.</p>



<p><strong>Operating System:</strong> If you&#8217;re Windows Server is higher than 2019, then select <strong>Windows Server 2019</strong>.</p>



<p><strong>SNMP Version</strong>: Select <strong>SNMP v2c</strong> (or v3 if configured).</p>



<p><strong>Port</strong>: Leave as <strong>161</strong> (default).</p>



<p><strong>SNMP Community String</strong>: The same string configured on Windows (e.g., <code>nagios</code> or public).</p>



<figure class="wp-block-image size-full"><a href="https://library.nagios.com/wp-content/uploads/2025/02/image-122.png"><img loading="lazy" decoding="async" width="940" height="651" src="https://library.nagios.com/wp-content/uploads/2025/02/image-122.png" alt="Windows SNMP Configuration Wizard interface" class="wp-image-44899" title="Monitor Windows Server with Nagios XI and SNMP 67" srcset="https://library.nagios.com/wp-content/uploads/2025/02/image-122.png 940w, https://library.nagios.com/wp-content/uploads/2025/02/image-122-300x208.png 300w, https://library.nagios.com/wp-content/uploads/2025/02/image-122-768x532.png 768w" sizes="(max-width: 940px) 100vw, 940px" /></a><figcaption>Monitor Windows Server with Nagios XI and SNMP 80</figcaption></figure>



<p>Click <strong>Next</strong>.</p>



<p></p>



<p>5. Enter SNMP Monitoring Details.</p>



<p>Choose the metrics you want to monitor, such as:</p>



<p><strong>CPU Usage</strong></p>



<p><strong>Memory Usage</strong></p>



<p><strong>Disk Usage</strong></p>



<p><strong>Network Interface Traffic</strong></p>



<figure class="wp-block-image size-large"><a href="https://library.nagios.com/wp-content/uploads/2025/02/image-74.png"><img loading="lazy" decoding="async" width="1024" height="827" src="https://library.nagios.com/wp-content/uploads/2025/02/image-74-1024x827.png" alt="Windows SNMP Configuration Wizard interface" class="wp-image-44431" title="Monitor Windows Server with Nagios XI and SNMP 68" srcset="https://library.nagios.com/wp-content/uploads/2025/02/image-74-1024x827.png 1024w, https://library.nagios.com/wp-content/uploads/2025/02/image-74-300x242.png 300w, https://library.nagios.com/wp-content/uploads/2025/02/image-74-768x620.png 768w, https://library.nagios.com/wp-content/uploads/2025/02/image-74.png 1225w" sizes="(max-width: 1024px) 100vw, 1024px" /></a><figcaption class="wp-element-caption">Monitoring details.</figcaption></figure>



<p>Click <strong>Next</strong>.</p>



<p></p>



<p>6. Configure the Monitoring Settings:</p>



<p>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.</p>



<figure class="wp-block-image size-full"><a href="https://library.nagios.com/wp-content/uploads/2025/02/image-75.png"><img loading="lazy" decoding="async" width="961" height="479" src="https://library.nagios.com/wp-content/uploads/2025/02/image-75.png" alt="Windows SNMP Configuration Wizard interface" class="wp-image-44435" title="Monitor Windows Server with Nagios XI and SNMP 69" srcset="https://library.nagios.com/wp-content/uploads/2025/02/image-75.png 961w, https://library.nagios.com/wp-content/uploads/2025/02/image-75-300x150.png 300w, https://library.nagios.com/wp-content/uploads/2025/02/image-75-768x383.png 768w" sizes="(max-width: 961px) 100vw, 961px" /></a><figcaption class="wp-element-caption">Monitoring settings.</figcaption></figure>



<p>Click <strong>Next</strong>.</p>



<p></p>



<p>7. Configure the Notification Settings:</p>



<figure class="wp-block-image size-full"><a href="https://library.nagios.com/wp-content/uploads/2025/02/image-118.png"><img loading="lazy" decoding="async" width="917" height="992" src="https://library.nagios.com/wp-content/uploads/2025/02/image-118.png" alt="SNMP configuration settings in Nagios XI" class="wp-image-44882" title="Monitor Windows Server with Nagios XI and SNMP 70" srcset="https://library.nagios.com/wp-content/uploads/2025/02/image-118.png 917w, https://library.nagios.com/wp-content/uploads/2025/02/image-118-277x300.png 277w, https://library.nagios.com/wp-content/uploads/2025/02/image-118-768x831.png 768w" sizes="(max-width: 917px) 100vw, 917px" /></a><figcaption class="wp-element-caption">Notification settings.</figcaption></figure>



<p></p>



<p>Click <strong>Next</strong>.</p>



<p></p>



<p>8. Add your Windows Server to any <strong>Host Groups</strong>, <strong>Service Groups</strong>, or<strong> Parent Host</strong>.</p>



<figure class="wp-block-image size-large"><a href="https://library.nagios.com/wp-content/uploads/2025/02/image-76.png"><img loading="lazy" decoding="async" width="1024" height="909" src="https://library.nagios.com/wp-content/uploads/2025/02/image-76-1024x909.png" alt="Windows snmp config wizard" class="wp-image-44449" title="Monitor Windows Server with Nagios XI and SNMP 71" srcset="https://library.nagios.com/wp-content/uploads/2025/02/image-76-1024x909.png 1024w, https://library.nagios.com/wp-content/uploads/2025/02/image-76-300x266.png 300w, https://library.nagios.com/wp-content/uploads/2025/02/image-76-768x682.png 768w, https://library.nagios.com/wp-content/uploads/2025/02/image-76.png 1041w" sizes="(max-width: 1024px) 100vw, 1024px" /></a><figcaption class="wp-element-caption">Host Groups, Service Groups, or Parent Host.</figcaption></figure>



<p>Click <strong>Next. </strong></p>



<p></p>



<p>10. Click <strong>Finish &amp; Apply</strong> to apply configuration. </p>



<figure class="wp-block-image size-full"><a href="https://library.nagios.com/wp-content/uploads/2025/02/image-119.png"><img loading="lazy" decoding="async" width="942" height="444" src="https://library.nagios.com/wp-content/uploads/2025/02/image-119.png" alt="Windows snmp config wizard" class="wp-image-44887" title="Monitor Windows Server with Nagios XI and SNMP 72" srcset="https://library.nagios.com/wp-content/uploads/2025/02/image-119.png 942w, https://library.nagios.com/wp-content/uploads/2025/02/image-119-300x141.png 300w, https://library.nagios.com/wp-content/uploads/2025/02/image-119-768x362.png 768w" sizes="(max-width: 942px) 100vw, 942px" /></a><figcaption class="wp-element-caption">Final settings.</figcaption></figure>



<figure class="wp-block-image size-full"><a href="https://library.nagios.com/wp-content/uploads/2025/02/image-120.png"><img loading="lazy" decoding="async" width="942" height="444" src="https://library.nagios.com/wp-content/uploads/2025/02/image-120.png" alt="Windows snmp config wizard" class="wp-image-44889" title="Monitor Windows Server with Nagios XI and SNMP 73" srcset="https://library.nagios.com/wp-content/uploads/2025/02/image-120.png 942w, https://library.nagios.com/wp-content/uploads/2025/02/image-120-300x141.png 300w, https://library.nagios.com/wp-content/uploads/2025/02/image-120-768x362.png 768w" sizes="(max-width: 942px) 100vw, 942px" /></a><figcaption class="wp-element-caption">Successful install.</figcaption></figure>



<hr class="wp-block-separator has-alpha-channel-opacity"/>



<h2 class="wp-block-heading">Step 4: Verify Monitoring</h2>



<p>1. Navigate to <strong>Views </strong>&gt; Host Detail &gt; Select your Windows Server.</p>



<figure class="wp-block-image size-full"><a href="https://library.nagios.com/wp-content/uploads/2025/02/image-78.png"><img loading="lazy" decoding="async" width="597" height="499" src="https://library.nagios.com/wp-content/uploads/2025/02/image-78.png" alt="Views &gt; Host Detail." class="wp-image-44500" title="Monitor Windows Server with Nagios XI and SNMP 74" srcset="https://library.nagios.com/wp-content/uploads/2025/02/image-78.png 597w, https://library.nagios.com/wp-content/uploads/2025/02/image-78-300x251.png 300w" sizes="(max-width: 597px) 100vw, 597px" /></a><figcaption class="wp-element-caption">Views &gt; Host Detail.</figcaption></figure>



<p>2. Confirm your windows machine and the services you&#8217;ve selected are being monitored: <br></p>



<figure class="wp-block-image size-large"><a href="https://library.nagios.com/wp-content/uploads/2025/02/image-79.png"><img loading="lazy" decoding="async" width="1024" height="280" src="https://library.nagios.com/wp-content/uploads/2025/02/image-79-1024x280.png" alt="Confirm your windows machine" class="wp-image-44501" title="Monitor Windows Server with Nagios XI and SNMP 75" srcset="https://library.nagios.com/wp-content/uploads/2025/02/image-79-1024x280.png 1024w, https://library.nagios.com/wp-content/uploads/2025/02/image-79-300x82.png 300w, https://library.nagios.com/wp-content/uploads/2025/02/image-79-768x210.png 768w, https://library.nagios.com/wp-content/uploads/2025/02/image-79.png 1480w" sizes="(max-width: 1024px) 100vw, 1024px" /></a><figcaption class="wp-element-caption"><br>3. Verify Monitoring.</figcaption></figure>



<figure class="wp-block-image size-full"><a href="https://library.nagios.com/wp-content/uploads/2025/02/image-127.png"><img loading="lazy" decoding="async" width="601" height="391" src="https://library.nagios.com/wp-content/uploads/2025/02/image-127.png" alt="Verify Monitoring" class="wp-image-45212" title="Monitor Windows Server with Nagios XI and SNMP 76" srcset="https://library.nagios.com/wp-content/uploads/2025/02/image-127.png 601w, https://library.nagios.com/wp-content/uploads/2025/02/image-127-300x195.png 300w" sizes="(max-width: 601px) 100vw, 601px" /></a><figcaption>Monitor Windows Server with Nagios XI and SNMP 81</figcaption></figure>



<hr class="wp-block-separator has-alpha-channel-opacity"/>



<h2 class="wp-block-heading">Troubleshooting</h2>



<h3 class="wp-block-heading">Confirm SNMP firewall port 161 is open</h3>



<p>Confirm SNMP Firewall is open on the Windows Server by running the below command in Powershell: </p>



<div class="wp-block-kevinbatdorf-code-block-pro" data-code-block-pro-font-family="Code-Pro-Geist-Mono" style="font-size:.875rem;font-family:Code-Pro-Geist-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:1.5rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)"><span role="button" tabindex="0" style="color:#D4D4D4;display:none" aria-label="Copy" class="code-block-pro-copy-button"><pre class="code-block-pro-copy-button-pre" aria-hidden="true"><textarea class="code-block-pro-copy-button-textarea" tabindex="-1" aria-hidden="true" readonly>Get-NetFirewallRule | Where-Object { $_.Name -eq "SNMP-In-UDP" } | 
Select-Object Name, DisplayName, @{Name="LocalPort";Expression={(Get-NetFirewallPortFilter -AssociatedNetFirewallRule $_.Name).LocalPort}}, Enabled, Direction, Action
</textarea></pre><svg xmlns="http://www.w3.org/2000/svg" style="width:24px;height:24px" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2"><path class="with-check" stroke-linecap="round" stroke-linejoin="round" d="M4.5 12.75l6 6 9-13.5"></path><path class="without-check" stroke-linecap="round" stroke-linejoin="round" d="M16.5 8.25V6a2.25 2.25 0 00-2.25-2.25H6A2.25 2.25 0 003.75 6v8.25A2.25 2.25 0 006 16.5h2.25m8.25-8.25H18a2.25 2.25 0 012.25 2.25V18A2.25 2.25 0 0118 20.25h-7.5A2.25 2.25 0 018.25 18v-1.5m8.25-8.25h-6a2.25 2.25 0 00-2.25 2.25v6"></path></svg></span><pre class="shiki dark-plus" style="background-color: #1E1E1E" tabindex="0"><code><span class="line"><span style="color: #9CDCFE">Get</span><span style="color: #D4D4D4">-</span><span style="color: #9CDCFE">NetFirewallRule</span><span style="color: #D4D4D4"> | </span><span style="color: #9CDCFE">Where</span><span style="color: #D4D4D4">-</span><span style="color: #9CDCFE">Object</span><span style="color: #D4D4D4"> { </span><span style="color: #9CDCFE">$_</span><span style="color: #D4D4D4">.</span><span style="color: #9CDCFE">Name</span><span style="color: #D4D4D4"> -</span><span style="color: #9CDCFE">eq</span><span style="color: #D4D4D4"> </span><span style="color: #CE9178">&quot;SNMP-In-UDP&quot;</span><span style="color: #D4D4D4"> } | </span></span>
<span class="line"><span style="color: #9CDCFE">Select</span><span style="color: #D4D4D4">-</span><span style="color: #9CDCFE">Object</span><span style="color: #D4D4D4"> </span><span style="color: #9CDCFE">Name</span><span style="color: #D4D4D4">, </span><span style="color: #9CDCFE">DisplayName</span><span style="color: #D4D4D4">, @{</span><span style="color: #9CDCFE">Name</span><span style="color: #D4D4D4">=</span><span style="color: #CE9178">&quot;LocalPort&quot;</span><span style="color: #D4D4D4">;</span><span style="color: #9CDCFE">Expression</span><span style="color: #D4D4D4">={(Get-NetFirewallPortFilter -AssociatedNetFirewallRule $_.Name).</span><span style="color: #9CDCFE">LocalPort</span><span style="color: #D4D4D4">}}, </span><span style="color: #9CDCFE">Enabled</span><span style="color: #D4D4D4">, </span><span style="color: #9CDCFE">Direction</span><span style="color: #D4D4D4">, </span><span style="color: #9CDCFE">Action</span></span>
<span class="line"></span></code></pre></div>



<p>Confirm that the <strong>Enabled</strong> is <strong>True </strong>and <strong>Action </strong>is <strong>Allowed</strong>.</p>



<figure class="wp-block-image size-large"><a href="https://library.nagios.com/wp-content/uploads/2025/02/image-80.png"><img loading="lazy" decoding="async" width="1024" height="129" src="https://library.nagios.com/wp-content/uploads/2025/02/image-80-1024x129.png" alt="image 80" class="wp-image-44516" title="Monitor Windows Server with Nagios XI and SNMP 77" srcset="https://library.nagios.com/wp-content/uploads/2025/02/image-80-1024x129.png 1024w, https://library.nagios.com/wp-content/uploads/2025/02/image-80-300x38.png 300w, https://library.nagios.com/wp-content/uploads/2025/02/image-80-768x97.png 768w, https://library.nagios.com/wp-content/uploads/2025/02/image-80.png 1192w" sizes="(max-width: 1024px) 100vw, 1024px" /></a><figcaption class="wp-element-caption">Get-NetFirewallRule output.</figcaption></figure>



<p></p>



<p>If it&#8217;s closed, you can enable it by running: </p>



<div class="wp-block-kevinbatdorf-code-block-pro" data-code-block-pro-font-family="Code-Pro-Geist-Mono" style="font-size:.875rem;font-family:Code-Pro-Geist-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:1.5rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)"><span role="button" tabindex="0" style="color:#D4D4D4;display:none" aria-label="Copy" class="code-block-pro-copy-button"><pre class="code-block-pro-copy-button-pre" aria-hidden="true"><textarea class="code-block-pro-copy-button-textarea" tabindex="-1" aria-hidden="true" readonly>New-NetFirewallRule -DisplayName "Allow SNMP" -Direction Inbound -Protocol UDP -LocalPort 161 -Action Allow</textarea></pre><svg xmlns="http://www.w3.org/2000/svg" style="width:24px;height:24px" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2"><path class="with-check" stroke-linecap="round" stroke-linejoin="round" d="M4.5 12.75l6 6 9-13.5"></path><path class="without-check" stroke-linecap="round" stroke-linejoin="round" d="M16.5 8.25V6a2.25 2.25 0 00-2.25-2.25H6A2.25 2.25 0 003.75 6v8.25A2.25 2.25 0 006 16.5h2.25m8.25-8.25H18a2.25 2.25 0 012.25 2.25V18A2.25 2.25 0 0118 20.25h-7.5A2.25 2.25 0 018.25 18v-1.5m8.25-8.25h-6a2.25 2.25 0 00-2.25 2.25v6"></path></svg></span><pre class="shiki dark-plus" style="background-color: #1E1E1E" tabindex="0"><code><span class="line"><span style="color: #9CDCFE">New</span><span style="color: #D4D4D4">-</span><span style="color: #9CDCFE">NetFirewallRule</span><span style="color: #D4D4D4"> -</span><span style="color: #9CDCFE">DisplayName</span><span style="color: #D4D4D4"> </span><span style="color: #CE9178">&quot;Allow SNMP&quot;</span><span style="color: #D4D4D4"> -</span><span style="color: #9CDCFE">Direction</span><span style="color: #D4D4D4"> </span><span style="color: #9CDCFE">Inbound</span><span style="color: #D4D4D4"> -</span><span style="color: #9CDCFE">Protocol</span><span style="color: #D4D4D4"> </span><span style="color: #4FC1FF">UDP</span><span style="color: #D4D4D4"> -</span><span style="color: #9CDCFE">LocalPort</span><span style="color: #D4D4D4"> </span><span style="color: #B5CEA8">161</span><span style="color: #D4D4D4"> -</span><span style="color: #9CDCFE">Action</span><span style="color: #D4D4D4"> </span><span style="color: #9CDCFE">Allow</span></span></code></pre></div>



<p></p>



<p>You can also confirm in the Windows Defender Firewall with Advanced Security Setting here: </p>



<figure class="wp-block-image size-large"><a href="https://library.nagios.com/wp-content/uploads/2025/02/image-83.png"><img loading="lazy" decoding="async" width="1024" height="752" src="https://library.nagios.com/wp-content/uploads/2025/02/image-83-1024x752.png" alt="Firewall Rule UI" class="wp-image-44531" title="Monitor Windows Server with Nagios XI and SNMP 78" srcset="https://library.nagios.com/wp-content/uploads/2025/02/image-83-1024x752.png 1024w, https://library.nagios.com/wp-content/uploads/2025/02/image-83-300x220.png 300w, https://library.nagios.com/wp-content/uploads/2025/02/image-83-768x564.png 768w, https://library.nagios.com/wp-content/uploads/2025/02/image-83.png 1365w" sizes="(max-width: 1024px) 100vw, 1024px" /></a><figcaption class="wp-element-caption">Firewall Rule UI.</figcaption></figure>



<h3 class="wp-block-heading">Wizard detected that server does not have snmpwalk permission</h3>



<figure class="wp-block-image size-large"><a href="https://library.nagios.com/wp-content/uploads/2025/02/image-84.png"><img loading="lazy" decoding="async" width="1024" height="310" src="https://library.nagios.com/wp-content/uploads/2025/02/image-84-1024x310.png" alt="SNMPwalk alert" class="wp-image-44565" title="Monitor Windows Server with Nagios XI and SNMP 79" srcset="https://library.nagios.com/wp-content/uploads/2025/02/image-84-1024x310.png 1024w, https://library.nagios.com/wp-content/uploads/2025/02/image-84-300x91.png 300w, https://library.nagios.com/wp-content/uploads/2025/02/image-84-768x233.png 768w, https://library.nagios.com/wp-content/uploads/2025/02/image-84.png 1248w" sizes="(max-width: 1024px) 100vw, 1024px" /></a><figcaption class="wp-element-caption">SNMPwalk alert.</figcaption></figure>



<p>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. </p>



<p>Restart the SNMP Service on the Windows server to see if the issue still occurs. </p>



<p>Please know alerts like this won&#8217;t stop a successful configuration. </p>



<hr class="wp-block-separator has-alpha-channel-opacity"/>



<p>If you have additional questions or other support-related questions, please visit Nagios <a href="https://support.nagios.com/" data-type="link" data-id="https://support.nagios.com/forum" target="_blank" rel="noopener">Support</a>. The <a href="https://support.nagios.com/kb" data-type="link" data-id="https://support.nagios.com/kb" target="_blank" rel="noopener">Nagios Support Knowledgebase</a> is also a great support resource.</p>



<p></p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>Monitor Windows Server with Nagios XI and NCPA</title>
		<link>https://library.nagios.com/documentation/monitor-windows-server-with-ncpa/</link>
		
		<dc:creator><![CDATA[Salamon Anzel]]></dc:creator>
		<pubDate>Mon, 03 Feb 2025 20:20:24 +0000</pubDate>
				<category><![CDATA[Documentation]]></category>
		<category><![CDATA[Monitoring]]></category>
		<category><![CDATA[Application & Server Monitoring]]></category>
		<category><![CDATA[Operating System Monitoring]]></category>
		<category><![CDATA[Setup & Installation]]></category>
		<category><![CDATA[Windows Monitoring]]></category>
		<category><![CDATA[Windows Server 2012]]></category>
		<category><![CDATA[Windows Server 2019]]></category>
		<category><![CDATA[Windows Server 2022]]></category>
		<category><![CDATA[Windows Server 2025]]></category>
		<guid isPermaLink="false">https://library.nagios.com/?p=43442</guid>

					<description><![CDATA[Monitoring your Windows Server environment is essential for ensuring system performance, uptime, and security. By using Nagios XI alongside the Nagios Cross-Platform Agent (NCPA), you can efficiently monitor your server with seamless integration between the two tools. NCPA collects critical system metrics, while Nagios XI provides a powerful interface for visualization, alerting, and management. In [&#8230;]]]></description>
										<content:encoded><![CDATA[
<p>Monitoring your Windows Server environment is essential for ensuring system performance, uptime, and security. By using Nagios XI alongside the Nagios Cross-Platform Agent (NCPA), you can efficiently monitor your server with seamless integration between the two tools. NCPA collects critical system metrics, while Nagios XI provides a powerful interface for visualization, alerting, and management. In this guide, we’ll walk you through the process of setting up Windows Server monitoring using both NCPA and Nagios XI.</p>



<h2 class="wp-block-heading">What is NCPA?</h2>



<p>NCPA (Nagios Cross-Platform Agent) is a powerful and flexible monitoring agent that allows Nagios to gather performance metrics from Windows, Linux, and MacOS systems. It helps administrators monitor CPU usage, memory, disk space, processes, and much more with minimal configuration.</p>



<h2 class="wp-block-heading">Active vs. Passive</h2>



<p>NCPA can be used for both Active and Passive monitoring:<br>• Active = Nagios is responsible for performing the check on a schedule.<br>• Passive = NCPA is responsible for submitting check results in Nagios.<br><br>The NCPA installer may prompt you for settings for active and passive. Active is the most common<br>method used. If you are not using passive monitoring, then you do not need to configure those<br>settings.</p>



<h2 class="wp-block-heading">Graphical vs. Silent</h2>



<p>The key differences between a <strong>Graphical (GUI) Install</strong> and a <strong>Silent Install</strong> of NCPA lie in user interaction, customization, deployment efficiency, and installation speed. A <strong>GUI install</strong> involves a step-by-step wizard requiring manual input, making it ideal for users who prefer an interactive approach. It allows customization during installation but is not suitable for large-scale deployments. In contrast, a <strong>silent install</strong> runs automatically via command-line execution with predefined parameters, making it the best option for mass deployment across multiple servers. While the <strong>GUI install</strong> is slower due to manual input, the <strong>silent install</strong> is faster and more efficient, though it requires careful pre-configuration to avoid misconfigurations.</p>



<hr class="wp-block-separator has-alpha-channel-opacity"/>



<h2 class="wp-block-heading"><strong>Step 1: Download NCPA</strong></h2>



<ol start="1" class="wp-block-list">
<li>Open a web browser and go to the official <a href="https://www.nagios.org/ncpa/" target="_blank" rel="noreferrer noopener"><strong>Nagios NCPA</strong> download page</a>.</li>



<li>Click on<strong> &#8220;Download&#8221;</strong>, then select the <strong>Windows</strong> version of NCPA.</li>



<li>Save the<strong> ncpa-latest.exe</strong> installer to your preferred location on the Windows Server.</li>
</ol>



<figure class="wp-block-image size-full"><a href="https://library.nagios.com/wp-content/uploads/2025/02/widowsinstaller.png"><img loading="lazy" decoding="async" width="143" height="234" src="https://library.nagios.com/wp-content/uploads/2025/02/widowsinstaller.png" alt="widowsinstaller" class="wp-image-43855" title="Monitor Windows Server with Nagios XI and NCPA 82"></a><figcaption class="wp-element-caption">ncpa installer &#8211; windows</figcaption></figure>



<hr class="wp-block-separator has-alpha-channel-opacity"/>



<h2 class="wp-block-heading"><strong>Step 2: Install NCPA</strong></h2>



<h3 class="wp-block-heading"><strong>Option A: Graphical Install (Recommended)</strong></h3>



<p>To see how this is done in Nagios XI, check out this tutorial: </p>



<figure class="wp-block-embed is-type-video is-provider-youtube wp-block-embed-youtube wp-embed-aspect-16-9 wp-has-aspect-ratio"><div class="wp-block-embed__wrapper">
<iframe title="How To Monitor Windows Servers With Nagios XI" width="800" height="450" src="https://www.youtube.com/embed/83lXumA6zLs?start=10&#038;feature=oembed" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" referrerpolicy="strict-origin-when-cross-origin" allowfullscreen></iframe>
</div></figure>



<p></p>



<p>Follow these steps for a straightforward installation using the graphical interface:</p>



<p><strong>1. </strong>Locate the downloaded <strong>ncpa-latest.exe</strong> file on your machine.</p>



<figure class="wp-block-image size-full"><a href="https://library.nagios.com/wp-content/uploads/2025/02/ncpa_latest.png"><img loading="lazy" decoding="async" width="138" height="35" src="https://library.nagios.com/wp-content/uploads/2025/02/ncpa_latest.png" alt="ncpa latest" class="wp-image-43883" title="Monitor Windows Server with Nagios XI and NCPA 83"></a><figcaption class="wp-element-caption">ncpa-latest.exe</figcaption></figure>



<p><strong>2. </strong>Double-click the installer to begin the installation process.</p>



<p><strong>3. </strong>The <strong>Welcome screen</strong> will appear. Click <strong>Next</strong> to proceed.<br></p>



<figure class="wp-block-image size-full"><a href="https://library.nagios.com/wp-content/uploads/2025/02/welcome_screen.png"><img loading="lazy" decoding="async" width="497" height="384" src="https://library.nagios.com/wp-content/uploads/2025/02/welcome_screen.png" alt="welcome screen" class="wp-image-43887" title="Monitor Windows Server with Nagios XI and NCPA 84" srcset="https://library.nagios.com/wp-content/uploads/2025/02/welcome_screen.png 497w, https://library.nagios.com/wp-content/uploads/2025/02/welcome_screen-300x232.png 300w" sizes="(max-width: 497px) 100vw, 497px" /></a><figcaption class="wp-element-caption">welcome screen</figcaption></figure>



<p></p>



<p><strong>4. License Agreement</strong>:</p>



<ul class="wp-block-list">
<li>Review the license agreement.</li>



<li>Click <strong>I Agree</strong> to accept the terms and continue.</li>
</ul>



<figure class="wp-block-image size-full"><a href="https://library.nagios.com/wp-content/uploads/2025/02/license_agreement-1.png"><img loading="lazy" decoding="async" width="498" height="385" src="https://library.nagios.com/wp-content/uploads/2025/02/license_agreement-1.png" alt="license agreement 1" class="wp-image-43892" title="Monitor Windows Server with Nagios XI and NCPA 85" srcset="https://library.nagios.com/wp-content/uploads/2025/02/license_agreement-1.png 498w, https://library.nagios.com/wp-content/uploads/2025/02/license_agreement-1-300x232.png 300w" sizes="(max-width: 498px) 100vw, 498px" /></a><figcaption class="wp-element-caption">license agreement</figcaption></figure>



<p><br><strong>5. Listener Configuration</strong>:</p>



<figure class="wp-block-image size-full"><a href="https://library.nagios.com/wp-content/uploads/2025/02/listener-config.png"><img loading="lazy" decoding="async" width="490" height="379" src="https://library.nagios.com/wp-content/uploads/2025/02/listener-config.png" alt="listener config" class="wp-image-44045" title="Monitor Windows Server with Nagios XI and NCPA 86" srcset="https://library.nagios.com/wp-content/uploads/2025/02/listener-config.png 490w, https://library.nagios.com/wp-content/uploads/2025/02/listener-config-300x232.png 300w" sizes="(max-width: 490px) 100vw, 490px" /></a><figcaption class="wp-element-caption">listener configuration</figcaption></figure>



<ul class="wp-block-list">
<li><strong>Token</strong>: Enter a strong token (e.g., Str0ngTok3n) for API calls, which Nagios will use to connect.</li>



<li><strong>Bind IP</strong>: Leave as 0.0.0.0 to bind to all available IPv4 addresses on the Windows machine.</li>



<li><strong>Bind Port</strong>: By default, it binds to port 5693.</li>



<li><strong>SSL Version</strong>: Choose the version (TLSv1.0–1.2). Default is TLSv1.2.</li>



<li><strong>Log Level</strong>: Set this to warning unless you need additional details for debugging.<br></li>
</ul>



<p>Click <strong>Next</strong> to proceed.<br></p>



<p><strong>6. Setup the Passive Configuration (Optional)</strong>:</p>



<figure class="wp-block-image size-full"><a href="https://library.nagios.com/wp-content/uploads/2025/02/passive-config-1.png"><img loading="lazy" decoding="async" width="492" height="380" src="https://library.nagios.com/wp-content/uploads/2025/02/passive-config-1.png" alt="passive config 1" class="wp-image-43900" title="Monitor Windows Server with Nagios XI and NCPA 87" srcset="https://library.nagios.com/wp-content/uploads/2025/02/passive-config-1.png 492w, https://library.nagios.com/wp-content/uploads/2025/02/passive-config-1-300x232.png 300w" sizes="(max-width: 492px) 100vw, 492px" /></a><figcaption class="wp-element-caption">passive configuration</figcaption></figure>



<ul class="wp-block-list">
<li><strong>URL</strong>: The URL on your Nagios Host that accepts passive check results.</li>



<li><strong>NRDP Token</strong>: This token will be used for passing passive checks to Nagios. It’s different from the active check token.</li>



<li><strong>Hostname</strong>: Specify the hostname for the passive checks on the Nagios Server.</li>



<li><strong>Check Interval:</strong> How often the passive checks will be sent.</li>
</ul>



<p>Click <strong>Next</strong> to proceed.<br></p>



<p><strong>7. Select Passive Service Checks</strong> <strong>(Optional):</strong></p>



<figure class="wp-block-image size-full"><a href="https://library.nagios.com/wp-content/uploads/2025/02/passive-config-2-1.png"><img loading="lazy" decoding="async" width="490" height="377" src="https://library.nagios.com/wp-content/uploads/2025/02/passive-config-2-1.png" alt="passive config 2 1" class="wp-image-43910" title="Monitor Windows Server with Nagios XI and NCPA 88" srcset="https://library.nagios.com/wp-content/uploads/2025/02/passive-config-2-1.png 490w, https://library.nagios.com/wp-content/uploads/2025/02/passive-config-2-1-300x231.png 300w" sizes="(max-width: 490px) 100vw, 490px" /></a><figcaption class="wp-element-caption">passive checks</figcaption></figure>



<p>Default passive service checks will be displayed. You can modify them as required.<br><br>Click <strong>Next</strong> to proceed.<br><br><br><strong>8.</strong> <strong>Choose User Installation</strong>:</p>



<p>Decide whether to install NCPA for just the user account performing the installation or for all users.<br></p>



<figure class="wp-block-image size-full"><a href="https://library.nagios.com/wp-content/uploads/2025/02/image.png"><img loading="lazy" decoding="async" width="770" height="597" src="https://library.nagios.com/wp-content/uploads/2025/02/image.png" alt="image" class="wp-image-43924" title="Monitor Windows Server with Nagios XI and NCPA 89" srcset="https://library.nagios.com/wp-content/uploads/2025/02/image.png 770w, https://library.nagios.com/wp-content/uploads/2025/02/image-300x233.png 300w, https://library.nagios.com/wp-content/uploads/2025/02/image-768x595.png 768w" sizes="(max-width: 770px) 100vw, 770px" /></a><figcaption class="wp-element-caption">choose user</figcaption></figure>



<p><br>Click <strong>Next</strong> to continue.</p>



<p></p>



<p><strong>9. Choose Installation Directory</strong>:</p>



<p>The default installation directory is <strong>C:\Program Files (x86)\Nagios\NCPA</strong>. You can modify the installation path if needed.</p>



<figure class="wp-block-image size-full"><a href="https://library.nagios.com/wp-content/uploads/2025/02/install_location-1.png"><img loading="lazy" decoding="async" width="493" height="381" src="https://library.nagios.com/wp-content/uploads/2025/02/install_location-1.png" alt="install location 1" class="wp-image-43930" title="Monitor Windows Server with Nagios XI and NCPA 90" srcset="https://library.nagios.com/wp-content/uploads/2025/02/install_location-1.png 493w, https://library.nagios.com/wp-content/uploads/2025/02/install_location-1-300x232.png 300w" sizes="(max-width: 493px) 100vw, 493px" /></a><figcaption class="wp-element-caption">install location</figcaption></figure>



<p><br>Click <strong>Install</strong> to proceed.<br></p>



<p><strong>10. Finish the Installation</strong>:</p>



<ul class="wp-block-list">
<li>Once installation is complete, click <strong>Finish</strong>.</li>
</ul>



<figure class="wp-block-image size-full"><a href="https://library.nagios.com/wp-content/uploads/2025/02/install-1.png"><img loading="lazy" decoding="async" width="493" height="381" src="https://library.nagios.com/wp-content/uploads/2025/02/install-1.png" alt="install 1" class="wp-image-43934" title="Monitor Windows Server with Nagios XI and NCPA 91" srcset="https://library.nagios.com/wp-content/uploads/2025/02/install-1.png 493w, https://library.nagios.com/wp-content/uploads/2025/02/install-1-300x232.png 300w" sizes="(max-width: 493px) 100vw, 493px" /></a><figcaption class="wp-element-caption">install in progress</figcaption></figure>



<figure class="wp-block-image size-full"><a href="https://library.nagios.com/wp-content/uploads/2025/02/install-2.png"><img loading="lazy" decoding="async" width="492" height="381" src="https://library.nagios.com/wp-content/uploads/2025/02/install-2.png" alt="install 2" class="wp-image-43935" title="Monitor Windows Server with Nagios XI and NCPA 92" srcset="https://library.nagios.com/wp-content/uploads/2025/02/install-2.png 492w, https://library.nagios.com/wp-content/uploads/2025/02/install-2-300x232.png 300w" sizes="(max-width: 492px) 100vw, 492px" /></a><figcaption class="wp-element-caption">install complete</figcaption></figure>



<hr class="wp-block-separator has-alpha-channel-opacity"/>



<h3 class="wp-block-heading"><strong>Option B – Silent Install</strong></h3>



<p>To perform a silent installation, you&#8217;ll use the installer with specific arguments. These arguments are added to the command line to configure the installation.</p>



<p><strong>Arguments Explained</strong></p>



<figure class="wp-block-table"><table class="has-fixed-layout"><tbody><tr><td><strong>Variable</strong></td><td><strong>Description</strong></td></tr><tr><td><strong>/S</strong></td><td>Tells the installer to perform a silent installation (no prompts).</td></tr><tr><td><strong>/D</strong></td><td>Specifies the directory where NCPA will be installed (optional).</td></tr><tr><td><strong>/TOKEN</strong></td><td>Defines the token for accessing the agent’s API and web interface.</td></tr><tr><td><strong>/IP</strong></td><td>Specifies the IP address to bind to (optional, default is 0.0.0.0 for all IPv4 addresses).</td></tr><tr><td><strong>/PORT</strong></td><td>Specifies the port to bind to (optional, default is 5693).</td></tr><tr><td><strong>/NRDPURL</strong></td><td>The URL on the Nagios server where passive check results are sent.</td></tr><tr><td><strong>/NRDPTOKEN</strong></td><td>The hostname that the passive checks will be associated with on the Nagios server.</td></tr><tr><td><strong>/NRDPHOSTNAME</strong></td><td>The hostname that the passive checks will be associated with on the Nagios server.</td></tr></tbody></table></figure>



<p><br><strong>Silent Installation Example Command</strong></p>



<p>In order to use the silent install, you must pass the <strong>/S</strong> value to the install as shown below.<br><br>The <code><strong>/D</strong></code> value is optional, but if included, it must be the last argument, cannot contain quotes, and must be an absolute path.<br></p>



<p><br>The below command will set the token in your ncpa.cfg to <strong>mytoken</strong>. The silent install will start the<br>NCPA listener and passive services. That’s all you need to do. Below is a reference for all available<br>configuration options for the silent install.</p>



<div class="wp-block-kevinbatdorf-code-block-pro" data-code-block-pro-font-family="Code-Pro-Geist-Mono" style="font-size:.875rem;font-family:Code-Pro-Geist-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:1.5rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)"><span role="button" tabindex="0" style="color:#D4D4D4;display:none" aria-label="Copy" class="code-block-pro-copy-button"><pre class="code-block-pro-copy-button-pre" aria-hidden="true"><textarea class="code-block-pro-copy-button-textarea" tabindex="-1" aria-hidden="true" readonly>ncpa-latest.exe /S /TOKEN='mytoken' /&lt;variable>='&lt;value>' /D=&lt;base directory> </textarea></pre><svg xmlns="http://www.w3.org/2000/svg" style="width:24px;height:24px" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2"><path class="with-check" stroke-linecap="round" stroke-linejoin="round" d="M4.5 12.75l6 6 9-13.5"></path><path class="without-check" stroke-linecap="round" stroke-linejoin="round" d="M16.5 8.25V6a2.25 2.25 0 00-2.25-2.25H6A2.25 2.25 0 003.75 6v8.25A2.25 2.25 0 006 16.5h2.25m8.25-8.25H18a2.25 2.25 0 012.25 2.25V18A2.25 2.25 0 0118 20.25h-7.5A2.25 2.25 0 018.25 18v-1.5m8.25-8.25h-6a2.25 2.25 0 00-2.25 2.25v6"></path></svg></span><pre class="shiki dark-plus" style="background-color: #1E1E1E" tabindex="0"><code><span class="line"><span style="color: #9CDCFE">ncpa</span><span style="color: #D4D4D4">-</span><span style="color: #9CDCFE">latest</span><span style="color: #D4D4D4">.</span><span style="color: #9CDCFE">exe</span><span style="color: #D4D4D4"> /</span><span style="color: #4FC1FF">S</span><span style="color: #D4D4D4"> /</span><span style="color: #4FC1FF">TOKEN</span><span style="color: #D4D4D4">=</span><span style="color: #CE9178">&#39;mytoken&#39;</span><span style="color: #D4D4D4"> /&lt;</span><span style="color: #9CDCFE">variable</span><span style="color: #D4D4D4">&gt;=</span><span style="color: #CE9178">&#39;&lt;value&gt;&#39;</span><span style="color: #D4D4D4"> /</span><span style="color: #4FC1FF">D</span><span style="color: #D4D4D4">=</span><span style="color: #808080">&lt;</span><span style="color: #569CD6">base</span><span style="color: #D4D4D4"> </span><span style="color: #9CDCFE">directory</span><span style="color: #808080">&gt;</span><span style="color: #D4D4D4"> </span></span></code></pre></div>



<p><br>Here’s an example command using the arguments above:</p>



<div class="wp-block-kevinbatdorf-code-block-pro" data-code-block-pro-font-family="Code-Pro-Geist-Mono" style="font-size:.875rem;font-family:Code-Pro-Geist-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:1.5rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)"><span role="button" tabindex="0" style="color:#D4D4D4;display:none" aria-label="Copy" class="code-block-pro-copy-button"><pre class="code-block-pro-copy-button-pre" aria-hidden="true"><textarea class="code-block-pro-copy-button-textarea" tabindex="-1" aria-hidden="true" readonly>ncpa-latest.exe /S /TOKEN='Str0ngT0k3n' /NRDPURL='http://10.25.5.12/nrdp/' /NRDPTOKEN='NRDP_T0k3n' /NRDPHOSTNAME='S1601'</textarea></pre><svg xmlns="http://www.w3.org/2000/svg" style="width:24px;height:24px" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2"><path class="with-check" stroke-linecap="round" stroke-linejoin="round" d="M4.5 12.75l6 6 9-13.5"></path><path class="without-check" stroke-linecap="round" stroke-linejoin="round" d="M16.5 8.25V6a2.25 2.25 0 00-2.25-2.25H6A2.25 2.25 0 003.75 6v8.25A2.25 2.25 0 006 16.5h2.25m8.25-8.25H18a2.25 2.25 0 012.25 2.25V18A2.25 2.25 0 0118 20.25h-7.5A2.25 2.25 0 018.25 18v-1.5m8.25-8.25h-6a2.25 2.25 0 00-2.25 2.25v6"></path></svg></span><pre class="shiki dark-plus" style="background-color: #1E1E1E" tabindex="0"><code><span class="line"><span style="color: #9CDCFE">ncpa</span><span style="color: #D4D4D4">-</span><span style="color: #9CDCFE">latest</span><span style="color: #D4D4D4">.</span><span style="color: #9CDCFE">exe</span><span style="color: #D4D4D4"> /</span><span style="color: #4FC1FF">S</span><span style="color: #D4D4D4"> /</span><span style="color: #4FC1FF">TOKEN</span><span style="color: #D4D4D4">=</span><span style="color: #CE9178">&#39;Str0ngT0k3n&#39;</span><span style="color: #D4D4D4"> /</span><span style="color: #4FC1FF">NRDPURL</span><span style="color: #D4D4D4">=</span><span style="color: #CE9178">&#39;http://10.25.5.12/nrdp/&#39;</span><span style="color: #D4D4D4"> /</span><span style="color: #4FC1FF">NRDPTOKEN</span><span style="color: #D4D4D4">=</span><span style="color: #CE9178">&#39;NRDP_T0k3n&#39;</span><span style="color: #D4D4D4"> /</span><span style="color: #4FC1FF">NRDPHOSTNAME</span><span style="color: #D4D4D4">=</span><span style="color: #CE9178">&#39;S1601&#39;</span></span></code></pre></div>



<hr class="wp-block-separator has-alpha-channel-opacity"/>



<h2 class="wp-block-heading"><strong>Step 3: Verify Installation</strong></h2>



<p><strong>1. Check the Nagios Cross-Platform Agent</strong>:</p>



<p>Press <strong>Windows Key + R</strong>, type <strong>services.msc</strong>, and press <strong>Enter</strong>.</p>



<figure class="wp-block-image size-full"><a href="https://library.nagios.com/wp-content/uploads/2025/02/image-1.png"><img loading="lazy" decoding="async" width="389" height="194" src="https://library.nagios.com/wp-content/uploads/2025/02/image-1.png" alt="image 1" class="wp-image-43947" title="Monitor Windows Server with Nagios XI and NCPA 93" srcset="https://library.nagios.com/wp-content/uploads/2025/02/image-1.png 389w, https://library.nagios.com/wp-content/uploads/2025/02/image-1-300x150.png 300w" sizes="(max-width: 389px) 100vw, 389px" /></a><figcaption class="wp-element-caption">windows + R &#8211; services.exe</figcaption></figure>



<p><br><br>Scroll through the list and locate <strong>Nagios Cross-Platform Agent</strong> to confirm it’s running.</p>



<figure class="wp-block-image size-full"><a href="https://library.nagios.com/wp-content/uploads/2025/02/image-2.png"><img loading="lazy" decoding="async" width="663" height="31" src="https://library.nagios.com/wp-content/uploads/2025/02/image-2.png" alt="image 2" class="wp-image-43948" title="Monitor Windows Server with Nagios XI and NCPA 94" srcset="https://library.nagios.com/wp-content/uploads/2025/02/image-2.png 663w, https://library.nagios.com/wp-content/uploads/2025/02/image-2-300x14.png 300w" sizes="(max-width: 663px) 100vw, 663px" /></a><figcaption class="wp-element-caption">NCPA service</figcaption></figure>



<p><br><br><strong>Alternatively, use Command Prompt</strong>:</p>



<p>Open a command prompt and run <strong>sc query ncpa</strong> </p>



<p>Confirm the <strong>STATE </strong>of <strong>ncpa </strong>is <strong>RUNNING</strong>:</p>



<div class="wp-block-kevinbatdorf-code-block-pro" data-code-block-pro-font-family="Code-Pro-Geist-Mono" style="font-size:.875rem;font-family:Code-Pro-Geist-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:1.5rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)"><span role="button" tabindex="0" style="color:#D4D4D4;display:none" aria-label="Copy" class="code-block-pro-copy-button"><pre class="code-block-pro-copy-button-pre" aria-hidden="true"><textarea class="code-block-pro-copy-button-textarea" tabindex="-1" aria-hidden="true" readonly>> sc query ncpa

If the service is running, you should see output like this:

SERVICE_NAME: ncpa

TYPE               : 10  WIN32_OWN_PROCESS

STATE              : 4  RUNNING

 (STOPPABLE, NOT_PAUSABLE, IGNORES_SHUTDOWN)

WIN32_EXIT_CODE    : 0  (0x0)

SERVICE_EXIT_CODE  : 0  (0x0)

CHECKPOINT         : 0x0

WAIT_HINT          : 0x0</textarea></pre><svg xmlns="http://www.w3.org/2000/svg" style="width:24px;height:24px" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2"><path class="with-check" stroke-linecap="round" stroke-linejoin="round" d="M4.5 12.75l6 6 9-13.5"></path><path class="without-check" stroke-linecap="round" stroke-linejoin="round" d="M16.5 8.25V6a2.25 2.25 0 00-2.25-2.25H6A2.25 2.25 0 003.75 6v8.25A2.25 2.25 0 006 16.5h2.25m8.25-8.25H18a2.25 2.25 0 012.25 2.25V18A2.25 2.25 0 0118 20.25h-7.5A2.25 2.25 0 018.25 18v-1.5m8.25-8.25h-6a2.25 2.25 0 00-2.25 2.25v6"></path></svg></span><pre class="shiki dark-plus" style="background-color: #1E1E1E" tabindex="0"><code><span class="line"><span style="color: #D4D4D4">&gt; </span><span style="color: #9CDCFE">sc</span><span style="color: #D4D4D4"> </span><span style="color: #9CDCFE">query</span><span style="color: #D4D4D4"> </span><span style="color: #9CDCFE">ncpa</span></span>
<span class="line"></span>
<span class="line"><span style="color: #9CDCFE">If</span><span style="color: #D4D4D4"> </span><span style="color: #9CDCFE">the</span><span style="color: #D4D4D4"> </span><span style="color: #9CDCFE">service</span><span style="color: #D4D4D4"> </span><span style="color: #9CDCFE">is</span><span style="color: #D4D4D4"> </span><span style="color: #9CDCFE">running</span><span style="color: #D4D4D4">, </span><span style="color: #9CDCFE">you</span><span style="color: #D4D4D4"> </span><span style="color: #9CDCFE">should</span><span style="color: #D4D4D4"> </span><span style="color: #9CDCFE">see</span><span style="color: #D4D4D4"> </span><span style="color: #9CDCFE">output</span><span style="color: #D4D4D4"> </span><span style="color: #9CDCFE">like</span><span style="color: #D4D4D4"> </span><span style="color: #C8C8C8">this</span><span style="color: #D4D4D4">:</span></span>
<span class="line"></span>
<span class="line"><span style="color: #C8C8C8">SERVICE_NAME</span><span style="color: #D4D4D4">: </span><span style="color: #9CDCFE">ncpa</span></span>
<span class="line"></span>
<span class="line"><span style="color: #C8C8C8">TYPE</span><span style="color: #D4D4D4">               : </span><span style="color: #B5CEA8">10</span><span style="color: #D4D4D4">  </span><span style="color: #4FC1FF">WIN32_OWN_PROCESS</span></span>
<span class="line"></span>
<span class="line"><span style="color: #C8C8C8">STATE</span><span style="color: #D4D4D4">              : </span><span style="color: #B5CEA8">4</span><span style="color: #D4D4D4">  </span><span style="color: #4FC1FF">RUNNING</span></span>
<span class="line"></span>
<span class="line"><span style="color: #D4D4D4"> (</span><span style="color: #4FC1FF">STOPPABLE</span><span style="color: #D4D4D4">, </span><span style="color: #4FC1FF">NOT_PAUSABLE</span><span style="color: #D4D4D4">, </span><span style="color: #4FC1FF">IGNORES_SHUTDOWN</span><span style="color: #D4D4D4">)</span></span>
<span class="line"></span>
<span class="line"><span style="color: #C8C8C8">WIN32_EXIT_CODE</span><span style="color: #D4D4D4">    : </span><span style="color: #B5CEA8">0</span><span style="color: #D4D4D4">  (</span><span style="color: #B5CEA8">0x0</span><span style="color: #D4D4D4">)</span></span>
<span class="line"></span>
<span class="line"><span style="color: #C8C8C8">SERVICE_EXIT_CODE</span><span style="color: #D4D4D4">  : </span><span style="color: #B5CEA8">0</span><span style="color: #D4D4D4">  (</span><span style="color: #B5CEA8">0x0</span><span style="color: #D4D4D4">)</span></span>
<span class="line"></span>
<span class="line"><span style="color: #C8C8C8">CHECKPOINT</span><span style="color: #D4D4D4">         : </span><span style="color: #B5CEA8">0x0</span></span>
<span class="line"></span>
<span class="line"><span style="color: #C8C8C8">WAIT_HINT</span><span style="color: #D4D4D4">          : </span><span style="color: #B5CEA8">0x0</span></span></code></pre></div>



<hr class="wp-block-separator has-alpha-channel-opacity"/>



<h2 class="wp-block-heading">Step 4: Test NCPA Installation</h2>



<h3 class="wp-block-heading"></h3>



<p>1. Open a web browser and navigate to:&nbsp;<code><strong>https://&lt;NCPA_IP_Address&gt;:5693/</strong></code></p>



<p>2. Bypass the security warning due to self-signed certificates by clicking&nbsp;<strong>More Information</strong> and selecting&nbsp;<strong>Go onto the webpage</strong>.</p>



<figure class="wp-block-image size-full"><a href="https://library.nagios.com/wp-content/uploads/2025/02/image-3.png"><img loading="lazy" decoding="async" width="840" height="550" src="https://library.nagios.com/wp-content/uploads/2025/02/image-3.png" alt="image 3" class="wp-image-43953" title="Monitor Windows Server with Nagios XI and NCPA 95" srcset="https://library.nagios.com/wp-content/uploads/2025/02/image-3.png 840w, https://library.nagios.com/wp-content/uploads/2025/02/image-3-300x196.png 300w, https://library.nagios.com/wp-content/uploads/2025/02/image-3-768x503.png 768w" sizes="(max-width: 840px) 100vw, 840px" /></a><figcaption class="wp-element-caption">site not secure</figcaption></figure>



<p>3. On the NCPA login page, enter the API token you configured in Step 2-6 and click&nbsp;<strong>Log In</strong>.</p>



<figure class="wp-block-image size-large"><a href="https://library.nagios.com/wp-content/uploads/2025/02/image-6.png"><img loading="lazy" decoding="async" width="1024" height="419" src="https://library.nagios.com/wp-content/uploads/2025/02/image-6-1024x419.png" alt="image 6" class="wp-image-43956" title="Monitor Windows Server with Nagios XI and NCPA 96" srcset="https://library.nagios.com/wp-content/uploads/2025/02/image-6-1024x419.png 1024w, https://library.nagios.com/wp-content/uploads/2025/02/image-6-300x123.png 300w, https://library.nagios.com/wp-content/uploads/2025/02/image-6-768x314.png 768w, https://library.nagios.com/wp-content/uploads/2025/02/image-6.png 1029w" sizes="(max-width: 1024px) 100vw, 1024px" /></a><figcaption class="wp-element-caption">NCPA login screen</figcaption></figure>



<p>4. Upon successful login, you will be directed to the NCPA Dashboard.</p>



<figure class="wp-block-image size-large"><a href="https://library.nagios.com/wp-content/uploads/2025/02/image-5.png"><img loading="lazy" decoding="async" width="1024" height="411" src="https://library.nagios.com/wp-content/uploads/2025/02/image-5-1024x411.png" alt="image 5" class="wp-image-43955" title="Monitor Windows Server with Nagios XI and NCPA 97" srcset="https://library.nagios.com/wp-content/uploads/2025/02/image-5-1024x411.png 1024w, https://library.nagios.com/wp-content/uploads/2025/02/image-5-300x120.png 300w, https://library.nagios.com/wp-content/uploads/2025/02/image-5-768x308.png 768w, https://library.nagios.com/wp-content/uploads/2025/02/image-5.png 1398w" sizes="(max-width: 1024px) 100vw, 1024px" /></a><figcaption class="wp-element-caption">NCPA UI dashboard</figcaption></figure>



<hr class="wp-block-separator has-alpha-channel-opacity"/>



<h2 class="wp-block-heading">Step 5: Adding your NCPA to Nagios XI</h2>



<p>1. Log into Nagios XI.</p>



<p>2. Go to <strong>Configure → Configuration Wizards</strong>.</p>



<figure class="wp-block-image size-full"><a href="https://library.nagios.com/wp-content/uploads/2025/02/image-7.png"><img loading="lazy" decoding="async" width="583" height="145" src="https://library.nagios.com/wp-content/uploads/2025/02/image-7.png" alt="image 7" class="wp-image-43957" title="Monitor Windows Server with Nagios XI and NCPA 98" srcset="https://library.nagios.com/wp-content/uploads/2025/02/image-7.png 583w, https://library.nagios.com/wp-content/uploads/2025/02/image-7-300x75.png 300w" sizes="(max-width: 583px) 100vw, 583px" /></a><figcaption class="wp-element-caption">Configuration Wizard</figcaption></figure>



<p><br>3. Select Windows Server from the list.</p>



<figure class="wp-block-image size-full"><a href="https://library.nagios.com/wp-content/uploads/2025/02/image-8.png"><img loading="lazy" decoding="async" width="391" height="82" src="https://library.nagios.com/wp-content/uploads/2025/02/image-8.png" alt="image 8" class="wp-image-43958" title="Monitor Windows Server with Nagios XI and NCPA 99" srcset="https://library.nagios.com/wp-content/uploads/2025/02/image-8.png 391w, https://library.nagios.com/wp-content/uploads/2025/02/image-8-300x63.png 300w" sizes="(max-width: 391px) 100vw, 391px" /></a><figcaption class="wp-element-caption">Windows Server</figcaption></figure>



<p>4. Enter the <strong>Windows Server&#8217;s IP Address</strong> and the <strong>NCPA API Token</strong> (from Step 2-6).<br></p>



<figure class="wp-block-image size-large"><a href="https://library.nagios.com/wp-content/uploads/2025/02/image-9.png"><img loading="lazy" decoding="async" width="1024" height="722" src="https://library.nagios.com/wp-content/uploads/2025/02/image-9-1024x722.png" alt="image 9" class="wp-image-43959" title="Monitor Windows Server with Nagios XI and NCPA 100" srcset="https://library.nagios.com/wp-content/uploads/2025/02/image-9-1024x722.png 1024w, https://library.nagios.com/wp-content/uploads/2025/02/image-9-300x212.png 300w, https://library.nagios.com/wp-content/uploads/2025/02/image-9-768x541.png 768w, https://library.nagios.com/wp-content/uploads/2025/02/image-9.png 1034w" sizes="(max-width: 1024px) 100vw, 1024px" /></a><figcaption class="wp-element-caption">Windows Server Configuration</figcaption></figure>



<p></p>



<p>5. Select the services to monitor (e.g., CPU, Memory, Disk, Services).</p>



<p><strong>NOTE: </strong>The default thresholds for the disk and memory space are a bit low, we recommended changing them to reflect your usage.</p>



<figure class="wp-block-image size-full"><a href="https://library.nagios.com/wp-content/uploads/2025/02/image-34.png"><img loading="lazy" decoding="async" width="1012" height="885" src="https://library.nagios.com/wp-content/uploads/2025/02/image-34.png" alt="image 34" class="wp-image-44065" title="Monitor Windows Server with Nagios XI and NCPA 101" srcset="https://library.nagios.com/wp-content/uploads/2025/02/image-34.png 1012w, https://library.nagios.com/wp-content/uploads/2025/02/image-34-300x262.png 300w, https://library.nagios.com/wp-content/uploads/2025/02/image-34-768x672.png 768w" sizes="(max-width: 1012px) 100vw, 1012px" /></a><figcaption class="wp-element-caption">services to monitor</figcaption></figure>



<figure class="wp-block-image size-large"><a href="https://library.nagios.com/wp-content/uploads/2025/02/image-15.png"><img loading="lazy" decoding="async" width="1024" height="667" src="https://library.nagios.com/wp-content/uploads/2025/02/image-15-1024x667.png" alt="image 15" class="wp-image-43966" title="Monitor Windows Server with Nagios XI and NCPA 102" srcset="https://library.nagios.com/wp-content/uploads/2025/02/image-15-1024x667.png 1024w, https://library.nagios.com/wp-content/uploads/2025/02/image-15-300x195.png 300w, https://library.nagios.com/wp-content/uploads/2025/02/image-15-768x500.png 768w, https://library.nagios.com/wp-content/uploads/2025/02/image-15.png 1305w" sizes="(max-width: 1024px) 100vw, 1024px" /></a><figcaption class="wp-element-caption">services to monitor</figcaption></figure>



<figure class="wp-block-image size-large"><a href="https://library.nagios.com/wp-content/uploads/2025/02/image-12.png"><img loading="lazy" decoding="async" width="1024" height="687" src="https://library.nagios.com/wp-content/uploads/2025/02/image-12-1024x687.png" alt="image 12" class="wp-image-43963" title="Monitor Windows Server with Nagios XI and NCPA 103" srcset="https://library.nagios.com/wp-content/uploads/2025/02/image-12-1024x687.png 1024w, https://library.nagios.com/wp-content/uploads/2025/02/image-12-300x201.png 300w, https://library.nagios.com/wp-content/uploads/2025/02/image-12-768x515.png 768w, https://library.nagios.com/wp-content/uploads/2025/02/image-12.png 1426w" sizes="(max-width: 1024px) 100vw, 1024px" /></a><figcaption class="wp-element-caption">services to monitor</figcaption></figure>



<p>Click <strong>Next</strong>.</p>



<p>6. Configure the Monitoring Settings: </p>



<p>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.</p>



<figure class="wp-block-image size-large"><a href="https://library.nagios.com/wp-content/uploads/2025/02/image-16.png"><img loading="lazy" decoding="async" width="1024" height="480" src="https://library.nagios.com/wp-content/uploads/2025/02/image-16-1024x480.png" alt="image 16" class="wp-image-43971" title="Monitor Windows Server with Nagios XI and NCPA 104" srcset="https://library.nagios.com/wp-content/uploads/2025/02/image-16-1024x480.png 1024w, https://library.nagios.com/wp-content/uploads/2025/02/image-16-300x141.png 300w, https://library.nagios.com/wp-content/uploads/2025/02/image-16-768x360.png 768w, https://library.nagios.com/wp-content/uploads/2025/02/image-16.png 1072w" sizes="(max-width: 1024px) 100vw, 1024px" /></a><figcaption class="wp-element-caption">monitoring settings</figcaption></figure>



<p>Click <strong>Next</strong>.</p>



<p>7. Configure Notification Settings:</p>



<figure class="wp-block-image size-full"><a href="https://library.nagios.com/wp-content/uploads/2025/02/image-17.png"><img loading="lazy" decoding="async" width="942" height="996" src="https://library.nagios.com/wp-content/uploads/2025/02/image-17.png" alt="image 17" class="wp-image-43974" title="Monitor Windows Server with Nagios XI and NCPA 105" srcset="https://library.nagios.com/wp-content/uploads/2025/02/image-17.png 942w, https://library.nagios.com/wp-content/uploads/2025/02/image-17-284x300.png 284w, https://library.nagios.com/wp-content/uploads/2025/02/image-17-768x812.png 768w" sizes="(max-width: 942px) 100vw, 942px" /></a><figcaption class="wp-element-caption">notificaitons</figcaption></figure>



<p>Click <strong>Next</strong>.</p>



<p>8. Add your Windows Server to any <strong>Host Groups</strong>, <strong>Service Groups</strong>, or<strong> Parent Host</strong>:</p>



<figure class="wp-block-image size-large"><a href="https://library.nagios.com/wp-content/uploads/2025/02/image-18.png"><img loading="lazy" decoding="async" width="1024" height="877" src="https://library.nagios.com/wp-content/uploads/2025/02/image-18-1024x877.png" alt="image 18" class="wp-image-43981" title="Monitor Windows Server with Nagios XI and NCPA 106" srcset="https://library.nagios.com/wp-content/uploads/2025/02/image-18-1024x877.png 1024w, https://library.nagios.com/wp-content/uploads/2025/02/image-18-300x257.png 300w, https://library.nagios.com/wp-content/uploads/2025/02/image-18-768x658.png 768w, https://library.nagios.com/wp-content/uploads/2025/02/image-18.png 1064w" sizes="(max-width: 1024px) 100vw, 1024px" /></a><figcaption class="wp-element-caption">Host Groups, Service Groups, or Parent Host</figcaption></figure>



<p>Click <strong>Next</strong>.</p>



<p>9. Click <strong>Finish and Apply</strong> to finalize the configuration, or select <strong>Save as Template</strong> to use the same settings for future Windows servers:</p>



<figure class="wp-block-image size-full"><a href="https://library.nagios.com/wp-content/uploads/2025/02/image-19.png"><img loading="lazy" decoding="async" width="962" height="434" src="https://library.nagios.com/wp-content/uploads/2025/02/image-19.png" alt="image 19" class="wp-image-43984" title="Monitor Windows Server with Nagios XI and NCPA 107" srcset="https://library.nagios.com/wp-content/uploads/2025/02/image-19.png 962w, https://library.nagios.com/wp-content/uploads/2025/02/image-19-300x135.png 300w, https://library.nagios.com/wp-content/uploads/2025/02/image-19-768x346.png 768w" sizes="(max-width: 962px) 100vw, 962px" /></a><figcaption class="wp-element-caption">Finish &amp; Apply</figcaption></figure>



<figure class="wp-block-image size-full"><a href="https://library.nagios.com/wp-content/uploads/2025/02/image-21.png"><img loading="lazy" decoding="async" width="845" height="454" src="https://library.nagios.com/wp-content/uploads/2025/02/image-21.png" alt="image 21" class="wp-image-44005" title="Monitor Windows Server with Nagios XI and NCPA 108" srcset="https://library.nagios.com/wp-content/uploads/2025/02/image-21.png 845w, https://library.nagios.com/wp-content/uploads/2025/02/image-21-300x161.png 300w, https://library.nagios.com/wp-content/uploads/2025/02/image-21-768x413.png 768w" sizes="(max-width: 845px) 100vw, 845px" /></a><figcaption class="wp-element-caption">successful install</figcaption></figure>



<hr class="wp-block-separator has-alpha-channel-opacity"/>



<h2 class="wp-block-heading">Step 6: Confirm Monitoring of Windows Server on Nagios XI</h2>



<p>1. On Nagios XI. Navigate to <strong>View </strong>&gt; <strong>Host Detail</strong>.</p>



<figure class="wp-block-image size-full"><a href="https://library.nagios.com/wp-content/uploads/2025/02/image-25.png"><img loading="lazy" decoding="async" width="226" height="263" src="https://library.nagios.com/wp-content/uploads/2025/02/image-25.png" alt="image 25" class="wp-image-44010" title="Monitor Windows Server with Nagios XI and NCPA 109"></a><figcaption class="wp-element-caption">View &gt; Host Detail</figcaption></figure>



<p>2. Select the Host in question: </p>



<figure class="wp-block-image size-full"><a href="https://library.nagios.com/wp-content/uploads/2025/02/image-26.png"><img loading="lazy" decoding="async" width="693" height="309" src="https://library.nagios.com/wp-content/uploads/2025/02/image-26.png" alt="image 26" class="wp-image-44012" title="Monitor Windows Server with Nagios XI and NCPA 110" srcset="https://library.nagios.com/wp-content/uploads/2025/02/image-26.png 693w, https://library.nagios.com/wp-content/uploads/2025/02/image-26-300x134.png 300w" sizes="(max-width: 693px) 100vw, 693px" /></a><figcaption class="wp-element-caption">select server</figcaption></figure>



<p>3. Confirm services are being monitored: <br></p>



<figure class="wp-block-image size-large"><a href="https://library.nagios.com/wp-content/uploads/2025/02/image-27.png"><img loading="lazy" decoding="async" width="1024" height="299" src="https://library.nagios.com/wp-content/uploads/2025/02/image-27-1024x299.png" alt="image 27" class="wp-image-44013" title="Monitor Windows Server with Nagios XI and NCPA 111" srcset="https://library.nagios.com/wp-content/uploads/2025/02/image-27-1024x299.png 1024w, https://library.nagios.com/wp-content/uploads/2025/02/image-27-300x88.png 300w, https://library.nagios.com/wp-content/uploads/2025/02/image-27-768x224.png 768w, https://library.nagios.com/wp-content/uploads/2025/02/image-27-1536x448.png 1536w, https://library.nagios.com/wp-content/uploads/2025/02/image-27.png 1552w" sizes="(max-width: 1024px) 100vw, 1024px" /></a><figcaption class="wp-element-caption">confirm services being monitored</figcaption></figure>



<hr class="wp-block-separator has-alpha-channel-opacity"/>



<h2 class="wp-block-heading">Troubleshooting</h2>



<h4 class="wp-block-heading">Confirm firewall ports are open</h4>



<p>NCPA by default uses port 5693. You can confirm this port is open by running <strong>netstat -an | findstr :5693</strong> </p>



<p>If port <strong>5693</strong> is open and listening, you will see output like:</p>



<figure class="wp-block-image size-full"><a href="https://library.nagios.com/wp-content/uploads/2025/02/image-30.png"><img loading="lazy" decoding="async" width="516" height="32" src="https://library.nagios.com/wp-content/uploads/2025/02/image-30.png" alt="image 30" class="wp-image-44048" title="Monitor Windows Server with Nagios XI and NCPA 112" srcset="https://library.nagios.com/wp-content/uploads/2025/02/image-30.png 516w, https://library.nagios.com/wp-content/uploads/2025/02/image-30-300x19.png 300w" sizes="(max-width: 516px) 100vw, 516px" /></a><figcaption class="wp-element-caption">confirm firewall port</figcaption></figure>



<p>NCPA expected to open this port during installation. If needed, the below command can be used to open it manually: </p>



<div class="wp-block-kevinbatdorf-code-block-pro" data-code-block-pro-font-family="Code-Pro-Geist-Mono" style="font-size:.875rem;font-family:Code-Pro-Geist-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:1.5rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)"><span role="button" tabindex="0" style="color:#D4D4D4;display:none" aria-label="Copy" class="code-block-pro-copy-button"><pre class="code-block-pro-copy-button-pre" aria-hidden="true"><textarea class="code-block-pro-copy-button-textarea" tabindex="-1" aria-hidden="true" readonly>netsh advfirewall firewall add rule name="Allow Port 5693 Inbound" dir=in action=allow protocol=TCP localport=5693
</textarea></pre><svg xmlns="http://www.w3.org/2000/svg" style="width:24px;height:24px" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2"><path class="with-check" stroke-linecap="round" stroke-linejoin="round" d="M4.5 12.75l6 6 9-13.5"></path><path class="without-check" stroke-linecap="round" stroke-linejoin="round" d="M16.5 8.25V6a2.25 2.25 0 00-2.25-2.25H6A2.25 2.25 0 003.75 6v8.25A2.25 2.25 0 006 16.5h2.25m8.25-8.25H18a2.25 2.25 0 012.25 2.25V18A2.25 2.25 0 0118 20.25h-7.5A2.25 2.25 0 018.25 18v-1.5m8.25-8.25h-6a2.25 2.25 0 00-2.25 2.25v6"></path></svg></span><pre class="shiki dark-plus" style="background-color: #1E1E1E" tabindex="0"><code><span class="line"><span style="color: #9CDCFE">netsh</span><span style="color: #D4D4D4"> </span><span style="color: #9CDCFE">advfirewall</span><span style="color: #D4D4D4"> </span><span style="color: #9CDCFE">firewall</span><span style="color: #D4D4D4"> </span><span style="color: #9CDCFE">add</span><span style="color: #D4D4D4"> </span><span style="color: #9CDCFE">rule</span><span style="color: #D4D4D4"> </span><span style="color: #9CDCFE">name</span><span style="color: #D4D4D4">=</span><span style="color: #CE9178">&quot;Allow Port 5693 Inbound&quot;</span><span style="color: #D4D4D4"> </span><span style="color: #9CDCFE">dir</span><span style="color: #D4D4D4">=</span><span style="color: #569CD6">in</span><span style="color: #D4D4D4"> </span><span style="color: #9CDCFE">action</span><span style="color: #D4D4D4">=</span><span style="color: #9CDCFE">allow</span><span style="color: #D4D4D4"> </span><span style="color: #9CDCFE">protocol</span><span style="color: #D4D4D4">=</span><span style="color: #4FC1FF">TCP</span><span style="color: #D4D4D4"> </span><span style="color: #9CDCFE">localport</span><span style="color: #D4D4D4">=</span><span style="color: #B5CEA8">5693</span></span>
<span class="line"></span></code></pre></div>



<p></p>



<h4 class="wp-block-heading">Error opening file (servicemanager.pyd)</h4>



<p>Example of Error:</p>



<figure class="wp-block-image size-full"><a href="https://library.nagios.com/wp-content/uploads/2025/02/image-31.png"><img loading="lazy" decoding="async" width="496" height="386" src="https://library.nagios.com/wp-content/uploads/2025/02/image-31.png" alt="image 31" class="wp-image-44050" title="Monitor Windows Server with Nagios XI and NCPA 113" srcset="https://library.nagios.com/wp-content/uploads/2025/02/image-31.png 496w, https://library.nagios.com/wp-content/uploads/2025/02/image-31-300x233.png 300w" sizes="(max-width: 496px) 100vw, 496px" /></a><figcaption class="wp-element-caption">servicemanager.pyd error</figcaption></figure>



<p>This issue can occur if NCPA was previously uninstalled, but a reboot was never performed. Reboot your Windows server and retry the install. </p>



<p></p>



<h4 class="wp-block-heading">NCPA Installs, but fails to start after reboot</h4>



<p>Check if Windows Event view for: <br><br><em>A timeout was reached (30000 milliseconds) while waiting for the Nagios Cross-Platform Agent service to connect.</em></p>



<p><em>The Nagios Cross-Platform Agent service failed to start due to the following error:<br>The service did not respond to the start or control request in a timely fashion.</em></p>



<p>If so, then set the <strong>Nagios Cross-Platform Agent</strong> to <strong>Startup Type</strong> of <strong>Automatic (Delayed Start)</strong></p>



<p>Press <strong>Windows Key + R</strong>, type <strong>services.msc</strong>, and press <strong>Enter</strong>.</p>



<figure class="wp-block-image size-full"><a href="https://library.nagios.com/wp-content/uploads/2025/02/image-1.png"><img loading="lazy" decoding="async" width="389" height="194" src="https://library.nagios.com/wp-content/uploads/2025/02/image-1.png" alt="image 1" class="wp-image-43947" title="Monitor Windows Server with Nagios XI and NCPA 93" srcset="https://library.nagios.com/wp-content/uploads/2025/02/image-1.png 389w, https://library.nagios.com/wp-content/uploads/2025/02/image-1-300x150.png 300w" sizes="(max-width: 389px) 100vw, 389px" /></a><figcaption class="wp-element-caption">Windows + R &#8211; services.msc</figcaption></figure>



<p>Right-click on <strong>Nagios Cross-Platform Agent </strong>and select <strong>Properties</strong></p>



<figure class="wp-block-image size-full"><a href="https://library.nagios.com/wp-content/uploads/2025/02/image-32.png"><img loading="lazy" decoding="async" width="376" height="86" src="https://library.nagios.com/wp-content/uploads/2025/02/image-32.png" alt="image 32" class="wp-image-44056" title="Monitor Windows Server with Nagios XI and NCPA 115" srcset="https://library.nagios.com/wp-content/uploads/2025/02/image-32.png 376w, https://library.nagios.com/wp-content/uploads/2025/02/image-32-300x69.png 300w" sizes="(max-width: 376px) 100vw, 376px" /></a><figcaption class="wp-element-caption">right-click &#8211; properties</figcaption></figure>



<p>Select the <strong>Startup type</strong> drop down box and select <strong>Automatic (Delayed Start)</strong>.<br></p>



<figure class="wp-block-image size-full"><a href="https://library.nagios.com/wp-content/uploads/2025/02/image-33.png"><img loading="lazy" decoding="async" width="398" height="463" src="https://library.nagios.com/wp-content/uploads/2025/02/image-33.png" alt="image 33" class="wp-image-44058" title="Monitor Windows Server with Nagios XI and NCPA 116" srcset="https://library.nagios.com/wp-content/uploads/2025/02/image-33.png 398w, https://library.nagios.com/wp-content/uploads/2025/02/image-33-258x300.png 258w" sizes="(max-width: 398px) 100vw, 398px" /></a><figcaption class="wp-element-caption">general tab</figcaption></figure>



<p>Click <strong>OK</strong>.</p>



<hr class="wp-block-separator has-alpha-channel-opacity"/>



<p>If you have additional questions or other support-related questions, please visit Nagios <a href="https://support.nagios.com/" data-type="link" data-id="https://support.nagios.com/forum" target="_blank" rel="noopener">Support</a>. The <a href="https://support.nagios.com/kb" data-type="link" data-id="https://support.nagios.com/kb" target="_blank" rel="noopener">Nagios Support Knowledgebase</a> is also a great support resource.<br></p>
]]></content:encoded>
					
		
		
		<media:content url="https://www.youtube.com/embed/83lXumA6zLs" medium="video">
			<media:player url="https://www.youtube.com/embed/83lXumA6zLs" />
			<media:title type="plain">Windows Server 2019 Archives - Nagios Library</media:title>
			<media:description type="html"><![CDATA[Enjoy the videos and music you love, upload original content, and share it all with friends, family, and the world on YouTube.]]></media:description>
			<media:thumbnail url="https://library.nagios.com/wp-content/uploads/2025/02/Gemini_Generated_Image_xpdvscxpdvscxpdv.jpg" />
			<media:rating scheme="urn:simple">nonadult</media:rating>
		</media:content>
	</item>
	</channel>
</rss>
