<?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>Database Monitoring &#8211; Nagios Library</title>
	<atom:link href="https://library.nagios.com/tag/database-monitoring/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:45:54 +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>Database Monitoring &#8211; Nagios Library</title>
	<link>https://library.nagios.com</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>How to Use the PostgreSQL Queries Wizard in Nagios XI</title>
		<link>https://library.nagios.com/tutorials/how-to-use-postgresql-queries-wizard-in-nagios-xi/</link>
		
		<dc:creator><![CDATA[Benjamin Rowan]]></dc:creator>
		<pubDate>Fri, 29 Aug 2025 20:33:59 +0000</pubDate>
				<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[Database Monitoring]]></category>
		<category><![CDATA[PostgreSQL]]></category>
		<category><![CDATA[Wizards]]></category>
		<guid isPermaLink="false">https://library.nagios.com/?p=62922</guid>

					<description><![CDATA[Nagios XI includes a PostgreSQL Query Wizard that enables you to easily run a custom SQL query and quickly configure warning/critical thresholds based on the number of matching results. You can also refer to this documentation for full details: Here is a direct link to the PDF as well: Monitoring PostgreSQL Queries]]></description>
										<content:encoded><![CDATA[
<p>Nagios XI includes a <strong>PostgreSQL Query</strong> Wizard that enables you to easily run a custom SQL query and quickly configure warning/critical thresholds based on the number of matching results.</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-Postgres-Databases-and-Servers-with-Nagios-XI-x.pdf" class="pdfemb-viewer" style="" data-width="max" data-height="max" data-toolbar="bottom" data-toolbar-fixed="off">Monitoring-Postgres-Databases-and-Servers-with-Nagios-XI-x</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-Postgres-Databases-and-Servers-with-Nagios-XI.pdf" target="_blank" rel="noopener">Monitoring PostgreSQL Queries</a></p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>Nagios Log Server: Best Practices for Protecting Sensitive Log Data</title>
		<link>https://library.nagios.com/support-tips/nagios-log-server-best-practices/</link>
		
		<dc:creator><![CDATA[Joe Johnson]]></dc:creator>
		<pubDate>Wed, 19 Mar 2025 14:02:50 +0000</pubDate>
				<category><![CDATA[Support Tips]]></category>
		<category><![CDATA[Techtips]]></category>
		<category><![CDATA[Database Monitoring]]></category>
		<category><![CDATA[Log data]]></category>
		<guid isPermaLink="false">https://library.nagios.com/?p=52352</guid>

					<description><![CDATA[Introduction Logs are a critical source of information for monitoring system activity, diagnosing issues, and ensuring security. However, logs can contain sensitive data that could expose your organization to security risks. Protecting this sensitive log data is essential, especially when using Nagios Log Server, which helps centralize and manage logs from various systems. In this [&#8230;]]]></description>
										<content:encoded><![CDATA[
<h2 class="wp-block-heading"><strong>Introduction</strong></h2>



<p>Logs are a critical source of information for monitoring system activity, diagnosing issues, and ensuring security. However, logs can contain sensitive data that could expose your organization to security risks. Protecting this sensitive log data is essential, especially when using <strong><a href="https://www.nagios.com/products/nagios-log-server/" data-type="link" data-id="https://www.nagios.com/products/nagios-log-server/" target="_blank" rel="noreferrer noopener">Nagios Log Server</a></strong>, which helps centralize and manage logs from various systems.</p>



<p>In this article, we will discuss best practices for securing sensitive log data within Nagios Log Server, covering encryption, access control, monitoring, compliance, and more.</p>



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



<h2 class="wp-block-heading"><strong>1. Use Encryption for Log Transmission</strong></h2>



<p><strong>1.1 Secure Log Data in Transit</strong></p>



<p>Sensitive log data can be intercepted during transmission if not properly secured. To prevent unauthorized access, it&#8217;s essential to encrypt log data while it&#8217;s being transmitted to Nagios Log Server. This can be achieved by:</p>



<ul class="wp-block-list">
<li>Using Secure Sockets Layer/Transport Layer Security (SSL/TLS) encryption for syslog transmission, ensuring that logs are securely forwarded from remote systems to Nagios Log Server.</li>



<li>Configuring encrypted syslog to send logs over secure channels, reducing the risk of data breaches during transmission.</li>
</ul>



<p><strong>1.2 Enable Secure File Transfers</strong></p>



<p>If you are transferring log data via file-based methods, ensure that file transfer protocols like Secure File Transfer Protocol (SFTP) or Secure Copy Protocol (SCP) are used to securely move logs between systems.</p>



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



<h2 class="wp-block-heading"><strong>2. Implement Role-Based Access Control</strong></h2>



<p><strong>2.1 Restrict Access to Log Data</strong></p>



<p>Role-Based Access Control (RBAC) allows you to restrict access to sensitive log data based on user roles. In Nagios Log Server:</p>



<ul class="wp-block-list">
<li>Create different user roles for administrators, viewers, and auditors, each with a specific set of permissions.</li>



<li>Ensure that only authorized users have access to sensitive logs, preventing unauthorized users from viewing or modifying the log data.</li>
</ul>



<p><strong>2.2 Apply the Principle of Least Privilege</strong></p>



<p>Limit user access to only the logs and features necessary for their role. For example, if a user only needs to view logs from a specific device, restrict access to those logs and deny access to logs from other systems.</p>



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



<h2 class="wp-block-heading"><strong>3. Secure Log Data with Encryption at Rest</strong></h2>



<p><strong>3.1 Encrypt Log Storage</strong></p>



<p>It’s critical to ensure that log data is also protected when stored. Use encryption to safeguard logs stored on the disk, preventing unauthorized access in the event of a server compromise.</p>



<ul class="wp-block-list">
<li>Utilize full disk encryption or encrypted storage volumes to secure log data on the system.</li>



<li>Ensure that only authorized personnel or services have access to encrypted log files.</li>
</ul>



<p><strong>3.2 Backup Encrypted Logs</strong></p>



<p>Ensure that log backups are also encrypted. Regularly back up sensitive logs and store them in a secure, encrypted location to safeguard against data loss or unauthorized access.</p>



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



<h2 class="wp-block-heading"><strong>4. Enable Secure Authentication and Logging</strong></h2>



<p><strong>4.1 Use Strong Authentication</strong></p>



<p>To prevent unauthorized access to Nagios Log Server’s web interface, use strong authentication methods. </p>



<p>Implement:</p>



<ul class="wp-block-list">
<li>Two-factor authentication (2FA) for an added layer of security.</li>



<li>Complex password policies to require strong, unique passwords for all users accessing the system.</li>
</ul>



<p><strong>4.2 Monitor and Audit Login Activity</strong></p>



<p>Nagios Log Server should log all user access to the system. Monitor login activity for signs of unauthorized access attempts or abnormal behavior. Set up alerts for suspicious login activity, such as:</p>



<ul class="wp-block-list">
<li>Failed login attempts.</li>



<li>Login from unusual IP addresses.</li>
</ul>



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



<h2 class="wp-block-heading"><strong>5. Implement Granular Log Retention Policies</strong></h2>



<p><strong>5.1 Define Log Retention Periods</strong></p>



<p>Establish a log retention policy that defines how long logs are kept. Sensitive logs should not be stored longer than necessary for operational or compliance purposes.</p>



<ul class="wp-block-list">
<li>Set up automated log rotation and deletion rules in Nagios Log Server to ensure that logs are archived or deleted after their retention period has passed.</li>



<li>Regularly review and adjust retention policies to ensure that only necessary logs are retained.</li>
</ul>



<p><strong>5.2 Archive and Purge Logs Securely</strong></p>



<p>For logs that need to be archived for compliance or historical purposes, ensure they are encrypted and stored securely. After the retention period expires, securely purge any unneeded log data.</p>



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



<h2 class="wp-block-heading"><strong>6. Protect Log Data with File System Permissions</strong></h2>



<p><strong>6.1 Use Proper Permissions for Log Files</strong></p>



<p>Restrict access to log files using appropriate file system permissions. Set permissions so that only authorized users and services can access the logs.</p>



<ul class="wp-block-list">
<li>Implement Linux file permissions or Access Control Lists (ACLs) to control who can view, modify, or delete logs.</li>



<li>Regularly audit file permissions to ensure proper access control.</li>
</ul>



<p><strong>6.2 Use SELinux for Additional Security</strong></p>



<p>If your system supports Security-Enhanced Linux (SELinux), use it to provide an additional layer of security for log files. Configure SELinux policies to enforce strict access controls for log data.</p>



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



<h2 class="wp-block-heading"><strong>7. Monitor Logs for Suspicious Activity</strong></h2>



<p><strong>7.1 Set Up Alerts for Abnormal Events</strong></p>



<p>Nagios Log Server allows you to set up alerts for suspicious activities in logs, such as:</p>



<ul class="wp-block-list">
<li>Unauthorized access attempts.</li>



<li>Security incidents or system errors.</li>



<li>Abnormal changes to log configurations.</li>
</ul>



<p>Set up threshold-based alerts to trigger notifications when suspicious log patterns or anomalies are detected.</p>



<p><strong>7.2 Use Dashboards for Real-Time Monitoring</strong></p>



<p>Create real-time dashboards in Nagios Log Server to visualize log data and quickly identify potential threats or incidents. Use widgets to display logs from specific systems, security events, and application activity.</p>



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



<h2 class="wp-block-heading"><strong>8. Ensure Compliance with Data Protection Regulations</strong></h2>



<p><strong>8.1 Comply with Regulations like GDPR and HIPAA</strong></p>



<p>If your organization is subject to data protection regulations, ensure that your log management practices meet the required standards for data protection and privacy. can&#8217;t have sentences this long</p>



<ul class="wp-block-list">
<li>Implement data masking or redaction for logs containing personal or sensitive information.</li>



<li>Regularly audit log access and retention practices to ensure compliance with regulatory requirements.</li>
</ul>



<p><strong>8.2 Keep Audit Trails for Compliance</strong></p>



<p>Nagios Log Server provides an audit trail of user activity. Use these logs to ensure compliance with internal policies and external regulations by tracking who accessed sensitive logs and what actions were taken.</p>



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



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



<p>Protecting sensitive log data in Nagios Log Server is essential for maintaining the security and integrity of your system. By following these best practices—such as using encryption, implementing role-based access control, and ensuring secure log storage—you can significantly reduce the risk of unauthorized access and data breaches.</p>



<p>By taking proactive steps to protect your log data, you can ensure compliance with industry standards, safeguard sensitive information, and maintain a secure logging environment for your organization.</p>



<p>For more step-by-step tutorials, guides, and more, check out our <a href="https://library.nagios.com/products/nagios-log-server/" target="_blank" rel="noreferrer noopener">Nagios Log Server Product page</a>.</p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>How to Monitor Oracle Tablespace with Nagios XI</title>
		<link>https://library.nagios.com/tutorials/how-to-monitor-oracle-tablespace-with-nagios-xi/</link>
		
		<dc:creator><![CDATA[Ayub Huruse]]></dc:creator>
		<pubDate>Fri, 07 Mar 2025 16:20:59 +0000</pubDate>
				<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[Monitoring]]></category>
		<category><![CDATA[Database Monitoring]]></category>
		<category><![CDATA[Databases]]></category>
		<category><![CDATA[Oracle DB]]></category>
		<category><![CDATA[Oracle Tablespace]]></category>
		<guid isPermaLink="false">https://library.nagios.com/?p=51616</guid>

					<description><![CDATA[Effective monitoring of Oracle Tablespace is crucial for database administrators (DBAs) to ensure optimal performance, availability, and efficient storage management. As tablespaces store critical database objects like tables and indexes, they can gradually fill up, potentially causing slowdowns or even outages if left unchecked. With Nagios XI, DBAs can proactively track tablespace usage using its [&#8230;]]]></description>
										<content:encoded><![CDATA[
<p>Effective monitoring of Oracle Tablespace is crucial for database administrators (DBAs) to ensure optimal performance, availability, and efficient storage management. As tablespaces store critical database objects like tables and indexes, they can gradually fill up, potentially causing slowdowns or even outages if left unchecked. With <a href="https://www.nagios.com/products/nagios-xi/" target="_blank" rel="noopener">Nagios XI</a>, DBAs can proactively track tablespace usage using its intuitive configuration wizard, allowing them to prevent storage issues before they impact applications. This guide will walk you through the steps to set up Oracle Tablespace monitoring in Nagios XI, helping you maintain a stable and well-optimized database environment.</p>



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



<ul class="wp-block-list">
<li>Nagios XI is installed and operational on your server.</li>



<li>The Oracle monitoring plugins (e.g., check_oracle_health) are installed on the Nagios XI server. Refer to the official guide, <em><a href="https://assets.nagios.com/downloads/nagiosxi/docs/Installing-Oracle-Plugins-in-Nagios-XI.pdf" target="_blank" rel="noreferrer noopener">Installing Oracle Plugins in Nagios XI</a></em>, for detailed installation steps.</li>



<li>You have administrative access to both Nagios XI and the Oracle database.</li>
</ul>



<h2 class="wp-block-heading">Step 1: Access the Oracle Tablespace Monitoring Wizard</h2>



<p>1. Log in to your&nbsp;<strong>Nagios XI</strong>&nbsp;dashboard.</p>



<p>2. Navigate to&nbsp;<strong>Configure</strong>&nbsp;&gt;&nbsp;<strong>Run a Wizard</strong>.</p>



<figure class="wp-block-image size-large"><a href="https://library.nagios.com/wp-content/uploads/2025/03/Screenshot-2025-03-07-085602.png"><img fetchpriority="high" decoding="async" width="1024" height="503" src="https://library.nagios.com/wp-content/uploads/2025/03/Screenshot-2025-03-07-085602-1024x503.png" alt="Screenshot 2025 03 07 085602" class="wp-image-51627" title="How to Monitor Oracle Tablespace with Nagios XI 1" srcset="https://library.nagios.com/wp-content/uploads/2025/03/Screenshot-2025-03-07-085602-1024x503.png 1024w, https://library.nagios.com/wp-content/uploads/2025/03/Screenshot-2025-03-07-085602-300x147.png 300w, https://library.nagios.com/wp-content/uploads/2025/03/Screenshot-2025-03-07-085602-768x377.png 768w, https://library.nagios.com/wp-content/uploads/2025/03/Screenshot-2025-03-07-085602-1536x754.png 1536w, https://library.nagios.com/wp-content/uploads/2025/03/Screenshot-2025-03-07-085602.png 1855w" sizes="(max-width: 1024px) 100vw, 1024px" /></a><figcaption class="wp-element-caption">Example output of Run a wizard</figcaption></figure>



<p>3. Select the&nbsp;<strong>Oracle Tablespace</strong>&nbsp;wizard from the available options.</p>



<figure class="wp-block-image size-large"><a href="https://library.nagios.com/wp-content/uploads/2025/03/Screenshot-2025-03-07-084803.png"><img decoding="async" width="1024" height="483" src="https://library.nagios.com/wp-content/uploads/2025/03/Screenshot-2025-03-07-084803-1024x483.png" alt="Screenshot 2025 03 07 084803" class="wp-image-51618" title="How to Monitor Oracle Tablespace with Nagios XI 2" srcset="https://library.nagios.com/wp-content/uploads/2025/03/Screenshot-2025-03-07-084803-1024x483.png 1024w, https://library.nagios.com/wp-content/uploads/2025/03/Screenshot-2025-03-07-084803-300x142.png 300w, https://library.nagios.com/wp-content/uploads/2025/03/Screenshot-2025-03-07-084803-768x362.png 768w, https://library.nagios.com/wp-content/uploads/2025/03/Screenshot-2025-03-07-084803-1536x725.png 1536w, https://library.nagios.com/wp-content/uploads/2025/03/Screenshot-2025-03-07-084803.png 1587w" sizes="(max-width: 1024px) 100vw, 1024px" /></a><figcaption class="wp-element-caption">Example output of Oracle Tablespace Wizard</figcaption></figure>



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



<ol class="wp-block-list">
<li>Provide the&nbsp;<strong>Fully Qualified Domain Name (FQDN)</strong>&nbsp;or&nbsp;<strong>IP Address</strong>&nbsp;of the Oracle Server.</li>



<li>Enter the&nbsp;<strong>Port Number</strong>&nbsp;(default: 1521).</li>



<li>Specify the&nbsp;<strong>SID</strong>&nbsp;of your Oracle database.</li>



<li>Enter the&nbsp;<strong>Username</strong>&nbsp;and&nbsp;<strong>Password</strong>&nbsp;for authentication.</li>



<li>In the&nbsp;<strong>Database</strong>&nbsp;field, enter the tablespace name to be monitored.</li>



<li>Click&nbsp;<strong>Next</strong>&nbsp;to proceed.</li>
</ol>



<figure class="wp-block-image size-large"><a href="https://library.nagios.com/wp-content/uploads/2025/03/Screenshot-2025-03-07-084731.png"><img decoding="async" width="1024" height="562" src="https://library.nagios.com/wp-content/uploads/2025/03/Screenshot-2025-03-07-084731-1024x562.png" alt="Screenshot 2025 03 07 084731" class="wp-image-51619" title="How to Monitor Oracle Tablespace with Nagios XI 3" srcset="https://library.nagios.com/wp-content/uploads/2025/03/Screenshot-2025-03-07-084731-1024x562.png 1024w, https://library.nagios.com/wp-content/uploads/2025/03/Screenshot-2025-03-07-084731-300x165.png 300w, https://library.nagios.com/wp-content/uploads/2025/03/Screenshot-2025-03-07-084731-768x421.png 768w, https://library.nagios.com/wp-content/uploads/2025/03/Screenshot-2025-03-07-084731.png 1473w" sizes="(max-width: 1024px) 100vw, 1024px" /></a><figcaption class="wp-element-caption">Example output of Oracle Tablespace config step 1</figcaption></figure>



<h2 class="wp-block-heading">Step 3: Configure Monitoring Options</h2>



<ol class="wp-block-list">
<li>Define a <strong>Host Name</strong> for the Oracle server (e.g., oracle-prod-db01) to identify it in Nagios XI.</li>



<li>Choose the metrics to monitor. Common options include:
<ul class="wp-block-list">
<li><strong>Free Space Percentage</strong>: Alerts when available space drops below a threshold.</li>



<li><strong>Used Space</strong>: Tracks storage consumption in MB or GB.</li>



<li><strong>Growth Rate</strong>: Monitors the rate of data increase over time.</li>
</ul>
</li>



<li>Set <strong>Warning</strong> and <strong>Critical</strong> thresholds for each metric. For example:
<ul class="wp-block-list">
<li>Free Space: Warning at 20%, Critical at 10%.</li>



<li>Used Space: Warning at 80 GB, Critical at 90 GB.</li>
</ul>
</li>



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



<h2 class="wp-block-heading">Step 4: Finalizing Configuration</h2>



<ol class="wp-block-list">
<li>Complete the remaining wizard steps (typically Steps 3-5), reviewing options like check intervals (e.g., every 5 minutes) and notification settings.</li>



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



<li>Nagios XI will create the host and associated service checks, then begin monitoring the specified Tablespace.</li>
</ol>



<h2 class="wp-block-heading">Step 5: View Monitoring Results</h2>



<ol class="wp-block-list">
<li>Once the configuration is applied, navigate to <strong>Home</strong> &gt; <strong>Service Detail</strong> in the Nagios XI interface.</li>



<li>Locate the Oracle Tablespace services under the defined host name.</li>



<li>Click a service to view detailed performance data, such as current free space or historical trends.</li>



<li>Nagios XI will trigger alerts (e.g., via email or SMS) if thresholds are breached, based on your notification settings</li>
</ol>



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



<p>If you encounter issues while setting up or running Oracle Tablespace monitoring, consider these common problems and solutions:</p>



<ul class="wp-block-list">
<li><strong>&#8220;Connection Failed&#8221; Error</strong>:
<ul class="wp-block-list">
<li>Verify the FQDN/IP, port, SID, and credentials are correct. Test connectivity using tnsping from the Nagios XI server.</li>



<li>Ensure the Oracle Listener is running on the database server (lsnrctl status).</li>
</ul>
</li>



<li><strong>No Data Returned</strong>:
<ul class="wp-block-list">
<li>Confirm the Oracle plugin (check_oracle_health) is installed and executable. Run it manually from the command line (e.g., ./check_oracle_health &#8211;connect &lt;SID&gt; &#8211;username &lt;user&gt; &#8211;password &lt;pass&gt; &#8211;mode tablespace-free) to debug.</li>



<li>Check that the specified Tablespace name exists in the database (query: SELECT TABLESPACE_NAME FROM DBA_TABLESPACES).</li>
</ul>
</li>



<li><strong>Alerts Not Triggering</strong>:
<ul class="wp-block-list">
<li>Review the Warning and Critical thresholds in the service configuration to ensure they align with current Tablespace usage.</li>



<li>Verify notification settings under <strong>Configure</strong> &gt; <strong>Notifications</strong> in Nagios XI.</li>
</ul>
</li>



<li><strong>Performance Issues</strong>:
<ul class="wp-block-list">
<li>Reduce the check interval (e.g., from 1 minute to 5 minutes) if the server is overloaded by frequent checks.</li>
</ul>
</li>
</ul>



<p>For persistent issues, consult the Nagios XI logs (located at /usr/local/nagiosxi/var/nagios.log) or contact Nagios Support.</p>



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



<p>Setting up Oracle Tablespace monitoring in Nagios XI empowers DBAs to proactively manage database storage and prevent disruptions. By following this guide, you can configure real-time monitoring, define meaningful thresholds, and leverage Nagios XI’s alerting system to stay ahead of potential issues. With the added troubleshooting steps, you’re equipped to resolve common challenges and ensure a robust monitoring setup.</p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>Monitoring PostgreSQL Servers with Nagios XI</title>
		<link>https://library.nagios.com/tutorials/monitoring-postgresql-servers-with-nagios-xi/</link>
		
		<dc:creator><![CDATA[Ayub Huruse]]></dc:creator>
		<pubDate>Thu, 06 Mar 2025 14:10:22 +0000</pubDate>
				<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[Monitoring]]></category>
		<category><![CDATA[Database Monitoring]]></category>
		<category><![CDATA[Databases]]></category>
		<category><![CDATA[PostgreSQL]]></category>
		<guid isPermaLink="false">https://library.nagios.com/?p=51192</guid>

					<description><![CDATA[Ensuring the performance, availability, and security of your PostgreSQL servers is crucial for maintaining a reliable database environment. With Nagios XI, you can streamline this process using its dedicated PostgreSQL Server Configuration Wizard, making setup and monitoring easier than ever. This guide walks you through a step-by-step approach to configuring PostgreSQL monitoring in Nagios XI, [&#8230;]]]></description>
										<content:encoded><![CDATA[
<p>Ensuring the performance, availability, and security of your PostgreSQL servers is crucial for maintaining a reliable database environment. With Nagios XI, you can streamline this process using its dedicated PostgreSQL Server Configuration Wizard, making setup and monitoring easier than ever. This guide walks you through a step-by-step approach to configuring PostgreSQL monitoring in <a href="https://www.nagios.com/products/nagios-xi/" target="_blank" rel="noopener">Nagios XI</a>, empowering IT teams to detect issues early, optimize performance, and maintain database health proactively.</p>



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



<p>Before setting up monitoring, ensure the following requirements are met:</p>



<ul class="wp-block-list">
<li><strong>PostgreSQL Authentication:</strong> A valid PostgreSQL user with appropriate permissions is required.</li>



<li><strong>Firewall Rules:</strong> Ensure PostgreSQL allows inbound connections from Nagios XI.</li>



<li><strong>Network Configuration:</strong> The PostgreSQL server should be accessible over the network.</li>



<li><strong>Nagios XI Installation:</strong> Ensure Nagios XI is installed and operational with appropriate plugins (e.g., check_postgres).</li>
</ul>



<p><em><strong>Note</strong>:</em> Test connectivity (e.g., using psql or telnet) between the Nagios XI server and PostgreSQL to preempt setup issues.</p>



<h2 class="wp-block-heading">Key Features of Nagios XI for PostgreSQL Monitoring</h2>



<p>Nagios XI provides robust tools to monitor PostgreSQL effectively:</p>



<ul class="wp-block-list">
<li><strong>Comprehensive Database Monitoring:</strong> Tracks critical metrics such as connection status, database size, table and relation sizes, and more.</li>



<li><strong>Custom Query Monitoring:</strong> Allows execution of user-defined SQL queries to monitor bespoke metrics, with customizable alerts based on results.</li>



<li><strong>Third-Party Plugin Integration:</strong> Supports plugins like check_postgres for advanced checks, including database bloat, replication lag, and lock contention.</li>
</ul>



<h2 class="wp-block-heading">Benefits of Monitoring PostgreSQL with Nagios XI</h2>



<ul class="wp-block-list">
<li><strong>Proactive Issue Detection:</strong> Identify and resolve potential issues—such as resource exhaustion or slow queries—before they cause downtime.</li>



<li><strong>Enhanced Performance Visibility:</strong> Gain real-time insights into PostgreSQL performance metrics to optimize operations.</li>



<li><strong>Customizable Alerting:</strong> Define thresholds for warnings and critical alerts tailored to your organization’s needs.</li>
</ul>



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



<p>The PostgreSQL Server Configuration Wizard in Nagios XI streamlines the monitoring setup process. Follow these steps:</p>



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



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



<p>2. Search for <strong>Postgres Server</strong> and select the wizard.</p>



<figure class="wp-block-image size-large"><a href="https://library.nagios.com/wp-content/uploads/2025/03/Screenshot-2025-03-05-140738.png"><img loading="lazy" decoding="async" width="1024" height="500" src="https://library.nagios.com/wp-content/uploads/2025/03/Screenshot-2025-03-05-140738-1024x500.png" alt="Screenshot 2025 03 05 140738" class="wp-image-51264" title="Monitoring PostgreSQL Servers with Nagios XI 4" srcset="https://library.nagios.com/wp-content/uploads/2025/03/Screenshot-2025-03-05-140738-1024x500.png 1024w, https://library.nagios.com/wp-content/uploads/2025/03/Screenshot-2025-03-05-140738-300x146.png 300w, https://library.nagios.com/wp-content/uploads/2025/03/Screenshot-2025-03-05-140738-768x375.png 768w, https://library.nagios.com/wp-content/uploads/2025/03/Screenshot-2025-03-05-140738-1536x750.png 1536w, https://library.nagios.com/wp-content/uploads/2025/03/Screenshot-2025-03-05-140738.png 1840w" sizes="(max-width: 1024px) 100vw, 1024px" /></a><figcaption class="wp-element-caption">Example output of Postgres Server wizard</figcaption></figure>



<p>3. Enter the PostgreSQL connection details:</p>



<ul class="wp-block-list">
<li><strong>Address:</strong> The IP address or hostname of the PostgreSQL server (e.g., <code>192.168.23.76</code>).</li>



<li><strong>Port:</strong> PostgreSQL default port is <code>5432</code> (modify if necessary).</li>



<li><strong>Username:</strong> The PostgreSQL user with monitoring privileges (e.g., <code>postgres</code>).</li>



<li><strong>Password:</strong> Enter and confirm the password.</li>



<li><strong>Database:</strong> Specify the database to monitor (e.g., <code>postgres</code>).</li>
</ul>



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



<figure class="wp-block-image size-large"><a href="https://library.nagios.com/wp-content/uploads/2025/03/Screenshot-2025-03-05-140851.png"><img loading="lazy" decoding="async" width="1024" height="490" src="https://library.nagios.com/wp-content/uploads/2025/03/Screenshot-2025-03-05-140851-1024x490.png" alt="Screenshot 2025 03 05 140851" class="wp-image-51265" title="Monitoring PostgreSQL Servers with Nagios XI 5" srcset="https://library.nagios.com/wp-content/uploads/2025/03/Screenshot-2025-03-05-140851-1024x490.png 1024w, https://library.nagios.com/wp-content/uploads/2025/03/Screenshot-2025-03-05-140851-300x144.png 300w, https://library.nagios.com/wp-content/uploads/2025/03/Screenshot-2025-03-05-140851-768x368.png 768w, https://library.nagios.com/wp-content/uploads/2025/03/Screenshot-2025-03-05-140851-1536x736.png 1536w, https://library.nagios.com/wp-content/uploads/2025/03/Screenshot-2025-03-05-140851.png 1689w" sizes="(max-width: 1024px) 100vw, 1024px" /></a><figcaption class="wp-element-caption">Example output of Postgres server config wizard</figcaption></figure>



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



<ol class="wp-block-list">
<li>Verify or adjust the <strong>Host Name</strong> field to accurately reflect the PostgreSQL server’s identity.</li>



<li>Select the metrics to monitor, such as:
<ul class="wp-block-list">
<li>Database availability</li>



<li>Active connections</li>



<li>Query performance (e.g., slow query counts)</li>



<li>Transaction log status</li>
</ul>
</li>



<li>Set <strong>Warning</strong> and <strong>Critical</strong> thresholds for each metric to trigger alerts as needed.</li>



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



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



<ol class="wp-block-list">
<li>Review all settings for accuracy.</li>



<li>Make adjustments if necessary (e.g., tweak thresholds or add custom queries).</li>



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



<li>Once completed, select <strong>View Status Details</strong> to confirm that the new monitoring services are active and reporting correctly</li>
</ol>



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



<p>If problems arise during setup or monitoring, consider these checks:</p>



<ul class="wp-block-list">
<li><strong>Connection Failures:</strong> Verify PostgreSQL’s pg_hba.conf file allows connections from the Nagios XI server (e.g., add host all all &lt;Nagios_IP&gt; md5).</li>



<li><strong>Firewall Blocking:</strong> Temporarily disable the firewall to test connectivity, then adjust rules to permit traffic on the PostgreSQL port (default: 5432).</li>



<li><strong>Authentication Errors:</strong> Confirm the username and password match an active PostgreSQL role with appropriate permissions.</li>



<li><strong>Network Issues:</strong> Ensure PostgreSQL is running and listening on the specified address and port (check with netstat -tuln | grep 5432).</li>
</ul>



<p><em><strong>Tip</strong>:</em> Enable verbose logging in Nagios XI to diagnose issues more effectively.</p>



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



<p>Nagios XI simplifies PostgreSQL monitoring, delivering actionable insights into database health and performance. By leveraging its configuration wizard and extensible plugin ecosystem, IT teams can ensure their PostgreSQL environments remain reliable and efficient. For further 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>
		<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 loading="lazy" 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 6" 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 loading="lazy" 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 7" 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>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 loading="lazy" 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 8" 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 loading="lazy" 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 9" 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>
		<item>
		<title>How to Monitor MySQL Server Performance with Nagios XI</title>
		<link>https://library.nagios.com/tutorials/how-to-monitor-mysql-server-performance-with-nagios-xi/</link>
		
		<dc:creator><![CDATA[Ayub Huruse]]></dc:creator>
		<pubDate>Mon, 03 Mar 2025 16:23:20 +0000</pubDate>
				<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[Monitoring]]></category>
		<category><![CDATA[Database Monitoring]]></category>
		<category><![CDATA[Databases]]></category>
		<category><![CDATA[MySQL]]></category>
		<guid isPermaLink="false">https://library.nagios.com/?p=50662</guid>

					<description><![CDATA[MySQL powers millions of websites and applications worldwide, making it one of the most trusted and widely used database management systems. But with great power comes great responsibility – ensuring your MySQL server is always available and performing at its best is crucial to keeping your systems running smoothly. In this guide, we&#8217;ll walk you [&#8230;]]]></description>
										<content:encoded><![CDATA[
<p>MySQL powers millions of websites and applications worldwide, making it one of the most trusted and widely used database management systems. But with great power comes great responsibility – ensuring your MySQL server is always available and performing at its best is crucial to keeping your systems running smoothly. In this guide, we&#8217;ll walk you through the process of monitoring MySQL databases using <a href="https://www.nagios.com/products/nagios-xi/" target="_blank" rel="noopener">Nagios XI</a>, so you can stay ahead of any issues and ensure peak performance at all times.</p>



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



<p>Before setting up MySQL monitoring in Nagios XI, ensure the following requirements are met:</p>



<ul class="wp-block-list">
<li>A running Nagios XI instance</li>



<li>A running MySQL server (local or remote).</li>



<li>MySQL credentials with sufficient privileges for monitoring (e.g., SELECT, SHOW DATABASES, PROCESS).</li>



<li>Unrestricted network connectivity between the Nagios XI server and the MySQL server (port 3306 by default).</li>
</ul>



<p>Verify your MySQL version 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>mysql --version</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">mysql --version</span></span></code></pre></div>



<h3 class="wp-block-heading">Example output:</h3>



<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>MySQL 8.0.34-0ubuntu0.20.04.1</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">MySQL 8.0.34-0ubuntu0.20.04.1</span></span></code></pre></div>



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



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



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



<li>Search for and select the <code>MySQL Server</code> wizard.</li>
</ol>



<figure class="wp-block-image size-large"><a href="https://library.nagios.com/wp-content/uploads/2025/03/Screenshot-2025-03-03-100550.png"><img loading="lazy" decoding="async" width="1024" height="465" src="https://library.nagios.com/wp-content/uploads/2025/03/Screenshot-2025-03-03-100550-1024x465.png" alt="Screenshot 2025 03 03 100550" class="wp-image-50670" title="How to Monitor MySQL Server Performance with Nagios XI 10" srcset="https://library.nagios.com/wp-content/uploads/2025/03/Screenshot-2025-03-03-100550-1024x465.png 1024w, https://library.nagios.com/wp-content/uploads/2025/03/Screenshot-2025-03-03-100550-300x136.png 300w, https://library.nagios.com/wp-content/uploads/2025/03/Screenshot-2025-03-03-100550-768x348.png 768w, https://library.nagios.com/wp-content/uploads/2025/03/Screenshot-2025-03-03-100550-1536x697.png 1536w, https://library.nagios.com/wp-content/uploads/2025/03/Screenshot-2025-03-03-100550.png 1609w" sizes="(max-width: 1024px) 100vw, 1024px" /></a><figcaption class="wp-element-caption">Example output of MySQL server wizard</figcaption></figure>



<h2 class="wp-block-heading">Step 2: Configure MySQL Monitoring</h2>



<ol class="wp-block-list">
<li>Enter the required details:
<ul class="wp-block-list">
<li><strong>Monitor Name</strong>: A descriptive name for the MySQL check.</li>



<li><strong>Address</strong>: IP address or hostname of the MySQL server.</li>



<li><strong>Port</strong>: MySQL server port (default: 3306).</li>



<li><strong>Username</strong>: MySQL user with monitoring privileges.</li>



<li><strong>Password</strong>: Password for the MySQL user.</li>
</ul>
</li>



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



<figure class="wp-block-image size-large"><a href="https://library.nagios.com/wp-content/uploads/2025/03/Screenshot-2025-03-03-100703.png"><img loading="lazy" decoding="async" width="1024" height="511" src="https://library.nagios.com/wp-content/uploads/2025/03/Screenshot-2025-03-03-100703-1024x511.png" alt="Screenshot 2025 03 03 100703" class="wp-image-50673" title="How to Monitor MySQL Server Performance with Nagios XI 11" srcset="https://library.nagios.com/wp-content/uploads/2025/03/Screenshot-2025-03-03-100703-1024x511.png 1024w, https://library.nagios.com/wp-content/uploads/2025/03/Screenshot-2025-03-03-100703-300x150.png 300w, https://library.nagios.com/wp-content/uploads/2025/03/Screenshot-2025-03-03-100703-768x383.png 768w, https://library.nagios.com/wp-content/uploads/2025/03/Screenshot-2025-03-03-100703.png 1445w" sizes="(max-width: 1024px) 100vw, 1024px" /></a><figcaption class="wp-element-caption">Example output of MySQL server config step 1</figcaption></figure>



<h2 class="wp-block-heading">Step 3: Select Metrics to Monitor</h2>



<p>Choose the MySQL performance metrics you want to track, such as:</p>



<ul class="wp-block-list">
<li><strong>Connection Status</strong>: Checks if MySQL is responding.</li>



<li><strong>Uptime</strong>: Displays how long MySQL has been running.</li>



<li><strong>Slow Queries</strong>: Monitors queries exceeding the slow query threshold.</li>



<li><strong>Query Cache Usage</strong>: Evaluates query cache efficiency.</li>



<li><strong>Buffer Pool Usage</strong>: Tracks InnoDB buffer pool utilization.</li>



<li><strong>Table Locks</strong>: Detects locking issues.</li>



<li><strong>Replication Status</strong>: Monitors MySQL replication health.</li>
</ul>



<p>Set warning and critical thresholds for each metric based on your environment.</p>



<h2 class="wp-block-heading">Step 4: Finalize Configuration</h2>



<ol class="wp-block-list">
<li>Review all settings.</li>



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



<li>Nagios XI will now begin monitoring the specified MySQL server metrics.</li>
</ol>



<h2 class="wp-block-heading">Video Tutorial: Monitoring MySQL with Nagios XI</h2>



<p>For a visual guide to the setup process, watch this step-by-step 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="Nagios: Monitoring a MySQL Server" width="800" height="450" src="https://www.youtube.com/embed/EtM775gpHsE?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>This video demonstrates the configuration steps outlined above, offering additional clarity for visual learners.</p>



<h2 class="wp-block-heading">Step 5: Advanced Monitoring with Plugins (Optional)</h2>



<p>For more granular monitoring, you can use <code>check_mysql_health</code>, which provides insights into:</p>



<ul class="wp-block-list">
<li>Index usage</li>



<li>Buffer pool hit rate</li>



<li>Temporary tables on disk</li>



<li>Table cache hit rate</li>



<li>Connected threads</li>
</ul>



<h3 class="wp-block-heading"><strong>Installing the Plugin</strong></h3>



<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>cd /usr/local/nagios/libexec
wget https://exchange.nagios.org/check_mysql_health.tar.gz
tar -xzf check_mysql_health.tar.gz
cd check_mysql_health
./configure
make
make install</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">cd /usr/local/nagios/libexec</span></span>
<span class="line"><span style="color: #D4D4D4">wget https://exchange.nagios.org/check_mysql_health.tar.gz</span></span>
<span class="line"><span style="color: #D4D4D4">tar -xzf check_mysql_health.tar.gz</span></span>
<span class="line"><span style="color: #D4D4D4">cd check_mysql_health</span></span>
<span class="line"><span style="color: #D4D4D4">./configure</span></span>
<span class="line"><span style="color: #D4D4D4">make</span></span>
<span class="line"><span style="color: #D4D4D4">make install</span></span></code></pre></div>



<h3 class="wp-block-heading"><strong>Configuring the Plugin</strong></h3>



<ol class="wp-block-list">
<li>In Nagios XI, navigate to Configure &gt; Core Config Manager.</li>



<li>Define a new command (e.g., check_mysql_health) with appropriate arguments (e.g., -H $HOSTADDRESS$ -u $ARG1$ -p $ARG2$ &#8211;mode $ARG3$).</li>



<li>Add a service check for the MySQL host, linking it to the new command.</li>



<li>Set thresholds (e.g., &#8211;warning 80 &#8211;critical 90 for buffer pool hit rate) and enable notifications.</li>
</ol>



<h2 class="wp-block-heading"><strong>Step 6: Validate the Monitoring Setup</strong></h2>



<p>Confirm that Nagios XI is actively monitoring MySQL:</p>



<ol class="wp-block-list">
<li>Go to Views &gt; Service Status in the Nagios XI interface.</li>



<li>Search for the MySQL-related services and review their status (e.g., &#8220;OK,&#8221; &#8220;Warning,&#8221; or &#8220;Critical&#8221;).</li>



<li>Investigate and resolve any unexpected alerts by checking logs or connectivity.</li>
</ol>



<h3 class="wp-block-heading">Example Output:</h3>



<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>Service: MySQL Connection Status - Status: OK - Response Time: 0.12s
Service: MySQL Slow Queries - Status: OK - Slow Queries: 2/min</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">Service: MySQL Connection Status - Status: OK - Response Time: 0.12s</span></span>
<span class="line"><span style="color: #D4D4D4">Service: MySQL Slow Queries - Status: OK - Slow Queries: 2/min</span></span></code></pre></div>



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



<p>By following this guide, you have successfully set up MySQL monitoring in Nagios XI. If you encounter any issues, refer to 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 Knowledge Base</a> for troubleshooting assistance.</p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>Database Activity Monitoring (DAM): Everything You Need To Know</title>
		<link>https://library.nagios.com/industry-insights/database-activity-monitoring/</link>
		
		<dc:creator><![CDATA[Sam Ayd]]></dc:creator>
		<pubDate>Thu, 16 Jan 2025 14:45:00 +0000</pubDate>
				<category><![CDATA[Industry Insights]]></category>
		<category><![CDATA[Database Monitoring]]></category>
		<guid isPermaLink="false">https://library.nagios.com/?p=40684</guid>

					<description><![CDATA[Database activity monitoring software is essential to the overall IT monitoring ecosystem. A thorough monitoring strategy is required since databases do not work in isolation.]]></description>
										<content:encoded><![CDATA[
<p>In today’s digital world, monitoring your databases is critical for security and efficiency. Database Activity Monitoring (DAM) delivers real-time information to help protect data and maintain compliance. Whether you manage a small database or an enterprise system, Nagios&#8217; offers solutions and benefits for database monitoring. </p>



<h2 class="wp-block-heading">What is Database Activity Monitoring?</h2>



<p>DAM is the ongoing monitoring and analysis of database activity to maintain an environment’s security, performance, and compatibility. Consistent monitoring allows you to track and evaluate what’s going on in your database. This lets you observe who is accessing the database, what’s changing within the database, and if there are any unusual trends. Monitoring a database&#8217;s activity is critical for controlling the reliability and safety of databases. Many businesses rely on databases such as&nbsp;<a href="https://www.nagios.com/solutions/mysql-monitoring/" target="_blank" rel="noreferrer noopener">MySQL</a>,&nbsp;<a href="https://www.nagios.com/solutions/postgresql-monitoring/" target="_blank" data-type="link" data-id="https://www.nagios.com/solutions/postgresql-monitoring/" rel="noreferrer noopener">PostgreSQL</a>,&nbsp;<a href="https://www.nagios.com/solutions/oracle-monitoring/" target="_blank" rel="noreferrer noopener">Oracle</a>, and&nbsp;<a href="https://www.nagios.com/solutions/mssql-monitoring/" target="_blank" rel="noreferrer noopener">Microsoft SQL Server</a>, but recognize the need for important DAM solutions to ensure optimal data integrity and efficiency.</p>



<h2 class="wp-block-heading">Database Activity Monitoring Software</h2>



<p>Database activity monitoring&nbsp;software is essential to the overall IT monitoring ecosystem. A thorough monitoring strategy is required since databases do not work in isolation. Server load, network performance, and even application behavior all have an impact on database performance. As a result, adopting a DAM solution&nbsp;that provides complete visibility into the structure of your system is critical.</p>



<p><strong>Example</strong>: A long-running query&nbsp;does not always suggest&nbsp;a database issue. It could indicate an&nbsp;underlying disk I/O issue&nbsp;or CPU saturation. A comprehensive monitoring system tracking these related&nbsp;components allows for more accurate diagnosis and faster issue resolution.</p>



<h2 class="wp-block-heading">Database Activity Monitoring Tools:</h2>



<h4 class="wp-block-heading">Nagios XI</h4>



<p><a href="https://www.nagios.com/products/nagios-xi/" data-type="link" data-id="https://www.nagios.com/products/nagios-xi/" target="_blank" rel="noopener">Nagios XI</a> provides real-time database monitoring with SNMP monitoring and the ability to set traps. SNMP traps work by providing rapid alerts when specific events occur, such as performance decreases or hardware failure. XI also uses both active and passive checks. Active checks include Nagios accessing the database on a regular basis, whereas passive checks allow the database or other devices to send monitoring data to your XI instance. This dual technique ensures thorough monitoring without overloading the network or Nagios server.</p>



<ul class="wp-block-list">
<li><a href="https://library.nagios.com/documentation/how-to-monitor-mysql-server-performance-with-nagios-xi/" data-type="link" data-id="https://library.nagios.com/documentation/how-to-monitor-mysql-server-performance-with-nagios-xi/">Monitor MySQL Server Performance with Nagios XI</a> – real-time query auditing &amp; performance metrics.</li>



<li><a href="https://library.nagios.com/documentation/monitor-microsoft-sql-server/" data-type="link" data-id="https://library.nagios.com/documentation/monitor-microsoft-sql-server/">Monitor Microsoft SQL Server (MSSQL) with Nagios XI</a> – track session logs, query latency, and usage trends.</li>



<li><a href="https://library.nagios.com/documentation/monitoring-postgresql-servers-with-nagios-xi/" data-type="link" data-id="https://library.nagios.com/documentation/monitoring-postgresql-servers-with-nagios-xi/">Monitoring PostgreSQL Servers with Nagios XI</a> – capture transaction details and compliance events.</li>



<li><a href="https://library.nagios.com/documentation/how-to-monitor-oracle-tablespace-with-nagios-xi/" data-type="link" data-id="https://library.nagios.com/documentation/how-to-monitor-oracle-tablespace-with-nagios-xi/">How to Monitor Oracle Tablespace with Nagios XI</a> – stay ahead of tablespace growth and I/O bottlenecks.</li>



<li><a href="https://library.nagios.com/docs/nagios-xi/configuration/Nagios-XI-Monitoring-MongoDB" data-type="link" data-id="https://library.nagios.com/docs/nagios-xi/configuration/Nagios-XI-Monitoring-MongoDB">Nagios XI – Monitoring a MongoDB Database</a> – audit collection changes and user access patterns.</li>
</ul>



<p>With these platform-specific wizards in place, Nagios XI’s mix of SNMP traps, active checks, and passive checks will start feeding you real-time audit data without overloading your network or server. </p>



<h2 class="wp-block-heading">Benefits of Monitoring Database Activity with Nagios</h2>



<p>When assessing DAM tools, flexibility and scalability are critical. Nagios prides itself on providing a comprehensive range of monitoring solutions that are adaptable to various environments and infrastructure.</p>



<h4 class="wp-block-heading">Vendor-Agnostic</h4>



<p>Nagios solutions are vendor-agnostic, giving them the versatility to monitor any database or environment. This versatility is critical for businesses to operate in many environments or constantly change vendors.</p>



<h4 class="wp-block-heading">Cost-Effective</h4>



<p>Nagios is often considered more cost-effective compared to our competitors due to its flexible licensing model, lower upfront costs, and the ability to scale based on organizational needs. Unlike other companies who typically have higher licensing fees and maintenance costs, Nagios uses an open-source foundation with affordable enterprise-grade features. Nagios provides a powerful monitoring solution at a fraction of the cost of competitors, without compromising on functionality or performance.</p>



<h4 class="wp-block-heading">Heightened Security and Control</h4>



<p>With Nagios, enterprises have the flexibility to configure their monitoring to fit their unique security and architectural requirements. Nagios can be deployed locally or in the cloud, can monitor both actively and passively, and supports a variety of monitoring agents and protocols. The data collected, the way communication happens, and how it is secured are all under your control.</p>



<h4 class="wp-block-heading">Configuration Plugins: Agent/Agentless Monitoring</h4>



<p>Nagios offers many configuration options, including <a href="https://www.nagios.com/article/agent-based-and-agentless/" data-type="link" data-id="https://www.nagios.com/article/agent-based-and-agentless/" target="_blank" rel="noopener">agent-based and agentless monitoring</a> to meet various company needs. Whether you choose detailed agent-based&nbsp;data collecting&nbsp;or simple <a href="https://library.nagios.com/industry-insights/agentless-management-service/" target="_blank" data-type="link" data-id="https://library.nagios.com/industry-insights/agentless-management-service/" rel="noreferrer noopener">agentless techniques</a>, Nagios has the tools you need for successful and comprehensive monitoring. Additionally, Nagios offers extensive customization options and robust community support, reducing the need for costly third-party integrations or specialized training.</p>



<figure class="wp-block-image aligncenter size-large is-resized has-custom-border is-style-rounded"><a href="https://library.nagios.com/wp-content/uploads/2024/11/image_two_people_servers_shutterstock_1319513675_1.webp"><img loading="lazy" decoding="async" width="1024" height="576" src="https://library.nagios.com/wp-content/uploads/2024/11/image_two_people_servers_shutterstock_1319513675_1-1024x576.webp" alt="The benefits of database activity monitoring tools" class="wp-image-34070" style="border-radius:8px;object-fit:cover;width:825px;height:400px" title="Database Activity Monitoring (DAM): Everything You Need To Know 12" srcset="https://library.nagios.com/wp-content/uploads/2024/11/image_two_people_servers_shutterstock_1319513675_1-1024x576.webp 1024w, https://library.nagios.com/wp-content/uploads/2024/11/image_two_people_servers_shutterstock_1319513675_1-300x169.webp 300w, https://library.nagios.com/wp-content/uploads/2024/11/image_two_people_servers_shutterstock_1319513675_1-768x432.webp 768w, https://library.nagios.com/wp-content/uploads/2024/11/image_two_people_servers_shutterstock_1319513675_1.webp 1200w" sizes="(max-width: 1024px) 100vw, 1024px" /></a></figure>



<h2 class="wp-block-heading">FAQ: Database Activity Monitoring</h2>



<h4 class="wp-block-heading">1. What is Database Activity Monitoring?</h4>



<p>Database Activity Monitoring (DAM) is the ongoing monitoring and analysis of database activity to maintain a database environment&#8217;s security and performance. It works in detecting suspicious patterns, performance bottlenecks, and other security threats. DAM gives real-time warnings and&nbsp;audit records, allowing businesses to detect and address issues quickly.</p>



<h4 class="wp-block-heading">2. Why is Database Activity Monitoring important?</h4>



<p>DAM is critical for safeguarding sensitive data, maintaining regulatory compliance, and improving database performance. It enables businesses to avoid data breaches, track unauthorized modifications, and monitor query speed. By anticipating&nbsp;issues, DAM is able to reduce <a href="https://library.nagios.com/industry-insights/the-cost-of-downtime/" target="_blank" data-type="link" data-id="https://library.nagios.com/industry-insights/the-cost-of-downtime/" rel="noreferrer noopener">downtime</a> and enhance database maintenance efficiency.</p>



<h4 class="wp-block-heading">3. What are the essential features of an effective Database Activity Monitoring solution?</h4>



<p>A reliable DAM solution should offer real-time monitoring, activity logging, customizable alerts, and extensive audit records. It should be compatible with multiple&nbsp;database platforms, including MySQL, PostgreSQL, Oracle, and MSSQL Server. It should also be able to detect unusual behavior patterns, simplify compliance reporting, and provide scalability for larger environments. </p>



<p>Nagios has all of these features and more. The Nagios suite offers you the ability to monitor your databases, servers, and networks. Nagios is the comprehensive solution you need to know your environment is running efficiently and effectively.</p>



<h2 class="wp-block-heading">Nagios Integrations</h2>



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



<p><a href="https://www.nagios.com/products/nagios-log-server/" data-type="link" data-id="https://www.nagios.com/products/nagios-log-server/" target="_blank" rel="noopener">Nagios Log Server</a> enables centralized log management. For databases, log files are a goldmine of information. Nagios Log Server collects, indexes, and analyzes logs from a variety of databases, providing useful information on security, performance, and operational trends.</p>



<h4 class="wp-block-heading">Nagios Network Analyzer</h4>



<p><a href="https://www.nagios.com/products/nagios-network-analyzer/" data-type="link" data-id="https://www.nagios.com/products/nagios-network-analyzer/" target="_blank" rel="noopener">Nagios Network Analyzer</a> supports flow data analysis. Monitoring network flow data is critical for evaluating database performance, particularly in distributed systems. Nagios Network Analyzer analyzes and visualizes traffic patterns, offering better understanding of possible bottlenecks.</p>



<h4 class="wp-block-heading">Nagios Fusion</h4>



<p><a href="https://www.nagios.com/products/nagios-fusion/" data-type="link" data-id="https://www.nagios.com/products/nagios-fusion/" target="_blank" rel="noopener">Nagios Fusion</a> provides a centralized dashboard by combining data from all Nagios systems. This is especially valuable for firms with several databases in different locations. Having a single pane of glass to reference, users can monitor database activity, health, and overall performance seamlessly.</p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>Nagios XI – Monitoring a MongoDB Database</title>
		<link>https://library.nagios.com/documentation/nagios-xi-monitoring-a-mongodb-database/</link>
		
		<dc:creator><![CDATA[Ethan Galstad]]></dc:creator>
		<pubDate>Wed, 14 May 2014 22:29:53 +0000</pubDate>
				<category><![CDATA[Documentation]]></category>
		<category><![CDATA[Database Monitoring]]></category>
		<guid isPermaLink="false">https://libtest.nagios.com/library/products/nagios-xi/documentation/nagios-xi-monitoring-a-mongodb-database/</guid>

					<description><![CDATA[This document describes how to monitor MongoDB databases with Nagios XI in order to monitor the number of collections and/or objects in the database, as well as size of the database. The information you collect by monitoring your MongoDB database will help you determine when documents are written into the database or if the size [&#8230;]]]></description>
										<content:encoded><![CDATA[
<p>This document describes how to monitor MongoDB databases with Nagios XI in order to monitor the number of collections and/or objects in the database, as well as size of the database. The information you collect by monitoring your MongoDB database will help you determine when documents are written into the database or if the size of the database is getting too large.</p>



<p>This document is intended for Nagios Administrators who want to monitor their MongoDB instances with Nagios XI 2014.</p>



<p><strong>Monitoring MongoDB Databases With Nagios XI &#8211; 2024 &amp; 2026</strong></p>



<p><a href="https://assets.nagios.com/downloads/nagiosxi/docs/Monitoring-a-MongoDB-Database-2024.pdf" target="_blank" rel="noreferrer noopener">Monitoring MongoDB DBs with XI 2026</a></p>



<p><strong>Monitoring MongoDB Databases With Nagios XI &#8211; v5 (Legacy) </strong></p>



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



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