<?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>MongoDB &#8211; Nagios Library</title>
	<atom:link href="https://library.nagios.com/tag/mongodb/feed/" rel="self" type="application/rss+xml" />
	<link>https://library.nagios.com</link>
	<description>Complete Nagios monitoring resources and documentation</description>
	<lastBuildDate>Fri, 10 Apr 2026 14:29:46 +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>MongoDB &#8211; Nagios Library</title>
	<link>https://library.nagios.com</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>How to Use the MongoDB Servers Wizard in Nagios XI</title>
		<link>https://library.nagios.com/tutorials/how-to-use-the-mongodb-servers-wizard-in-nagios-xi/</link>
		
		<dc:creator><![CDATA[Moutrine]]></dc:creator>
		<pubDate>Thu, 21 Aug 2025 15:27:16 +0000</pubDate>
				<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[MongoDB]]></category>
		<category><![CDATA[Wizards]]></category>
		<guid isPermaLink="false">https://library.nagios.com/?p=62930</guid>

					<description><![CDATA[Nagios XI includes a MongoDB Server Wizard that enables you to easily connect to your MongoDB instances (standalone, replica set, or sharded) and quickly configure monitoring of availability, connections, replication state/oplog lag, cache/memory, query performance, and disk/storage utilization. You can also refer to this documentation for full details: Here is a direct link to the [&#8230;]]]></description>
										<content:encoded><![CDATA[
<p>Nagios XI includes a MongoDB Server Wizard that enables you to easily connect to your MongoDB instances (standalone, replica set, or sharded) and quickly configure monitoring of availability, connections, replication state/oplog lag, cache/memory, query performance, and disk/storage utilization.</p>



<p>You can also refer to this documentation for full details:</p>


<div class="wp-block-pdfemb-pdf-embedder-viewer"><a href="https://library.nagios.com/wp-content/uploads/2025/08/Monitoring-MongoDB-Server-With-Nagios-XI.pdf" class="pdfemb-viewer" style="" data-width="max" data-height="max" data-toolbar="bottom" data-toolbar-fixed="off">Monitoring-MongoDB-Server-With-Nagios-XI</a></div>


<p>Here is a direct link to the PDF as well:</p>



<p><a href="https://assets.nagios.com/downloads/nagiosxi/docs/Monitoring-MongoDB-Server-With-Nagios-XI.pdf" target="_blank" rel="noopener">How To Monitor A MongoDB Server In Nagios XI</a></p>



<p></p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>How to Use the MongoDB Database Wizard in Nagios XI</title>
		<link>https://library.nagios.com/tutorials/how-to-use-the-mongodb-database-wizard-in-nagiosxi/</link>
		
		<dc:creator><![CDATA[Michael Langevin]]></dc:creator>
		<pubDate>Wed, 20 Aug 2025 19:57:50 +0000</pubDate>
				<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[MongoDB]]></category>
		<category><![CDATA[Wizards]]></category>
		<guid isPermaLink="false">https://library.nagios.com/?p=62689</guid>

					<description><![CDATA[Nagios XI includes a MongoDB Database wizard that enables you to easily specify the server, authentication, and database, and quickly configure monitoring of database size plus collection/object counts with warning/critical thresholds. You can also refer to this documentation for full details: Here is a direct link to the PDF as well How to Use the [&#8230;]]]></description>
										<content:encoded><![CDATA[
<p>Nagios XI includes a <strong>MongoDB Database</strong> wizard that enables you to easily specify the server, authentication, and database, and quickly configure monitoring of database size plus collection/object counts with warning/critical thresholds.</p>



<p>You can also refer to this documentation for full details:</p>


<div class="wp-block-pdfemb-pdf-embedder-viewer"><a href="https://library.nagios.com/wp-content/uploads/2025/12/Monitoring-a-MongoDB-Database-2024.pdf" class="pdfemb-viewer" style="" data-width="max" data-height="max" data-toolbar="bottom" data-toolbar-fixed="off">Monitoring-a-MongoDB-Database-2024</a></div>


<div style="height:45px" aria-hidden="true" class="wp-block-spacer"></div>



<p>Here is a direct link to the PDF as well</p>



<p><a href="https://assets.nagios.com/downloads/nagiosxi/docs/Monitoring-a-MongoDB-Database-2024.pdf" target="_blank" rel="noopener">How to Use the MongoDB Database Wizard in Nagios XI</a></p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>How to Monitor MongoDB Servers with Nagios XI</title>
		<link>https://library.nagios.com/tutorials/how-to-monitor-mongodb-servers-with-nagios-xi/</link>
		
		<dc:creator><![CDATA[Ayub Huruse]]></dc:creator>
		<pubDate>Tue, 04 Mar 2025 14:51:11 +0000</pubDate>
				<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[Monitoring]]></category>
		<category><![CDATA[Database Monitoring]]></category>
		<category><![CDATA[Databases]]></category>
		<category><![CDATA[MongoDB]]></category>
		<guid isPermaLink="false">https://library.nagios.com/?p=50800</guid>

					<description><![CDATA[Monitoring your MongoDB server is essential for maintaining peak performance, quickly identifying issues, and ensuring seamless database operations. With Nagios XI, you can streamline this process using the MongoDB Server Configuration Wizard, making it easier to track key metrics and detect potential problems before they impact your system. In this guide, we’ll walk you through [&#8230;]]]></description>
										<content:encoded><![CDATA[
<p>Monitoring your MongoDB server is essential for maintaining peak performance, quickly identifying issues, and ensuring seamless database operations. With <a href="https://www.nagios.com/products/nagios-xi/" target="_blank" rel="noopener">Nagios XI</a>, you can streamline this process using the MongoDB Server Configuration Wizard, making it easier to track key metrics and detect potential problems before they impact your system. In this guide, we’ll walk you through the step-by-step process of configuring MongoDB monitoring in Nagios XI to help you maintain a reliable and efficient database environment.</p>



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



<p>Before starting, ensure your environment meets these requirements:</p>



<ul class="wp-block-list">
<li><strong>MongoDB Authentication Enabled:</strong> Authentication must be enabled on your MongoDB server. Refer to <a href="https://docs.mongodb.com/manual/tutorial/enable-authentication/" target="_blank" rel="noopener">Enable Authentication</a>.</li>



<li><strong>User with <code>clusterAdmin</code> Role:</strong> A user with the <code>clusterAdmin</code> role in the <code>admin</code> database is required to retrieve server statistics. Refer to <a href="https://docs.mongodb.com/manual/tutorial/manage-users-and-roles/" target="_blank" rel="noopener">Manage Users and Roles</a>.</li>



<li><strong>Remote Access Configuration:</strong> Ensure MongoDB is configured to accept remote connections (<code>bindIp</code> must be set appropriately). Refer to <a href="https://docs.mongodb.com/manual/reference/configuration-options/#net-options" target="_blank" rel="noopener">Configuration Options</a>.</li>



<li><strong>Firewall Rules:</strong> Configure firewall settings to allow Nagios XI to communicate with MongoDB:
<ul class="wp-block-list">
<li>Linux: <a href="https://www.mongodb.com/docs/manual/tutorial/configure-linux-iptables-firewall/" target="_blank" rel="noopener">Configure iptables</a></li>



<li>Windows: <a href="https://www.mongodb.com/docs/manual/tutorial/configure-windows-netsh-firewall/" target="_blank" rel="noopener">Configure netsh</a></li>
</ul>
</li>
</ul>



<p>Verify connectivity from the Nagios XI server:</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>telnet &lt;mongo-ip> 27017</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">telnet &lt;mongo-ip&gt; 27017</span></span></code></pre></div>



<h2 class="wp-block-heading">Configuring MongoDB Monitoring in Nagios XI</h2>



<p>Follow these steps to set up MongoDB monitoring using the Nagios XI <strong>MongoDB Server Configuration Wizard</strong>.</p>



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



<ol class="wp-block-list">
<li>Log in to Nagios XI.</li>



<li>Navigate to <strong>Configure &gt; Configuration Wizards</strong>.</li>



<li>Search for <strong>MongoDB Server</strong> and select it.</li>
</ol>



<figure class="wp-block-image size-large"><a href="https://library.nagios.com/wp-content/uploads/2025/03/Screenshot-2025-03-04-083843.png"><img fetchpriority="high" decoding="async" width="1024" height="521" src="https://library.nagios.com/wp-content/uploads/2025/03/Screenshot-2025-03-04-083843-1024x521.png" alt="Screenshot 2025 03 04 083843" class="wp-image-50804" title="How to Monitor MongoDB Servers with Nagios XI 1" srcset="https://library.nagios.com/wp-content/uploads/2025/03/Screenshot-2025-03-04-083843-1024x521.png 1024w, https://library.nagios.com/wp-content/uploads/2025/03/Screenshot-2025-03-04-083843-300x153.png 300w, https://library.nagios.com/wp-content/uploads/2025/03/Screenshot-2025-03-04-083843-768x390.png 768w, https://library.nagios.com/wp-content/uploads/2025/03/Screenshot-2025-03-04-083843.png 1495w" sizes="(max-width: 1024px) 100vw, 1024px" /></a><figcaption class="wp-element-caption">Example output of MongoDB wizard</figcaption></figure>



<h3 class="wp-block-heading">Step 2: Enter Server Details</h3>



<ol class="wp-block-list">
<li>Enter the <strong>IP address</strong> or <strong>hostname</strong> of your MongoDB server.</li>



<li>Specify the <strong>port</strong> (default: 27017) if customized.</li>



<li>Provide the <strong>Username</strong> and <strong>Password</strong> of a user with <code>clusterAdmin</code> privileges.</li>



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



<figure class="wp-block-image size-large"><a href="https://library.nagios.com/wp-content/uploads/2025/03/Screenshot-2025-03-04-083808.png"><img decoding="async" width="1024" height="480" src="https://library.nagios.com/wp-content/uploads/2025/03/Screenshot-2025-03-04-083808-1024x480.png" alt="Screenshot 2025 03 04 083808" class="wp-image-50805" title="How to Monitor MongoDB Servers with Nagios XI 2" srcset="https://library.nagios.com/wp-content/uploads/2025/03/Screenshot-2025-03-04-083808-1024x480.png 1024w, https://library.nagios.com/wp-content/uploads/2025/03/Screenshot-2025-03-04-083808-300x141.png 300w, https://library.nagios.com/wp-content/uploads/2025/03/Screenshot-2025-03-04-083808-768x360.png 768w, https://library.nagios.com/wp-content/uploads/2025/03/Screenshot-2025-03-04-083808.png 1524w" sizes="(max-width: 1024px) 100vw, 1024px" /></a><figcaption class="wp-element-caption">Example output of MongoDB server config step 1</figcaption></figure>



<h3 class="wp-block-heading">Step 3: Configure Monitoring Parameters</h3>



<ol class="wp-block-list">
<li>Confirm the <strong>Host Name</strong> field matches your MongoDB server.</li>



<li>Select the metrics to monitor:
<ul class="wp-block-list">
<li>Queries per second</li>



<li>Memory usage</li>



<li>Number of databases</li>



<li>Free connection percentage</li>
</ul>
</li>



<li>Set <strong>warning</strong> and <strong>critical</strong> thresholds (e.g., 80% and 90% for connections).</li>



<li>If using replication, enable:
<ul class="wp-block-list">
<li>Replication status</li>



<li>Replication lag (seconds)</li>



<li>Replication lag percentage</li>
</ul>
</li>



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



<h3 class="wp-block-heading">Step 4: Apply and Verify Configuration</h3>



<ol class="wp-block-list">
<li>Review your selections.</li>



<li>Click <strong>Finish</strong> to apply the configuration.</li>



<li>Navigate to <strong>Host and Service Details</strong> in Nagios XI to verify the new host and service checks.</li>
</ol>



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



<p>If monitoring fails, check for these common issues:</p>



<ul class="wp-block-list">
<li><strong>Authentication Errors:</strong> Ensure correct credentials by testing in the MongoDB shell: </li>
</ul>



<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>mongo -u &lt;username> -p &lt;password> --authenticationDatabase admin</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">mongo -u &lt;username&gt; -p &lt;password&gt; --authenticationDatabase admin</span></span></code></pre></div>



<ul class="wp-block-list">
<li><strong>Connection Issues:</strong> Verify <code>bindIp</code> settings and test connectivity:</li>
</ul>



<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>nc -zv &lt;mongo-ip> 27017</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">nc -zv &lt;mongo-ip&gt; 27017</span></span></code></pre></div>



<ul class="wp-block-list">
<li><strong>Firewall Blocks:</strong> Confirm open ports: </li>
</ul>



<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>iptables -L | grep 27017 # Linux 
netsh advfirewall show allprofiles # Windows</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">iptables -L | grep 27017 # Linux </span></span>
<span class="line"><span style="color: #D4D4D4">netsh advfirewall show allprofiles # Windows</span></span></code></pre></div>



<ul class="wp-block-list">
<li><strong>Log Errors:</strong> Check MongoDB logs for potential issues: </li>
</ul>



<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>tail -f /var/log/mongodb/mongod.log</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">tail -f /var/log/mongodb/mongod.log</span></span></code></pre></div>



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



<p>Using the <strong>MongoDB Server Configuration Wizard</strong>, Nagios XI simplifies monitoring key MongoDB metrics, ensuring database stability and performance. For additional support, visit the <a href="https://support.nagios.com/forum/" target="_blank" rel="noopener">Nagios Support Forum</a> or the <a href="https://support.nagios.com/kb/" target="_blank" rel="noopener">Nagios Knowledgebase</a>.</p>
]]></content:encoded>
					
		
		
			</item>
	</channel>
</rss>
