<?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/"
	>

<channel>
	<title>SQL Server &#8211; Nagios Library</title>
	<atom:link href="https://library.nagios.com/tag/mssql/feed/" rel="self" type="application/rss+xml" />
	<link>https://library.nagios.com</link>
	<description>Complete Nagios monitoring resources and documentation</description>
	<lastBuildDate>Tue, 10 Feb 2026 18:44:44 +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>SQL Server &#8211; Nagios Library</title>
	<link>https://library.nagios.com</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>How to Monitor Microsoft SQL Server (MSSQL) with Nagios XI</title>
		<link>https://library.nagios.com/tutorials/monitor-microsoft-sql-server/</link>
		
		<dc:creator><![CDATA[Ayub Huruse]]></dc:creator>
		<pubDate>Wed, 05 Mar 2025 14:12:55 +0000</pubDate>
				<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[Monitoring]]></category>
		<category><![CDATA[Database Monitoring]]></category>
		<category><![CDATA[Databases]]></category>
		<category><![CDATA[SQL Server]]></category>
		<guid isPermaLink="false">https://library.nagios.com/?p=51028</guid>

					<description><![CDATA[Microsoft SQL Server (MSSQL) is the backbone of many critical applications, making proactive monitoring essential for optimal performance, high availability, and overall system health. With Nagios XI, you can effortlessly keep an eye on database status, query performance, and server metrics using its dedicated monitoring wizards. Whether you&#8217;re preventing downtime or optimizing performance, this guide [&#8230;]]]></description>
										<content:encoded><![CDATA[
<p>Microsoft SQL Server (MSSQL) is the backbone of many critical applications, making proactive monitoring essential for optimal performance, high availability, and overall system health. With <a href="https://www.nagios.com/products/nagios-xi/" target="_blank" rel="noopener">Nagios XI</a>, you can effortlessly keep an eye on database status, query performance, and server metrics using its dedicated monitoring wizards. Whether you&#8217;re preventing downtime or optimizing performance, this guide will walk you through the step-by-step process of configuring Nagios XI to monitor your MSSQL environment effectively.</p>



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



<p>Before diving into the configuration, ensure the following are in place:</p>



<ul class="wp-block-list">
<li><strong>SQL Server Authentication</strong>: Create a dedicated monitoring user account in MSSQL with appropriate permissions.</li>



<li><strong>Firewall Rules</strong>: Configure the Windows firewall to allow inbound traffic on MSSQL ports.</li>



<li><strong>Instance and Port Configuration</strong>: For named instances, verify that the SQL Server Browser service is running and accessible.</li>
</ul>



<h2 class="wp-block-heading">Setting Up the Monitoring User Account</h2>



<p>A dedicated user account is needed for monitoring MSSQL:</p>



<ol class="wp-block-list">
<li>Open <strong>SQL Server Management Studio (SSMS)</strong> and connect with administrative rights.</li>



<li>Navigate to <strong>Security &gt; Logins</strong> and right-click <strong>New Login</strong>.</li>



<li>Choose the authentication method:
<ul class="wp-block-list">
<li><strong>Windows Authentication:</strong> Use an existing Windows account.</li>



<li><strong>SQL Authentication:</strong> Create a new SQL user with a strong password.</li>
</ul>
</li>



<li>Grant the necessary permissions by executing this SQL query:</li>
</ol>



<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>GRANT VIEW SERVER STATE TO &#91;username&#93;;</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">GRANT VIEW SERVER STATE TO &#91;username&#93;;</span></span></code></pre></div>



<p>     5. Assign the user to the specific databases you intend to monitor (e.g., via the <strong>User Mapping</strong> tab in SSMS).</p>



<h2 class="wp-block-heading">Configuring Firewall Rules</h2>



<p>If the Windows firewall is enabled, configure the following:</p>



<ol class="wp-block-list">
<li>Open <strong>Windows Firewall with Advanced Security</strong>.</li>



<li>Create a new <strong>Inbound Rule</strong>:
<ul class="wp-block-list">
<li><strong>Port Type</strong>: TCP</li>



<li><strong>Port Number</strong>: 1433 (default) or your custom MSSQL port</li>
</ul>
</li>



<li>For named instances, add a second rule:
<ul class="wp-block-list">
<li><strong>Port Type</strong>: UDP</li>



<li><strong>Port Number</strong>: 1434 (for SQL Server Browser)</li>
</ul>
</li>



<li>Apply the rules and restart the SQL Server service if changes were made to port settings.</li>
</ol>



<h2 class="wp-block-heading">Running the MSSQL Configuration Wizard in Nagios XI</h2>



<p>Nagios XI streamlines MSSQL monitoring with its intuitive configuration wizards. Follow these steps:</p>



<h3 class="wp-block-heading">Step 1: Launch the Wizard</h3>



<p>1. Navigate to <strong>Configure &gt; Configuration Wizards</strong> in Nagios XI.</p>



<p>2. Search for and select the <strong>MSSQL Server</strong> wizard (or related options like MSSQL Database or MSSQL Query, depending on your needs).</p>



<figure class="wp-block-image size-large"><a href="https://library.nagios.com/wp-content/uploads/2025/03/Screenshot-2025-03-05-074054.png"><img fetchpriority="high" decoding="async" width="1024" height="576" src="https://library.nagios.com/wp-content/uploads/2025/03/Screenshot-2025-03-05-074054-1024x576.png" alt="Screenshot 2025 03 05 074054" class="wp-image-51029" title="How to Monitor Microsoft SQL Server (MSSQL) with Nagios XI 1" srcset="https://library.nagios.com/wp-content/uploads/2025/03/Screenshot-2025-03-05-074054-1024x576.png 1024w, https://library.nagios.com/wp-content/uploads/2025/03/Screenshot-2025-03-05-074054-300x169.png 300w, https://library.nagios.com/wp-content/uploads/2025/03/Screenshot-2025-03-05-074054-768x432.png 768w, https://library.nagios.com/wp-content/uploads/2025/03/Screenshot-2025-03-05-074054-1536x864.png 1536w, https://library.nagios.com/wp-content/uploads/2025/03/Screenshot-2025-03-05-074054.png 1538w" sizes="(max-width: 1024px) 100vw, 1024px" /></a><figcaption class="wp-element-caption">Example output of MSSQL Server wizard</figcaption></figure>



<p>3. Enter the following details:</p>



<ul class="wp-block-list">
<li><strong>Address</strong>: IP address or hostname of the MSSQL server.</li>



<li><strong>Host Name</strong>: A descriptive name for the server in Nagios (e.g., &#8220;MSSQL-Prod&#8221;).</li>



<li><strong>Username</strong>: The monitoring user created earlier.</li>



<li><strong>Password</strong>: The user’s password (confirm it matches).</li>



<li><strong>Database Server Instance</strong>: Enter the instance name (e.g., &#8220;SQLEXPRESS&#8221;) if applicable.</li>



<li><strong>Port</strong>: Specify the port (default: 1433) if using a static configuration.</li>



<li><strong>MSSQL Version</strong>: Select the appropriate version (e.g., 2019, 2022).</li>



<li><strong>TDS Version</strong>: Leave as &#8220;Auto&#8221; unless specific compatibility is required.</li>
</ul>



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



<figure class="wp-block-image size-large"><a href="https://library.nagios.com/wp-content/uploads/2025/03/Screenshot-2025-03-05-074023.png"><img decoding="async" width="1024" height="618" src="https://library.nagios.com/wp-content/uploads/2025/03/Screenshot-2025-03-05-074023-1024x618.png" alt="Screenshot 2025 03 05 074023" class="wp-image-51030" title="How to Monitor Microsoft SQL Server (MSSQL) with Nagios XI 2" srcset="https://library.nagios.com/wp-content/uploads/2025/03/Screenshot-2025-03-05-074023-1024x618.png 1024w, https://library.nagios.com/wp-content/uploads/2025/03/Screenshot-2025-03-05-074023-300x181.png 300w, https://library.nagios.com/wp-content/uploads/2025/03/Screenshot-2025-03-05-074023-768x463.png 768w, https://library.nagios.com/wp-content/uploads/2025/03/Screenshot-2025-03-05-074023.png 1378w" sizes="(max-width: 1024px) 100vw, 1024px" /></a><figcaption class="wp-element-caption">Example output of MSSQL Server Config step 1</figcaption></figure>



<h3 class="wp-block-heading">Step 2: Define Monitoring Parameters</h3>



<ol class="wp-block-list">
<li>Ensure the <strong>Host Name</strong> field correctly identifies your MSSQL server.</li>



<li>Select the metrics to monitor:
<ul class="wp-block-list">
<li>CPU and memory usage</li>



<li>Active connections</li>



<li>Database availability</li>



<li>Query performance</li>
</ul>
</li>



<li>Set <strong>Warning</strong> and <strong>Critical</strong> thresholds for alerts.</li>



<li>Click <strong>Next</strong> to proceed.</li>
</ol>



<h3 class="wp-block-heading">Step 3-5: Finalizing the Setup</h3>



<ol class="wp-block-list">
<li>Review your settings and apply any necessary changes.</li>



<li>Click <strong>Finish</strong> to complete the wizard.</li>



<li>After configuration, click <strong>View status details</strong> to check the newly created services.</li>
</ol>



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



<p>If issues arise, consider the following steps:</p>



<ul class="wp-block-list">
<li><strong>Authentication Issues:</strong> Ensure the correct credentials are being used.</li>



<li><strong>Firewall Blocks:</strong> Temporarily disable the firewall to confirm connectivity.</li>



<li><strong>SQL Server Browser:</strong> Ensure it is running if connecting using an instance name.</li>



<li><strong>Network Configuration:</strong> Check if the MSSQL server allows remote connections.</li>
</ul>



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



<p>Nagios XI makes MSSQL monitoring straightforward and effective, delivering actionable insights into performance and availability. For additional assistance, consult the <a href="https://support.nagios.com/forum/" target="_blank" rel="noreferrer noopener">Nagios Support Forum</a> or the <a href="https://support.nagios.com/kb/" target="_blank" rel="noreferrer noopener">Nagios Knowledgebase</a>. Properly configured, this setup ensures your MSSQL environment remains reliable and optimized.</p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>Monitoring Microsoft SQL With Nagios XI</title>
		<link>https://library.nagios.com/documentation/monitoring-microsoft-sql-nagios-xi/</link>
		
		<dc:creator><![CDATA[Ethan Galstad]]></dc:creator>
		<pubDate>Tue, 08 Aug 2017 14:04:22 +0000</pubDate>
				<category><![CDATA[Documentation]]></category>
		<category><![CDATA[SQL Server]]></category>
		<guid isPermaLink="false">https://library.nagios.com/?page_id=1608</guid>

					<description><![CDATA[This document describes how to monitor Microsoft SQL (MSSQL) with Nagios XI. This includes using the separate Database, Query and Server configuration wizards as well as the prerequisites required for these wizards to work. This document is intended for use by Nagios Administrators who wish to monitor MSSQL in their environment. Nagios XI 2024 &#38; [&#8230;]]]></description>
										<content:encoded><![CDATA[
<p>This document describes how to monitor Microsoft SQL (MSSQL) with Nagios XI. This includes using the separate Database, Query and Server configuration wizards as well as the prerequisites required for these wizards to work.</p>



<p>This document is intended for use by Nagios Administrators who wish to monitor MSSQL in their environment.</p>



<p><strong>Nagios XI 2024 &amp; 2026</strong></p>



<p><a href="https://assets.nagios.com/downloads/nagiosxi/docs/Monitoring-Microsoft-SQL-2024.pdf" target="_blank" rel="noopener">Monitoring MSSQL with Nagios XI 2026</a></p>



<p><strong>Nagios XI 5.x (Legacy)</strong></p>



<p><a href="https://assets.nagios.com/downloads/nagiosxi/docs/Monitoring-Microsoft-SQL-With-Nagios-XI.pdf" target="_blank" rel="noopener">Monitoring MSSQL with Nagios XI 5</a></p>



<p></p>
]]></content:encoded>
					
		
		
			</item>
	</channel>
</rss>
