<?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>Support Tips &#8211; Nagios Library</title>
	<atom:link href="https://library.nagios.com/support-tips/feed/" rel="self" type="application/rss+xml" />
	<link>https://library.nagios.com</link>
	<description>Complete Nagios monitoring resources and documentation</description>
	<lastBuildDate>Tue, 17 Feb 2026 22:51:50 +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>Support Tips &#8211; Nagios Library</title>
	<link>https://library.nagios.com</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>Nagios XI Maintenance Checklist</title>
		<link>https://library.nagios.com/support-tips/nagios-xi-maintenance-checklist/</link>
		
		<dc:creator><![CDATA[Joe Johnson]]></dc:creator>
		<pubDate>Fri, 11 Apr 2025 13:45:00 +0000</pubDate>
				<category><![CDATA[Support Tips]]></category>
		<category><![CDATA[Techtips]]></category>
		<category><![CDATA[Maintenance]]></category>
		<guid isPermaLink="false">https://library.nagios.com/?p=54746</guid>

					<description><![CDATA[Weekly, Monthly, and Yearly Best Practices A healthy Nagios XI environment requires ongoing maintenance to ensure accurate monitoring, optimal performance, and reliable alerting. This guide outlines key weekly, monthly, and yearly tasks to keep your system in top shape. Weekly Tasks Review Unhandled Alerts Open the Service and Host Problems views to identify alerts that [&#8230;]]]></description>
										<content:encoded><![CDATA[
<figure class="wp-block-image size-large"><a href="https://library.nagios.com/wp-content/uploads/2025/04/image-1.png"><img fetchpriority="high" decoding="async" width="1024" height="497" src="https://library.nagios.com/wp-content/uploads/2025/04/image-1-1024x497.png" alt="image 1" class="wp-image-54755" title="Nagios XI Maintenance Checklist 1" srcset="https://library.nagios.com/wp-content/uploads/2025/04/image-1-1024x497.png 1024w, https://library.nagios.com/wp-content/uploads/2025/04/image-1-300x146.png 300w, https://library.nagios.com/wp-content/uploads/2025/04/image-1-768x373.png 768w, https://library.nagios.com/wp-content/uploads/2025/04/image-1-1536x746.png 1536w, https://library.nagios.com/wp-content/uploads/2025/04/image-1-2048x994.png 2048w" sizes="(max-width: 1024px) 100vw, 1024px" /></a></figure>



<h2 class="wp-block-heading">Weekly, Monthly, and Yearly Best Practices</h2>



<p>A healthy <a href="https://www.nagios.com/products/nagios-xi/" target="_blank" rel="noopener">Nagios XI</a> environment requires ongoing maintenance to ensure accurate monitoring, optimal performance, and reliable alerting. This guide outlines key weekly, monthly, and yearly tasks to keep your system in top shape.</p>



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



<h2 class="wp-block-heading">Weekly Tasks</h2>



<h3 class="wp-block-heading">Review Unhandled Alerts</h3>



<p>Open the Service and <a href="https://library.nagios.com/monitoring/host-groups-3-business-use-cases/" target="_blank" rel="noreferrer noopener">Host</a> Problems views to identify alerts that have not been acknowledged or resolved. Investigate recurring or long-standing issues.</p>



<h3 class="wp-block-heading">Monitor System Resource Usage</h3>



<p>Check the Nagios XI server’s CPU, memory, and disk usage using the Performance Info section. High resource consumption could impact monitoring performance.</p>



<h3 class="wp-block-heading">Check System Logs</h3>



<p>Review important log files such as:</p>



<ul class="wp-block-list">
<li><code><strong>/var/log/messages</strong></code></li>



<li><code><strong>/usr/local/nagiosxi/var</strong></code><br>Look for unusual entries, frequent plugin failures, or warnings that require attention.</li>
</ul>



<h3 class="wp-block-heading">Backup Nagios XI Configuration</h3>



<p>Verify that scheduled backups are completing successfully. Perform a manual backup before making any configuration changes.</p>



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



<h2 class="wp-block-heading">Monthly Tasks</h2>



<h3 class="wp-block-heading">Clean Up Old or Unused Configurations</h3>



<p>Remove obsolete hosts, services, and checks using the Core Config Manager. Apply configuration changes after cleanup.</p>



<h3 class="wp-block-heading">Prune Event Logs and Performance Data</h3>



<p>Archive or delete older logs and performance data to save disk space. Configure retention policies under Performance Settings or use scheduled cleanup scripts.</p>



<h3 class="wp-block-heading">Check for Plugin and Component Updates</h3>



<p>Visit the Nagios Exchange and XI update manager to download and apply updates to plugins, components, and configuration wizards.</p>



<h3 class="wp-block-heading">Test Notification Deliverability</h3>



<p>Trigger test alerts to ensure all notification methods (email, SMS, chat integrations) are functional and reaching the correct recipients.</p>



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



<h2 class="wp-block-heading">Yearly Tasks</h2>



<h3 class="wp-block-heading">Review Alert Thresholds and Escalation Policies</h3>



<p>Ensure thresholds reflect current usage patterns. Update contact groups and escalation rules to match current team structures and responsibilities.</p>



<h3 class="wp-block-heading">Audit User Accounts and Permissions</h3>



<p>Remove inactive user accounts and review permission levels to comply with internal security policies and access control best practices.</p>



<h3 class="wp-block-heading">Upgrade to the Latest Stable Version</h3>



<p>Review release notes, back up your system, and upgrade to the latest stable version of Nagios XI to benefit from new features and security patches.</p>



<h3 class="wp-block-heading">Test Disaster Recovery Plan</h3>



<p>Restore a backup in a test environment to ensure recovery procedures are reliable. Document any updates to the process based on test results.</p>



<h3 class="wp-block-heading">Document the Current Monitoring Environment</h3>



<p>Maintain a detailed record of:</p>



<ul class="wp-block-list">
<li>Monitored hosts and services.</li>



<li>Custom plugins and event handlers.</li>



<li>Alert routing and contact methods.<br>This is useful for audits, onboarding, and incident response.</li>
</ul>



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



<h2 class="wp-block-heading">Additional Best Practices</h2>



<ul class="wp-block-list">
<li>Schedule maintenance tasks using a shared team calendar or task management tool.</li>



<li>Use configuration snapshots before making bulk changes for quick rollback if needed.</li>



<li>Regularly communicate monitoring changes or updates to relevant stakeholders.</li>
</ul>



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



<h2 class="wp-block-heading">Helpful Tools Within Nagios XI</h2>



<figure class="wp-block-table"><table class="has-fixed-layout"><thead><tr><th>Tool</th><th>Purpose</th></tr></thead><tbody><tr><td>Configuration Snapshots</td><td>Track and roll back changes.</td></tr><tr><td>Backup and Restore</td><td>Schedule and manage backups.</td></tr><tr><td>Performance Graphs</td><td>Visualize trends and detect anomalies.</td></tr><tr><td>Audit Log</td><td>Review user activity and changes.</td></tr><tr><td>Notification Logs</td><td>Troubleshoot alert delivery issues.</td></tr></tbody></table></figure>



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



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



<p>Consistent maintenance is essential for a stable and effective Nagios XI deployment. Following this weekly, monthly, and yearly checklist ensures your monitoring system is accurate, secure, and always ready to detect problems before they become critical.</p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>How to Monitor Ubuntu 20.04 Logs with Nagios Log Server 2024R2</title>
		<link>https://library.nagios.com/techtips/how-to-monitor-ubuntu-20-logs-with-nagios-log-server-2024r2-in-nagios-xi/</link>
		
		<dc:creator><![CDATA[Ayoub Louragli]]></dc:creator>
		<pubDate>Fri, 28 Mar 2025 14:58:01 +0000</pubDate>
				<category><![CDATA[Techtips]]></category>
		<category><![CDATA[Support Tips]]></category>
		<category><![CDATA[Log Monitoring]]></category>
		<category><![CDATA[Ubuntu 20]]></category>
		<guid isPermaLink="false">https://library.nagios.com/?p=53541</guid>

					<description><![CDATA[Monitoring logs from Ubuntu 20.04 using Nagios Log Server 2024R2 is essential for tracking system events, errors, and service activity. This guide walks you through setting up Ubuntu as a log source and verifying log flow in the Nagios XI dashboard. Step 1: Add a New Log Source in Nagios Log Server Step 2: Run [&#8230;]]]></description>
										<content:encoded><![CDATA[
<p>Monitoring logs from Ubuntu 20.04 using Nagios Log Server 2024R2 is essential for tracking system events, errors, and service activity. This guide walks you through setting up Ubuntu as a log source and verifying log flow in the Nagios XI dashboard.</p>



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



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



<li>Click <strong>+ Add Log Source</strong> or navigate to the <strong>Add a Log Source</strong> section.</li>



<li>Select <strong>Linux</strong> from the available source types.</li>
</ol>



<h3 class="wp-block-heading"><strong>Step 2: Run the Auto-Configuration Script on Ubuntu</strong></h3>



<ol class="wp-block-list">
<li>On the <strong>Linux Source Setup</strong> page, copy the provided curl command.</li>



<li>SSH into your Ubuntu 20 machine as a root user.</li>



<li>Paste and execute the script: </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>curl -sS -O http://&lt;NagiosLogServerIP>/nagioslogserver/scripts/setup-linux.sh sudo bash setup-linux.sh -s &lt;NagiosLogServerIP> -p 5544</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">curl -sS -O http://&lt;NagiosLogServerIP&gt;/nagioslogserver/scripts/setup-linux.sh sudo bash setup-linux.sh -s &lt;NagiosLogServerIP&gt; -p 5544</span></span></code></pre></div>



<p>This sets up <code>rsyslog</code> to forward logs to your Nagios Log Server.</p>



<h3 class="wp-block-heading"><strong>Step 3: Verify Incoming Logs</strong></h3>



<ul class="wp-block-list">
<li>Use the <strong>Verify Incoming Logs</strong> field by entering the Ubuntu machine&#8217;s IP.</li>



<li>Or navigate to <strong>Dashboards &gt; Nagios Log Server Search</strong> and run: </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>host.ip:&lt;Ubuntu-IP></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">host.ip:&lt;Ubuntu-IP&gt;</span></span></code></pre></div>



<ul class="wp-block-list">
<li>Test log submission with: </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>logger "This is a test log entry"</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">logger &quot;This is a test log entry&quot;</span></span></code></pre></div>



<ul class="wp-block-list">
<li>Check if the test log appears in <strong>Nagios Log Server</strong>.</li>
</ul>



<h3 class="wp-block-heading"><strong>Step 4: Manually Configure rsyslog (Advanced Users)</strong></h3>



<p>If you prefer a manual setup:</p>



<p>1. Verify your rsyslog working directory:</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>ls -d /var/lib/rsyslog || ls -d /var/spool/rsyslog</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">ls -d /var/lib/rsyslog || ls -d /var/spool/rsyslog</span></span></code></pre></div>



<p>2. Edit the config file:</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>sudo nano /etc/rsyslog.d/99-nagioslogserver.conf</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">sudo nano /etc/rsyslog.d/99-nagioslogserver.conf</span></span></code></pre></div>



<p>Add the following line:</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>*.* @&lt;NagiosLogServerIP>:5544;RSYSLOG_SyslogProtocol23Format</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">*.* @&lt;NagiosLogServerIP&gt;:5544;RSYSLOG_SyslogProtocol23Format</span></span></code></pre></div>



<p>3. Restart <code>rsyslog</code>:</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>sudo systemctl restart rsyslog.service</textarea></pre><svg xmlns="http://www.w3.org/2000/svg" style="width:24px;height:24px" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2"><path class="with-check" stroke-linecap="round" stroke-linejoin="round" d="M4.5 12.75l6 6 9-13.5"></path><path class="without-check" stroke-linecap="round" stroke-linejoin="round" d="M16.5 8.25V6a2.25 2.25 0 00-2.25-2.25H6A2.25 2.25 0 003.75 6v8.25A2.25 2.25 0 006 16.5h2.25m8.25-8.25H18a2.25 2.25 0 012.25 2.25V18A2.25 2.25 0 0118 20.25h-7.5A2.25 2.25 0 018.25 18v-1.5m8.25-8.25h-6a2.25 2.25 0 00-2.25 2.25v6"></path></svg></span><pre class="shiki dark-plus" style="background-color: #1E1E1E" tabindex="0"><code><span class="line"><span style="color: #D4D4D4">sudo systemctl restart rsyslog.service</span></span></code></pre></div>



<p>4. Confirm logs are reaching the 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>tail -f /var/log/syslog | grep rsyslog</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/syslog | grep rsyslog</span></span></code></pre></div>



<h3 class="wp-block-heading"><strong>Step 5: Integrate Log Server with Nagios XI (Optional Alerting)</strong></h3>



<ul class="wp-block-list">
<li>Configure <strong>Nagios XI</strong> to receive alerts for specific log patterns from <strong>Nagios Log Server</strong>.</li>



<li>Set up alert queries within Nagios Log Server to trigger notifications in XI.</li>



<li>Use <strong>Event Handlers</strong> or the <strong>Nagios XI API</strong> for automated responses based on log events.</li>
</ul>



<h3 class="wp-block-heading"><strong>Troubleshooting Tips</strong></h3>



<ul class="wp-block-list">
<li>Ensure the Ubuntu system allows outbound traffic to Nagios Log Server on port 5544.</li>



<li>Check <code>/var/log/syslog</code> for local log activity.</li>



<li>Review <code>/var/log/rsyslog.log</code> for configuration errors.</li>



<li>Run the following to confirm rsyslog is active: </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>sudo systemctl status rsyslog</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">sudo systemctl status rsyslog</span></span></code></pre></div>



<ul class="wp-block-list">
<li>Use <code>tcpdump</code> to check if logs are sent to Nagios Log Server: </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>sudo tcpdump -i any port 5544</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">sudo tcpdump -i any port 5544</span></span></code></pre></div>



<h3 class="wp-block-heading"><strong>Final Notes</strong></h3>



<ul class="wp-block-list">
<li>Logs are forwarded over port 5544 by default.</li>



<li>Use secure log transmission if required by enabling TLS in <code>rsyslog</code>.</li>



<li>Regularly review log retention and indexing settings in Nagios Log Server.</li>
</ul>



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



<ul class="wp-block-list">
<li><a href="https://support.nagios.com/forum/" target="_blank" rel="noopener">Nagios Forum</a></li>



<li><a href="https://library.nagios.com/products/nagios-xi/documentation/" target="_blank" rel="noreferrer noopener">Nagios XI Documentation</a></li>
</ul>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>Monitoring SSL Certificates Expiration with Nagios XI</title>
		<link>https://library.nagios.com/support-tips/monitoring-ssl-certificates-nagios-xi/</link>
		
		<dc:creator><![CDATA[Joe Johnson]]></dc:creator>
		<pubDate>Thu, 27 Mar 2025 20:43:03 +0000</pubDate>
				<category><![CDATA[Support Tips]]></category>
		<category><![CDATA[Techtips]]></category>
		<category><![CDATA[SSL Certificate]]></category>
		<guid isPermaLink="false">https://library.nagios.com/?p=53578</guid>

					<description><![CDATA[Introduction SSL certificates play a crucial role in securing websites and applications by encrypting communication. Expired SSL certificates can lead to security warnings, service disruptions, and loss of trust from users. Nagios XI provides a reliable way to monitor SSL certificates and ensure they are renewed before expiration. This guide will walk you through setting [&#8230;]]]></description>
										<content:encoded><![CDATA[
<h2 class="wp-block-heading">Introduction</h2>



<p><a href="https://library.nagios.com/documentation/nagios-xi-using-ssl-with-xi-active-directory-2/" target="_blank" data-type="link" data-id="https://library.nagios.com/documentation/nagios-xi-using-ssl-with-xi-active-directory-2/" rel="noreferrer noopener">SSL certificates</a> play a crucial role in securing websites and applications by encrypting communication. Expired SSL certificates can lead to security warnings, service disruptions, and loss of trust from users. Nagios XI provides a reliable way to monitor SSL certificates and ensure they are renewed before expiration. This guide will walk you through setting up SSL certificate expiration monitoring in <a href="https://www.nagios.com/products/nagios-xi/" target="_blank" data-type="link" data-id="https://www.nagios.com/products/nagios-xi/" rel="noreferrer noopener">Nagios XI</a>.</p>



<h2 class="wp-block-heading">Why Monitor SSL Certificate Expiration?</h2>



<ul class="wp-block-list">
<li><strong>Avoid Service Interruptions</strong> – Prevent downtime due to expired certificates.</li>



<li><strong>Enhance Security</strong> – Ensure continued encryption and protection.</li>



<li><strong>Maintain Compliance</strong> – Meet security standards and best practices.</li>



<li><strong>Automate Monitoring</strong> – Receive alerts before certificates expire.</li>
</ul>



<h2 class="wp-block-heading">Setting Up SSL Certificate Expiration Monitoring</h2>



<p>Nagios XI uses plugins to check SSL certificate validity. The <strong>check_ssl_certificate</strong> plugin can help monitor expiration dates and send alerts.</p>



<h3 class="wp-block-heading">Step 1: Install the Required Plugin</h3>



<p>Nagios XI supports various plugins, and the <strong>check_ssl_cert</strong> plugin is commonly used.</p>



<h4 class="wp-block-heading">Installing check_ssl_cert</h4>



<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" data-code="cd /usr/local/nagios/libexec
wget https://raw.githubusercontent.com/matteocorti/check_ssl_cert/master/check_ssl_cert
chmod +x check_ssl_cert" style="color:#D4D4D4;display:none" aria-label="Copy" class="code-block-pro-copy-button"><svg xmlns="http://www.w3.org/2000/svg" style="width:24px;height:24px" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2"><path class="with-check" stroke-linecap="round" stroke-linejoin="round" d="M4.5 12.75l6 6 9-13.5"></path><path class="without-check" stroke-linecap="round" stroke-linejoin="round" d="M16.5 8.25V6a2.25 2.25 0 00-2.25-2.25H6A2.25 2.25 0 003.75 6v8.25A2.25 2.25 0 006 16.5h2.25m8.25-8.25H18a2.25 2.25 0 012.25 2.25V18A2.25 2.25 0 0118 20.25h-7.5A2.25 2.25 0 018.25 18v-1.5m8.25-8.25h-6a2.25 2.25 0 00-2.25 2.25v6"></path></svg></span><pre class="shiki dark-plus" style="background-color: #1E1E1E" tabindex="0"><code><span class="line"><span style="color: #9CDCFE">cd</span><span style="color: #D4D4D4"> /</span><span style="color: #9CDCFE">usr</span><span style="color: #D4D4D4">/</span><span style="color: #9CDCFE">local</span><span style="color: #D4D4D4">/</span><span style="color: #9CDCFE">nagios</span><span style="color: #D4D4D4">/</span><span style="color: #9CDCFE">libexec</span></span>
<span class="line"><span style="color: #9CDCFE">wget</span><span style="color: #D4D4D4"> </span><span style="color: #C8C8C8">https</span><span style="color: #D4D4D4">:</span><span style="color: #6A9955">//raw.githubusercontent.com/matteocorti/check_ssl_cert/master/check_ssl_cert</span></span>
<span class="line"><span style="color: #9CDCFE">chmod</span><span style="color: #D4D4D4"> +</span><span style="color: #9CDCFE">x</span><span style="color: #D4D4D4"> </span><span style="color: #9CDCFE">check_ssl_cert</span></span></code></pre></div>



<h3 class="wp-block-heading">Step 2: Create a New Command in Nagios XI</h3>



<ul start="1" class="wp-block-list">
<li>Log in to Nagios XI and navigate to <strong>Configure &gt; Core Config Manager</strong>.</li>



<li>Go to <strong>Commands</strong> and click <strong>Add New Command</strong>.</li>



<li>Configure the command as follows:
<ul class="wp-block-list">
<li><strong>Command Name:</strong></li>
</ul>
</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" data-code="check_ssl_certificate" style="color:#D4D4D4;display:none" aria-label="Copy" class="code-block-pro-copy-button"><svg xmlns="http://www.w3.org/2000/svg" style="width:24px;height:24px" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2"><path class="with-check" stroke-linecap="round" stroke-linejoin="round" d="M4.5 12.75l6 6 9-13.5"></path><path class="without-check" stroke-linecap="round" stroke-linejoin="round" d="M16.5 8.25V6a2.25 2.25 0 00-2.25-2.25H6A2.25 2.25 0 003.75 6v8.25A2.25 2.25 0 006 16.5h2.25m8.25-8.25H18a2.25 2.25 0 012.25 2.25V18A2.25 2.25 0 0118 20.25h-7.5A2.25 2.25 0 018.25 18v-1.5m8.25-8.25h-6a2.25 2.25 0 00-2.25 2.25v6"></path></svg></span><pre class="shiki dark-plus" style="background-color: #1E1E1E" tabindex="0"><code><span class="line"><span style="color: #9CDCFE">check_ssl_certificate</span></span></code></pre></div>



<ul class="wp-block-list">
<li><strong>Command Line:</strong><code> </code></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" data-code="$USER1$/check_ssl_cert -H $ARG1$ -w $ARG2$ -c $ARG3$" style="color:#D4D4D4;display:none" aria-label="Copy" class="code-block-pro-copy-button"><svg xmlns="http://www.w3.org/2000/svg" style="width:24px;height:24px" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2"><path class="with-check" stroke-linecap="round" stroke-linejoin="round" d="M4.5 12.75l6 6 9-13.5"></path><path class="without-check" stroke-linecap="round" stroke-linejoin="round" d="M16.5 8.25V6a2.25 2.25 0 00-2.25-2.25H6A2.25 2.25 0 003.75 6v8.25A2.25 2.25 0 006 16.5h2.25m8.25-8.25H18a2.25 2.25 0 012.25 2.25V18A2.25 2.25 0 0118 20.25h-7.5A2.25 2.25 0 018.25 18v-1.5m8.25-8.25h-6a2.25 2.25 0 00-2.25 2.25v6"></path></svg></span><pre class="shiki dark-plus" style="background-color: #1E1E1E" tabindex="0"><code><span class="line"><span style="color: #9CDCFE">$USER1$</span><span style="color: #D4D4D4">/</span><span style="color: #9CDCFE">check_ssl_cert</span><span style="color: #D4D4D4"> -</span><span style="color: #4FC1FF">H</span><span style="color: #D4D4D4"> </span><span style="color: #9CDCFE">$ARG1$</span><span style="color: #D4D4D4"> -</span><span style="color: #9CDCFE">w</span><span style="color: #D4D4D4"> </span><span style="color: #9CDCFE">$ARG2$</span><span style="color: #D4D4D4"> -</span><span style="color: #9CDCFE">c</span><span style="color: #D4D4D4"> </span><span style="color: #9CDCFE">$ARG3$</span></span></code></pre></div>



<ul start="1" class="wp-block-list">
<li><strong>Description:</strong> Monitors SSL certificate expiration.</li>



<li>Click <strong>Save</strong> and <strong>Apply Configuration</strong>.</li>
</ul>



<h3 class="wp-block-heading">Step 3: Add a New Service to Monitor SSL Expiration</h3>



<ol start="1" class="wp-block-list">
<li>Go to <strong>Configure &gt; Core Config Manager &gt; Services</strong>.</li>



<li>Click <strong>Add New Service</strong>.</li>



<li>Configure the service:
<ul class="wp-block-list">
<li><strong>Host:</strong> Select the target website or server.</li>



<li><strong>Check Command:</strong> <code>check_ssl_certificate</code>.</li>



<li><strong>Arguments:</strong>
<ul class="wp-block-list">
<li><code>$ARG1$</code> – The domain name (e.g., <code>example.com</code>).</li>



<li><code>$ARG2$</code> – Warning threshold in days (e.g., <code>30</code> for 30 days before expiration).</li>



<li><code>$ARG3$</code> – Critical threshold in days (e.g., <code>15</code> for critical alerts within 15 days).</li>
</ul>
</li>



<li><strong>Check Interval:</strong> Set the frequency of checks.</li>



<li>Click <strong>Save</strong> and <strong>Apply Configuration</strong>.</li>
</ul>
</li>
</ol>



<h3 class="wp-block-heading">Step 4: Test the SSL Monitoring Setup</h3>



<p>After configuration, force a check in Nagios XI:</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" data-code="/usr/local/nagios/libexec/check_ssl_cert -H example.com -w 30 -c 15" style="color:#D4D4D4;display:none" aria-label="Copy" class="code-block-pro-copy-button"><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">/</span><span style="color: #9CDCFE">usr</span><span style="color: #D4D4D4">/</span><span style="color: #9CDCFE">local</span><span style="color: #D4D4D4">/</span><span style="color: #9CDCFE">nagios</span><span style="color: #D4D4D4">/</span><span style="color: #9CDCFE">libexec</span><span style="color: #D4D4D4">/</span><span style="color: #9CDCFE">check_ssl_cert</span><span style="color: #D4D4D4"> -</span><span style="color: #4FC1FF">H</span><span style="color: #D4D4D4"> </span><span style="color: #9CDCFE">example</span><span style="color: #D4D4D4">.</span><span style="color: #9CDCFE">com</span><span style="color: #D4D4D4"> -</span><span style="color: #9CDCFE">w</span><span style="color: #D4D4D4"> </span><span style="color: #B5CEA8">30</span><span style="color: #D4D4D4"> -</span><span style="color: #9CDCFE">c</span><span style="color: #D4D4D4"> </span><span style="color: #B5CEA8">15</span></span></code></pre></div>



<p>If the certificate is valid, the output should indicate the number of days remaining before expiration.</p>



<h3 class="wp-block-heading">Step 5: Configure Notifications and Alerts</h3>



<ol start="1" class="wp-block-list">
<li>Go to <strong>Configure &gt; Notification Preferences</strong>.</li>



<li>Enable email or SMS notifications.</li>



<li>Set up escalation rules to alert different teams as the expiration date nears.</li>
</ol>



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



<p>Monitoring SSL certificates with Nagios XI ensures your website and applications remain secure and accessible. By setting up automated checks and alerts, you can avoid expired SSL issues and maintain continuous encryption. Regularly review your SSL monitoring setup to ensure effectiveness and compliance with security best practices.</p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>The Power of Nagios XI Reporting: How to Generate and Share Performance Reports</title>
		<link>https://library.nagios.com/support-tips/nagios-xi-performance-reports/</link>
		
		<dc:creator><![CDATA[Joe Johnson]]></dc:creator>
		<pubDate>Wed, 26 Mar 2025 13:59:41 +0000</pubDate>
				<category><![CDATA[Support Tips]]></category>
		<category><![CDATA[Techtips]]></category>
		<category><![CDATA[Performance Report]]></category>
		<category><![CDATA[Reports]]></category>
		<guid isPermaLink="false">https://library.nagios.com/?p=53430</guid>

					<description><![CDATA[Introduction Nagios XI is a powerful monitoring solution that provides extensive reporting capabilities. With the right reports, businesses can gain valuable insights into their IT infrastructure&#8217;s performance, availability, and trends. This article explores how to generate and share performance reports using Nagios XI. Understanding Nagios XI Reporting Features Nagios XI offers a variety of reporting [&#8230;]]]></description>
										<content:encoded><![CDATA[
<h2 class="wp-block-heading">Introduction</h2>



<p><a href="https://www.nagios.com/products/nagios-xi/" target="_blank" data-type="link" data-id="https://www.nagios.com/products/nagios-xi/" rel="noreferrer noopener">Nagios XI</a> is a powerful monitoring solution that provides extensive reporting capabilities. With the right reports, businesses can gain valuable insights into their IT infrastructure&#8217;s performance, availability, and trends. This article explores how to generate and share performance reports using Nagios XI.</p>



<h2 class="wp-block-heading">Understanding Nagios XI Reporting Features</h2>



<p>Nagios XI offers a variety of reporting tools that allow users to track and analyze system performance. These include:</p>



<ul class="wp-block-list">
<li><strong>Availability Reports</strong> – Track system uptime and downtime.</li>



<li><strong>Capacity Planning Reports</strong> – Identify future resource needs.</li>



<li><strong>Executive Summary Reports</strong> – Provide high-level overviews of system health.</li>



<li><strong>Service Level Agreement (SLA) Reports</strong> – Ensure compliance with business agreements.</li>



<li><strong>Alert Reports</strong> – Analyze historical alert trends.</li>
</ul>



<h2 class="wp-block-heading">How to Generate Performance Reports in Nagios XI</h2>



<p>Generating reports in Nagios XI is a straightforward process. Simply follow these steps to create a performance report:</p>



<p><strong>Step 1: Access the Reporting Module</strong></p>



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



<li>Navigate to the Reports tab.</li>



<li>Select the type of report you wish to generate.</li>
</ol>



<p><strong>Step 2: Configure Report Parameters</strong></p>



<ol start="1" class="wp-block-list">
<li>Choose the <a href="https://library.nagios.com/monitoring/host-groups-3-business-use-cases/" target="_blank" data-type="link" data-id="https://library.nagios.com/monitoring/host-groups-3-business-use-cases/" rel="noreferrer noopener">hosts</a> or services you want to include.</li>



<li>Set the time period (e.g., last 24 hours, last 7 days, custom range).</li>



<li>Apply filters to refine the data.</li>
</ol>



<p><strong>Step 3: Generate the Report</strong></p>



<ol start="1" class="wp-block-list">
<li>Click the Run Report button.</li>



<li>Review the generated report to ensure it contains the necessary data.</li>
</ol>



<h2 class="wp-block-heading">How to Share Performance Reports</h2>



<p>Once the report is generated, it can be shared with relevant stakeholders in multiple ways.</p>



<p><strong>Exporting Reports</strong></p>



<p>Nagios XI allows users to export reports in various formats:</p>



<ul class="wp-block-list">
<li><strong>PDF</strong> – Ideal for sharing in formal reports or presentations.</li>



<li><strong>CSV</strong> – Useful for further data analysis in spreadsheet applications.</li>



<li><strong>PNG/JPG</strong> – Suitable for embedding in documents or emails.</li>
</ul>



<p><strong>Automating Report Delivery</strong></p>



<p>Nagios XI enables automated report scheduling and delivery:</p>



<ol start="1" class="wp-block-list">
<li>Navigate to the Scheduled Reports section.</li>



<li>Select the report to automate.</li>



<li>Configure the delivery frequency (e.g., daily, weekly, monthly).</li>



<li>Enter recipient email addresses.</li>



<li>Click Save Schedule to activate automated delivery.</li>
</ol>



<h2 class="wp-block-heading">Best Practices for Effective Reporting</h2>



<p>To maximize the impact of Nagios XI reports, consider the following best practices:</p>



<ul class="wp-block-list">
<li><strong>Use visual elements</strong> – Charts and graphs make data more digestible.</li>



<li><strong>Schedule reports strategically</strong> – Ensure reports are sent at optimal times for decision-making.</li>



<li><strong>Customize reports for different audiences</strong> – Technical teams may require more granular data, while executives may prefer high-level summaries.</li>



<li><strong>Regularly review reports</strong> – Stay proactive by analyzing trends and addressing potential issues before they escalate.</li>
</ul>



<h2 class="wp-block-heading">Additional Resources</h2>



<p>To enhance your use of Nagios XI, here are some helpful resources:</p>



<p><a href="https://library.nagios.com/products/nagios-xi/" target="_blank" rel="noreferrer noopener">Nagios XI Resourcess Page</a> — The ultimate hub for Nagios XI product-specific resources, guides, and best practices.</p>



<p><a href="https://assets.nagios.com/downloads/nagiosxi/guides/administrator/systemconfig.php" target="_blank" rel="noreferrer noopener">Nagios XI Admin Guide</a> – Explore full guides on how to use Nagios XI.</p>



<p><a href="https://support.nagios.com/forum/" target="_blank" rel="noreferrer noopener">Nagios Support Forum</a> – Ask questions to the Nagios community for help and advice.</p>



<p><a href="https://www.youtube.com/@nagiosvideo/videos" target="_blank" rel="noreferrer noopener">Nagios YouTube Channel</a> – Learn through step-by-step video tutorials how to use Nagios Monitoring Solutions.</p>



<p><a href="https://www.nagios.com/webinars/" target="_blank" rel="noreferrer noopener">Nagios Webinars</a> – Discover live webinar demonstrations and Q&amp;A sessions led by experts.</p>



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



<p>Nagios XI’s robust reporting capabilities empower businesses to monitor IT performance effectively and make data-driven decisions. By generating, customizing, and sharing reports efficiently, organizations can enhance operational efficiency and maintain system reliability. Start leveraging Nagios XI reporting today to gain deeper insights into your IT environment.</p>



<p>Happy monitoring!</p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>Real-World Use Cases for Nagios Log Server 2024R2</title>
		<link>https://library.nagios.com/support-tips/use-cases-nagios-log-server/</link>
		
		<dc:creator><![CDATA[Joe Johnson]]></dc:creator>
		<pubDate>Tue, 25 Mar 2025 14:03:00 +0000</pubDate>
				<category><![CDATA[Support Tips]]></category>
		<category><![CDATA[Solutions]]></category>
		<category><![CDATA[Real World Use Cases]]></category>
		<guid isPermaLink="false">https://library.nagios.com/?p=52955</guid>

					<description><![CDATA[Introduction Nagios Log Server 2024R2 is a powerful tool for centralized log management, analysis, and monitoring. It enables IT teams to track system health, identify security threats, and streamline compliance reporting. By aggregating logs from various sources into a single dashboard, organizations can proactively detect issues, improve efficiency, and meet regulatory requirements. This article explores [&#8230;]]]></description>
										<content:encoded><![CDATA[
<h2 class="wp-block-heading">Introduction</h2>



<p><a href="https://www.nagios.com/products/nagios-log-server/downloads/" target="_blank" data-type="link" data-id="https://www.nagios.com/products/nagios-log-server/downloads/" rel="noreferrer noopener">Nagios Log Server 2024R2</a> is a powerful tool for centralized log management, analysis, and monitoring. It enables IT teams to track system health, identify security threats, and streamline compliance reporting. By aggregating logs from various sources into a single dashboard, organizations can proactively detect issues, improve efficiency, and meet regulatory requirements. This article explores real-world use cases where organizations benefit from deploying Nagios Log Server 2024R2.</p>



<h2 class="wp-block-heading">1. Centralized Log Management</h2>



<p><strong>Why It Matters</strong></p>



<p>Managing logs across multiple systems manually is inefficient and prone to errors. Without a centralized log management solution, IT teams must sift through logs on individual devices, leading to delays in detecting and resolving issues. Nagios Log Server 2024R2 centralizes logs from servers, applications, and network devices, providing a single source of truth for log data.</p>



<p><strong>Use Case</strong></p>



<p>A large enterprise with multiple data centers uses Nagios Log Server 2024R2 to collect and analyze logs from thousands of devices, reducing troubleshooting time and improving operational efficiency. With automated log aggregation, IT teams can quickly search logs, correlate events, and generate insights that enhance system reliability.</p>



<p><strong>Related Reading</strong></p>



<p><a href="https://library.nagios.com/success-stories/texas-am-forest-service-achieving-operational-excellence-with-nagios-log-server/" target="_blank" rel="noreferrer noopener">Texas A&amp;M Forest Service: Achieving Operational Excellence with Nagios Log Server</a></p>



<h2 class="wp-block-heading">2. Security Event Monitoring</h2>



<p><strong>Why It Matters</strong></p>



<p>Cybersecurity threats are becoming increasingly sophisticated, requiring organizations to actively monitor logs for signs of intrusion. Nagios Log Server 2024R2 helps businesses detect security anomalies, unauthorized access attempts, and potential breaches before they escalate.</p>



<p><strong>Use Case</strong></p>



<p>A financial institution leverages Nagios Log Server 2024R2 to detect unusual login patterns and access attempts. By setting up real-time alerts, the IT security team can take immediate action when a suspicious event is detected. For instance, if an administrator account experience repeated failed login attempts, an alert is triggered, allowing the security team to investigate and mitigate potential threats.</p>



<p><strong>Related Reading</strong></p>



<p><a href="https://library.nagios.com/industry-insights/ransomware-nagios/?search=" target="_blank" rel="noreferrer noopener">Streamlining Logistics and Security with Nagios XI</a></p>



<h2 class="wp-block-heading">3. Compliance Reporting</h2>



<p><strong>Why It Matters</strong></p>



<p>Regulatory frameworks such as HIPAA, PCI-DSS, and GDPR require businesses to retain and monitor logs for a specified period. Manual log collection and analysis can be labor-intensive and error-prone, making compliance challenging.</p>



<p><strong>Use Case</strong></p>



<p>A healthcare provider uses Nagios Log Server 2024R2 to generate audit-ready reports for compliance with HIPAA regulations. By automating log retention and generating compliance reports on demand, the organization ensures that it meets regulatory requirements without excessive manual effort. Additionally, role-based access control (RBAC) ensures that only authorized personnel can view sensitive log data.</p>



<p><strong>Related Reading</strong></p>



<p><a href="https://library.nagios.com/industry-insights/nagios-for-regulatory-standards/?search=" target="_blank" rel="noreferrer noopener">Achieve Regulatory Standards Compliance with Nagios Monitoring Solutions</a></p>



<h2 class="wp-block-heading">4. Troubleshooting and Root Cause Analysis</h2>



<p><strong>Why It Matters</strong></p>



<p>IT teams need to quickly identify the root cause of system failures to minimize downtime and prevent recurring issues. Manually searching logs across different platforms can be time-consuming, delaying resolutions and negatively impacting business operations.</p>



<p><strong>Use Case</strong></p>



<p>An e-commerce company relies on Nagios Log Server 2024R2 to correlate application, server, and network logs, helping IT teams diagnose and resolve checkout system failures in real time. When customers report checkout failures, IT engineers can quickly query the logs to determine whether the issue stems from a database error, network latency, or application crash. Faster troubleshooting leads to improved customer experience and higher revenue retention.</p>



<p><strong>Related Reading</strong></p>



<p><a href="https://library.nagios.com/industry-insights/the-cost-of-downtime/" target="_blank" rel="noreferrer noopener">Calculating the True Cost of Downtime</a></p>



<h2 class="wp-block-heading">5. Performance Monitoring and Optimization</h2>



<p><strong>Why It Matters</strong></p>



<p>Monitoring system performance trends enables organizations to proactively address performance issues before they impact end users. Historical log data can help identify slowdowns, inefficiencies, and capacity constraints.</p>



<p><strong>Use Case</strong></p>



<p>A cloud services provider uses Nagios Log Server 2024R2 to analyze historical log data and identify performance bottlenecks. By visualizing trends in CPU, memory, and network usage, the IT team can optimize server resources and prevent service disruptions. Additionally, predictive analytics help forecast capacity needs, ensuring that infrastructure scales efficiently with demand.</p>



<p><strong>Related Reading</strong></p>



<p><a href="https://library.nagios.com/industry-insights/deepseek-uptime-and-availability/" target="_blank" rel="noreferrer noopener">DeepSeek AI: Ensuring Uptime and Availability for Optimal Performance</a></p>



<h2 class="wp-block-heading">6. Incident Response and Forensics</h2>



<p><strong>Why It Matters</strong></p>



<p>When security incidents occur, organizations must respond quickly to contain threats and conduct forensic investigations. Detailed logs are crucial for understanding the attack vector and identifying affected systems.</p>



<p><strong>Use Case</strong></p>



<p>A government agency uses Nagios Log Server 2024R2 to conduct forensic investigations after detecting potential cyber threats. When an intrusion is detected, security analysts review logs to trace the attack’s origin, determine how the attacker gained access, and assess the extent of the damage. By preserving historical log data, organizations can build a timeline of events and improve their security posture for future threats.</p>



<p><strong>Related Reading</strong></p>



<p><a href="https://library.nagios.com/industry-insights/ransomware-nagios/?search=" target="_blank" rel="noreferrer noopener">Ransomware Attacks – Nagios Can Improve Your Response to Reduce the Impact</a></p>



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



<p>Nagios Log Server 2024R2 is a versatile solution that enhances IT operations across various industries. Whether for security, compliance, troubleshooting, or performance monitoring, organizations can <a href="https://library.nagios.com/success-stories/texas-am-forest-service-achieving-operational-excellence-with-nagios-log-server/" target="_blank" rel="noreferrer noopener">leverage its capabilities</a> to improve efficiency and reliability. With centralized log management, automated alerts, and robust analytics, businesses can proactively detect issues, respond to incidents, and ensure compliance with regulatory requirements. Migrating to Nagios Log Server 2024R2 helps organizations stay ahead of IT challenges while maintaining security and operational excellence.</p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>Installing Nagios Cross-Platform Agent on Arch Linux 2025</title>
		<link>https://library.nagios.com/support-tips/installing-nagios-cross-platform-agent-on-arch-linux-2025/</link>
		
		<dc:creator><![CDATA[Johnny Mengistu]]></dc:creator>
		<pubDate>Fri, 21 Mar 2025 20:50:06 +0000</pubDate>
				<category><![CDATA[Support Tips]]></category>
		<category><![CDATA[Documentation]]></category>
		<category><![CDATA[Arch Linux 2025]]></category>
		<category><![CDATA[Nagios XI]]></category>
		<category><![CDATA[NCPA]]></category>
		<guid isPermaLink="false">https://library.nagios.com/?p=52221</guid>

					<description><![CDATA[Nagios is a popular open-source monitoring system that helps administrators keep track of the health and performance of various systems, services, and networks. One of the most useful tools in the Nagios ecosystem is the Nagios Cross-Platform Agent (NCPA), which allows you to monitor multiple operating systems from a single agent, including Linux, Windows, and [&#8230;]]]></description>
										<content:encoded><![CDATA[
<p>Nagios is a popular open-source monitoring system that helps administrators keep track of the health and performance of various systems, services, and networks. One of the most useful tools in the Nagios ecosystem is the Nagios Cross-Platform Agent (NCPA), which allows you to monitor multiple operating systems from a single agent, including Linux, Windows, and macOS.</p>



<p>This article will guide you through installing the Nagios Cross-Platform Agent (NCPA) on Arch Linux (version 2025.03.01) and configuring it in Nagios XI for centralized monitoring.</p>



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



<p>Before we begin, ensure that you have the following:</p>



<ol class="wp-block-list">
<li><strong>A working Arch Linux system</strong>: Ensure your Arch Linux installation is up-to-date, and you have sudo privileges.</li>



<li><strong>Nagios XI installed</strong>: Nagios XI should be installed on a separate server, as this will be used to manage and monitor the system where NCPA is deployed.</li>



<li><strong>Network connectivity</strong>: Your Arch Linux system should be able to communicate with the Nagios XI server over the network.</li>
</ol>



<h2 class="wp-block-heading">Step 1: Installing Nagios Cross-Platform Agent (NCPA) on Arch Linux</h2>



<p>As of March 2025, the NCPA package is not directly available in the Arch Linux repositories, so you will need to manually download and install the agent.</p>



<h3 class="wp-block-heading">1.1. Download the NCPA Agent</h3>



<p>To get the NCPA agent on Arch Linux, follow these steps:</p>



<ol class="wp-block-list">
<li><strong>Install necessary dependencies</strong>: First, ensure your system is fully updated, and install the required packages to build NCPA:</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>sudo pacman -Syu
sudo pacman -S git base-devel python3</textarea></pre><svg xmlns="http://www.w3.org/2000/svg" style="width:24px;height:24px" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2"><path class="with-check" stroke-linecap="round" stroke-linejoin="round" d="M4.5 12.75l6 6 9-13.5"></path><path class="without-check" stroke-linecap="round" stroke-linejoin="round" d="M16.5 8.25V6a2.25 2.25 0 00-2.25-2.25H6A2.25 2.25 0 003.75 6v8.25A2.25 2.25 0 006 16.5h2.25m8.25-8.25H18a2.25 2.25 0 012.25 2.25V18A2.25 2.25 0 0118 20.25h-7.5A2.25 2.25 0 018.25 18v-1.5m8.25-8.25h-6a2.25 2.25 0 00-2.25 2.25v6"></path></svg></span><pre class="shiki dark-plus" style="background-color: #1E1E1E" tabindex="0"><code><span class="line"><span style="color: #9CDCFE">sudo</span><span style="color: #D4D4D4"> </span><span style="color: #9CDCFE">pacman</span><span style="color: #D4D4D4"> -</span><span style="color: #9CDCFE">Syu</span></span>
<span class="line"><span style="color: #9CDCFE">sudo</span><span style="color: #D4D4D4"> </span><span style="color: #9CDCFE">pacman</span><span style="color: #D4D4D4"> -</span><span style="color: #4FC1FF">S</span><span style="color: #D4D4D4"> </span><span style="color: #9CDCFE">git</span><span style="color: #D4D4D4"> </span><span style="color: #9CDCFE">base</span><span style="color: #D4D4D4">-</span><span style="color: #9CDCFE">devel</span><span style="color: #D4D4D4"> </span><span style="color: #9CDCFE">python3</span></span></code></pre></div>



<p>     2. <strong>Clone the NCPA repository</strong>: Clone the official Nagios NCPA repository from GitHub:</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>git clone https://github.com/NagiosEnterprises/ncpa.git
cd ncpa</textarea></pre><svg xmlns="http://www.w3.org/2000/svg" style="width:24px;height:24px" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2"><path class="with-check" stroke-linecap="round" stroke-linejoin="round" d="M4.5 12.75l6 6 9-13.5"></path><path class="without-check" stroke-linecap="round" stroke-linejoin="round" d="M16.5 8.25V6a2.25 2.25 0 00-2.25-2.25H6A2.25 2.25 0 003.75 6v8.25A2.25 2.25 0 006 16.5h2.25m8.25-8.25H18a2.25 2.25 0 012.25 2.25V18A2.25 2.25 0 0118 20.25h-7.5A2.25 2.25 0 018.25 18v-1.5m8.25-8.25h-6a2.25 2.25 0 00-2.25 2.25v6"></path></svg></span><pre class="shiki dark-plus" style="background-color: #1E1E1E" tabindex="0"><code><span class="line"><span style="color: #9CDCFE">git</span><span style="color: #D4D4D4"> </span><span style="color: #9CDCFE">clone</span><span style="color: #D4D4D4"> </span><span style="color: #C8C8C8">https</span><span style="color: #D4D4D4">:</span><span style="color: #6A9955">//github.com/NagiosEnterprises/ncpa.git</span></span>
<span class="line"><span style="color: #9CDCFE">cd</span><span style="color: #D4D4D4"> </span><span style="color: #9CDCFE">ncpa</span></span></code></pre></div>



<p>     3. <strong>Install NCPA</strong>: NCPA can be installed using the following commands. Since Arch Linux uses <code>makepkg</code> for building packages, you need to create the package manually: </p>



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



<p>        This command will build and install NCPA, including any required dependencies.</p>



<p>     4. <strong>Start the NCPA service</strong>: Once installed, you can start the NCPA service:</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>sudo systemctl start ncpa</textarea></pre><svg xmlns="http://www.w3.org/2000/svg" style="width:24px;height:24px" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2"><path class="with-check" stroke-linecap="round" stroke-linejoin="round" d="M4.5 12.75l6 6 9-13.5"></path><path class="without-check" stroke-linecap="round" stroke-linejoin="round" d="M16.5 8.25V6a2.25 2.25 0 00-2.25-2.25H6A2.25 2.25 0 003.75 6v8.25A2.25 2.25 0 006 16.5h2.25m8.25-8.25H18a2.25 2.25 0 012.25 2.25V18A2.25 2.25 0 0118 20.25h-7.5A2.25 2.25 0 018.25 18v-1.5m8.25-8.25h-6a2.25 2.25 0 00-2.25 2.25v6"></path></svg></span><pre class="shiki dark-plus" style="background-color: #1E1E1E" tabindex="0"><code><span class="line"><span style="color: #9CDCFE">sudo</span><span style="color: #D4D4D4"> </span><span style="color: #9CDCFE">systemctl</span><span style="color: #D4D4D4"> </span><span style="color: #9CDCFE">start</span><span style="color: #D4D4D4"> </span><span style="color: #9CDCFE">ncpa</span></span></code></pre></div>



<p>         To enable NCPA to start automatically on boot, use:</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>sudo systemctl enable ncpa</textarea></pre><svg xmlns="http://www.w3.org/2000/svg" style="width:24px;height:24px" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2"><path class="with-check" stroke-linecap="round" stroke-linejoin="round" d="M4.5 12.75l6 6 9-13.5"></path><path class="without-check" stroke-linecap="round" stroke-linejoin="round" d="M16.5 8.25V6a2.25 2.25 0 00-2.25-2.25H6A2.25 2.25 0 003.75 6v8.25A2.25 2.25 0 006 16.5h2.25m8.25-8.25H18a2.25 2.25 0 012.25 2.25V18A2.25 2.25 0 0118 20.25h-7.5A2.25 2.25 0 018.25 18v-1.5m8.25-8.25h-6a2.25 2.25 0 00-2.25 2.25v6"></path></svg></span><pre class="shiki dark-plus" style="background-color: #1E1E1E" tabindex="0"><code><span class="line"><span style="color: #9CDCFE">sudo</span><span style="color: #D4D4D4"> </span><span style="color: #9CDCFE">systemctl</span><span style="color: #D4D4D4"> </span><span style="color: #9CDCFE">enable</span><span style="color: #D4D4D4"> </span><span style="color: #9CDCFE">ncpa</span></span></code></pre></div>



<p>         You can check the status of the NCPA service 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>sudo systemctl status ncpa</textarea></pre><svg xmlns="http://www.w3.org/2000/svg" style="width:24px;height:24px" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2"><path class="with-check" stroke-linecap="round" stroke-linejoin="round" d="M4.5 12.75l6 6 9-13.5"></path><path class="without-check" stroke-linecap="round" stroke-linejoin="round" d="M16.5 8.25V6a2.25 2.25 0 00-2.25-2.25H6A2.25 2.25 0 003.75 6v8.25A2.25 2.25 0 006 16.5h2.25m8.25-8.25H18a2.25 2.25 0 012.25 2.25V18A2.25 2.25 0 0118 20.25h-7.5A2.25 2.25 0 018.25 18v-1.5m8.25-8.25h-6a2.25 2.25 0 00-2.25 2.25v6"></path></svg></span><pre class="shiki dark-plus" style="background-color: #1E1E1E" tabindex="0"><code><span class="line"><span style="color: #9CDCFE">sudo</span><span style="color: #D4D4D4"> </span><span style="color: #9CDCFE">systemctl</span><span style="color: #D4D4D4"> </span><span style="color: #9CDCFE">status</span><span style="color: #D4D4D4"> </span><span style="color: #9CDCFE">ncpa</span></span></code></pre></div>



<p>     5. <strong>Configure the firewall (if applicable)</strong>: If you are using a firewall, make sure to allow the necessary ports (default is port 5693 for NCPA) to pass through:</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>sudo ufw allow 5693</textarea></pre><svg xmlns="http://www.w3.org/2000/svg" style="width:24px;height:24px" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2"><path class="with-check" stroke-linecap="round" stroke-linejoin="round" d="M4.5 12.75l6 6 9-13.5"></path><path class="without-check" stroke-linecap="round" stroke-linejoin="round" d="M16.5 8.25V6a2.25 2.25 0 00-2.25-2.25H6A2.25 2.25 0 003.75 6v8.25A2.25 2.25 0 006 16.5h2.25m8.25-8.25H18a2.25 2.25 0 012.25 2.25V18A2.25 2.25 0 0118 20.25h-7.5A2.25 2.25 0 018.25 18v-1.5m8.25-8.25h-6a2.25 2.25 0 00-2.25 2.25v6"></path></svg></span><pre class="shiki dark-plus" style="background-color: #1E1E1E" tabindex="0"><code><span class="line"><span style="color: #9CDCFE">sudo</span><span style="color: #D4D4D4"> </span><span style="color: #9CDCFE">ufw</span><span style="color: #D4D4D4"> </span><span style="color: #9CDCFE">allow</span><span style="color: #D4D4D4"> </span><span style="color: #B5CEA8">5693</span></span></code></pre></div>



<h3 class="wp-block-heading">1.2. Verify the NCPA Installation</h3>



<p>After installing and starting the NCPA service, verify that it&#8217;s running properly by accessing the web interface. Open your browser and visit the following URL (replace <code>&lt;arch-linux-ip&gt;</code> with your actual IP address):</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>http://&lt;arch-linux-ip>:5693</textarea></pre><svg xmlns="http://www.w3.org/2000/svg" style="width:24px;height:24px" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2"><path class="with-check" stroke-linecap="round" stroke-linejoin="round" d="M4.5 12.75l6 6 9-13.5"></path><path class="without-check" stroke-linecap="round" stroke-linejoin="round" d="M16.5 8.25V6a2.25 2.25 0 00-2.25-2.25H6A2.25 2.25 0 003.75 6v8.25A2.25 2.25 0 006 16.5h2.25m8.25-8.25H18a2.25 2.25 0 012.25 2.25V18A2.25 2.25 0 0118 20.25h-7.5A2.25 2.25 0 018.25 18v-1.5m8.25-8.25h-6a2.25 2.25 0 00-2.25 2.25v6"></path></svg></span><pre class="shiki dark-plus" style="background-color: #1E1E1E" tabindex="0"><code><span class="line"><span style="color: #C8C8C8">http</span><span style="color: #D4D4D4">:</span><span style="color: #6A9955">//&lt;arch-linux-ip&gt;:5693</span></span></code></pre></div>



<p>You should be prompted with a login screen. The default username is <code>nagiosadmin</code> and the default password is <code>nagios</code>.</p>



<h2 class="wp-block-heading">Step 2: Configure NCPA in Nagios XI</h2>



<p>Once you have installed and verified that NCPA is running on your Arch Linux system, the next step is to configure it within Nagios XI for centralized monitoring.</p>



<h3 class="wp-block-heading">2.1. Add Host to Nagios XI</h3>



<ol class="wp-block-list">
<li><strong>Log in to Nagios XI</strong>: Open your web browser and log in to your Nagios XI server (e.g., <code>http://&lt;nagios-xi-ip&gt;/nagiosxi</code>).</li>



<li><strong>Navigate to the “Configure” menu</strong>: From the main dashboard of Nagios XI, go to the <code>Configure</code> tab and select <code>Core Configuration Manager</code>.</li>



<li><strong>Add a new host</strong>: In the Core Configuration Manager, click on <code>Hosts</code> in the left-hand menu and then click the <code>Add New</code> button.</li>



<li><strong>Host Settings</strong>:
<ul class="wp-block-list">
<li><strong>Host Name</strong>: Enter a meaningful name for the Arch Linux host (e.g., <code>arch-linux</code>).</li>



<li><strong>Alias</strong>: Optionally, provide an alias (e.g., <code>Arch Linux System</code>).</li>



<li><strong>Address</strong>: Enter the IP address of your Arch Linux machine (e.g., <code>192.168.1.100</code>).</li>



<li><strong>Host Template</strong>: You can either use a predefined template or create a custom template for monitoring NCPA. If using a predefined template, select <code>Generic Host</code>.</li>
</ul>
</li>



<li><strong>Save the host configuration</strong>.</li>
</ol>



<h3 class="wp-block-heading">2.2. Add Service for NCPA Monitoring</h3>



<p>Now that you&#8217;ve added the host, it&#8217;s time to add services to monitor specific metrics via NCPA.</p>



<ol class="wp-block-list">
<li><strong>Add Services</strong>: After saving the host, navigate to the <code>Services</code> section under the host configuration and click <code>Add New</code>.</li>



<li><strong>Service Configuration</strong>:
<ul class="wp-block-list">
<li><strong>Service Name</strong>: Enter a descriptive name for the service (e.g., <code>CPU Usage</code> or <code>Memory Usage</code>).</li>



<li><strong>Service Description</strong>: Optionally, provide more details.</li>



<li><strong>Service Type</strong>: Select <code>NCPA</code>.</li>



<li><strong>Check Command</strong>: From the list of check commands, select <code>check_ncpa.py</code> or <code>check_ncpa.py!&lt;metric&gt;</code> (replace <code>&lt;metric&gt;</code> with the desired metric like <code>cpu</code>, <code>memory</code>, <code>disk</code>, etc.).</li>



<li><strong>Additional Arguments</strong>: You can customize the command arguments to match your needs, such as the one below and save the service configuration:</li>
</ul>
</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>-H &lt;arch-linux-ip> -t &lt;token> -P 5693 -M 'system/uptime'</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">-</span><span style="color: #4FC1FF">H</span><span style="color: #D4D4D4"> &lt;</span><span style="color: #9CDCFE">arch</span><span style="color: #D4D4D4">-</span><span style="color: #9CDCFE">linux</span><span style="color: #D4D4D4">-</span><span style="color: #9CDCFE">ip</span><span style="color: #D4D4D4">&gt; -</span><span style="color: #9CDCFE">t</span><span style="color: #D4D4D4"> &lt;</span><span style="color: #9CDCFE">token</span><span style="color: #D4D4D4">&gt; -</span><span style="color: #4FC1FF">P</span><span style="color: #D4D4D4"> </span><span style="color: #B5CEA8">5693</span><span style="color: #D4D4D4"> -</span><span style="color: #4FC1FF">M</span><span style="color: #D4D4D4"> </span><span style="color: #CE9178">&#39;system/uptime&#39;</span></span></code></pre></div>



<p class="has-text-align-left">      3. <strong>Configure NCPA Token</strong>: To make sure the Nagios XI server communicates securely with NCPA, you will        need to use the token set during NCPA setup (the default token is <code>nagios</code>). If you set a custom token, use it in the configuration.</p>



<p class="has-text-align-left">Update the check command in Nagios XI to include this token, like this:</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>-H &lt;arch-linux-ip> -t nagios -P 5693 -M 'system/uptime'</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">-</span><span style="color: #4FC1FF">H</span><span style="color: #D4D4D4"> &lt;</span><span style="color: #9CDCFE">arch</span><span style="color: #D4D4D4">-</span><span style="color: #9CDCFE">linux</span><span style="color: #D4D4D4">-</span><span style="color: #9CDCFE">ip</span><span style="color: #D4D4D4">&gt; -</span><span style="color: #9CDCFE">t</span><span style="color: #D4D4D4"> </span><span style="color: #9CDCFE">nagios</span><span style="color: #D4D4D4"> -</span><span style="color: #4FC1FF">P</span><span style="color: #D4D4D4"> </span><span style="color: #B5CEA8">5693</span><span style="color: #D4D4D4"> -</span><span style="color: #4FC1FF">M</span><span style="color: #D4D4D4"> </span><span style="color: #CE9178">&#39;system/uptime&#39;</span></span></code></pre></div>



<p class="has-text-align-left"></p>



<p>Below are screenshots of where you&#8217;ll go inside Nagios XI when setting up the wizard. Once you have selected the wizard make sure to follow the prompts. You can also select &#8220;finish with defaults&#8221; after entering in initial information.</p>



<figure class="wp-block-image size-full"><a href="https://library.nagios.com/wp-content/uploads/2025/03/Config-Wiz.png"><img decoding="async" width="808" height="588" src="https://library.nagios.com/wp-content/uploads/2025/03/Config-Wiz.png" alt="Config Wiz" class="wp-image-53035" title="Installing Nagios Cross-Platform Agent on Arch Linux 2025 2" srcset="https://library.nagios.com/wp-content/uploads/2025/03/Config-Wiz.png 808w, https://library.nagios.com/wp-content/uploads/2025/03/Config-Wiz-300x218.png 300w, https://library.nagios.com/wp-content/uploads/2025/03/Config-Wiz-768x559.png 768w" sizes="(max-width: 808px) 100vw, 808px" /></a><figcaption class="wp-element-caption">Config Wiz</figcaption></figure>



<p></p>



<figure class="wp-block-image size-large"><a href="https://library.nagios.com/wp-content/uploads/2025/03/Wizards-1.png"><img decoding="async" width="1024" height="517" src="https://library.nagios.com/wp-content/uploads/2025/03/Wizards-1-1024x517.png" alt="Wizards 1" class="wp-image-53037" title="Installing Nagios Cross-Platform Agent on Arch Linux 2025 3" srcset="https://library.nagios.com/wp-content/uploads/2025/03/Wizards-1-1024x517.png 1024w, https://library.nagios.com/wp-content/uploads/2025/03/Wizards-1-300x151.png 300w, https://library.nagios.com/wp-content/uploads/2025/03/Wizards-1-768x388.png 768w, https://library.nagios.com/wp-content/uploads/2025/03/Wizards-1.png 1270w" sizes="(max-width: 1024px) 100vw, 1024px" /></a><figcaption class="wp-element-caption">Wizards</figcaption></figure>



<p></p>



<figure class="wp-block-image size-large"><a href="https://library.nagios.com/wp-content/uploads/2025/03/NCPA-Config-Wiz.png"><img loading="lazy" decoding="async" width="1024" height="563" src="https://library.nagios.com/wp-content/uploads/2025/03/NCPA-Config-Wiz-1024x563.png" alt="NCPA Config Wiz" class="wp-image-53038" title="Installing Nagios Cross-Platform Agent on Arch Linux 2025 4" srcset="https://library.nagios.com/wp-content/uploads/2025/03/NCPA-Config-Wiz-1024x563.png 1024w, https://library.nagios.com/wp-content/uploads/2025/03/NCPA-Config-Wiz-300x165.png 300w, https://library.nagios.com/wp-content/uploads/2025/03/NCPA-Config-Wiz-768x422.png 768w, https://library.nagios.com/wp-content/uploads/2025/03/NCPA-Config-Wiz.png 1180w" sizes="(max-width: 1024px) 100vw, 1024px" /></a><figcaption class="wp-element-caption">NCPA Config Wizard</figcaption></figure>



<p></p>



<h3 class="wp-block-heading">2.3. Verify Monitoring</h3>



<p>Once you&#8217;ve configured the host and services, go back to the Nagios XI dashboard and check the status of the new host and services. If everything is set up correctly, you should begin seeing the system metrics of the Arch Linux machine being reported in real-time. You can also test individual metrics by manually running the NCPA check command 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>/usr/local/nagios/libexec/check_ncpa.py -H &lt;arch-linux-ip> -t nagios -P 5693 -M 'system/uptime'</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">/</span><span style="color: #9CDCFE">usr</span><span style="color: #D4D4D4">/</span><span style="color: #9CDCFE">local</span><span style="color: #D4D4D4">/</span><span style="color: #9CDCFE">nagios</span><span style="color: #D4D4D4">/</span><span style="color: #9CDCFE">libexec</span><span style="color: #D4D4D4">/</span><span style="color: #9CDCFE">check_ncpa</span><span style="color: #D4D4D4">.</span><span style="color: #9CDCFE">py</span><span style="color: #D4D4D4"> -</span><span style="color: #4FC1FF">H</span><span style="color: #D4D4D4"> &lt;</span><span style="color: #9CDCFE">arch</span><span style="color: #D4D4D4">-</span><span style="color: #9CDCFE">linux</span><span style="color: #D4D4D4">-</span><span style="color: #9CDCFE">ip</span><span style="color: #D4D4D4">&gt; -</span><span style="color: #9CDCFE">t</span><span style="color: #D4D4D4"> </span><span style="color: #9CDCFE">nagios</span><span style="color: #D4D4D4"> -</span><span style="color: #4FC1FF">P</span><span style="color: #D4D4D4"> </span><span style="color: #B5CEA8">5693</span><span style="color: #D4D4D4"> -</span><span style="color: #4FC1FF">M</span><span style="color: #D4D4D4"> </span><span style="color: #CE9178">&#39;system/uptime&#39;</span></span></code></pre></div>



<pre class="wp-block-preformatted">If the configuration is correct, you will receive a status message with the requested metric data.</pre>



<h3 class="wp-block-heading">2.4. Automate Service Checks</h3>



<p>To ensure that Nagios XI continuously monitors the Arch Linux system, make sure the services you created are set up to check regularly by setting the appropriate intervals in the service settings (e.g., every 5 minutes).</p>



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



<p>If you encounter any issues, here are a few troubleshooting steps:</p>



<ul class="wp-block-list">
<li><strong>Firewall</strong>: Ensure that port <code>5693</code> is open on both the Arch Linux server and the Nagios XI server.</li>



<li><strong>Token Mismatch</strong>: Double-check the token configuration in both Nagios XI and NCPA.</li>



<li><strong>NCPA Logs</strong>: Check the NCPA logs on your Arch Linux system for any error messages. Logs are usually found in <code>/var/log/ncpa/</code>.</li>
</ul>



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



<p>By following these steps, you should have successfully installed the Nagios Cross-Platform Agent (NCPA) on your Arch Linux system and configured it for monitoring in Nagios XI. NCPA is a powerful and flexible tool for monitoring various system metrics, and when combined with Nagios XI, it provides a comprehensive solution for centralized network monitoring. Keep your system up-to-date and periodically review your Nagios XI configuration to ensure optimal performance.</p>



<p>For further assistance, refer to the&nbsp;<strong><a href="https://support.nagios.com/forum/" target="_blank" rel="noreferrer noopener">Nagios Support Forum</a></strong>&nbsp;or the<strong>&nbsp;<a href="https://support.nagios.com/kb/" target="_blank" rel="noreferrer noopener">Nagios Knowledgebase</a>.</strong></p>



<p>For additional customization and advanced features, refer to the <strong><a href="https://github.com/NagiosEnterprises/ncpa" target="_blank" rel="noopener">official NCPA documentation</a>.</strong></p>



<p></p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>How to Troubleshoot Log Indexing Issues in Nagios Log Server R2</title>
		<link>https://library.nagios.com/techtips/log-indexing-nagios-log-server-r2/</link>
		
		<dc:creator><![CDATA[Joe Johnson]]></dc:creator>
		<pubDate>Fri, 21 Mar 2025 14:07:00 +0000</pubDate>
				<category><![CDATA[Techtips]]></category>
		<category><![CDATA[Support Tips]]></category>
		<category><![CDATA[Log Indexing]]></category>
		<category><![CDATA[Troubleshooting]]></category>
		<guid isPermaLink="false">https://library.nagios.com/?p=52668</guid>

					<description><![CDATA[A Troubleshooting Guide for Slow Searches or Missing Logs. Introduction Nagios Log Server R2 is a powerful tool for centralized log management and analysis, but like any logging system, it may encounter indexing issues that cause slow searches, missing logs, or delayed data processing. Proper log indexing ensures logs are efficiently stored and quickly retrievable [&#8230;]]]></description>
										<content:encoded><![CDATA[
<h3 class="wp-block-heading"><em>A Troubleshooting Guide for Slow Searches or Missing Logs</em>.</h3>



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



<p>Nagios Log Server R2 is a powerful tool for centralized log management and analysis, but like any logging system, it may encounter indexing issues that cause slow searches, missing logs, or delayed data processing. Proper log indexing ensures logs are efficiently stored and quickly retrievable when needed for monitoring, <a href="https://library.nagios.com/success-stories/government-agency-enhances-it-monitoring-with-nagios-xi-and-log-server/" target="_blank" rel="noreferrer noopener">security analysis</a>, or compliance reporting.</p>



<p>In this guide, we’ll walk through the common causes of log indexing issues in <a href="https://www.nagios.com/products/nagios-log-server/" target="_blank" data-type="link" data-id="https://www.nagios.com/products/nagios-log-server/" rel="noreferrer noopener">Nagios Log Server R2</a> and how to troubleshoot them effectively.</p>



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



<h2 class="wp-block-heading"><strong>1. Identifying the Root Cause of Indexing Issues</strong></h2>



<p>Before applying a fix, determine whether the issue is related to:</p>



<ul class="wp-block-list">
<li><strong>Slow searches</strong> – Log queries take too long to return results.</li>



<li><strong>Missing logs</strong> – Some logs are not appearing in searches.</li>



<li><strong>Delayed log indexing</strong> – Logs arrive but are indexed late.</li>
</ul>



<p>To check indexing status and shard health, run:</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>curl -X GET "http://localhost:9200/_cluster/health?pretty"
</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">curl -X GET &quot;http://localhost:9200/_cluster/health?pretty&quot;</span></span>
<span class="line"><span style="color: #D4D4D4"></span></span></code></pre></div>



<p>A green status means the cluster is healthy, while yellow or red indicates indexing problems.</p>



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



<h2 class="wp-block-heading"><strong>2. Fixing Slow Log Searches in Nagios Log Server 2024R2</strong></h2>



<p><strong>A. Check System Resources</strong></p>



<p>Run the following command to check CPU, memory, and disk usage:</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>top
df -h
</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">top</span></span>
<span class="line"><span style="color: #D4D4D4">df -h</span></span>
<span class="line"><span style="color: #D4D4D4"></span></span></code></pre></div>



<p>If CPU or memory usage is consistently high, consider:</p>



<ul class="wp-block-list">
<li>Adding more system resources (RAM, CPU)</li>



<li>Restarting the Nagios Log Server service to free up memory: <code>systemctl restart nagioslogserver</code></li>
</ul>



<p><strong>B. Optimize Shard Allocation</strong></p>



<p>Too many small shards slow down queries. Check the number of shards:</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>curl -X GET "http://localhost:9200/_cat/shards?v"
</textarea></pre><svg xmlns="http://www.w3.org/2000/svg" style="width:24px;height:24px" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2"><path class="with-check" stroke-linecap="round" stroke-linejoin="round" d="M4.5 12.75l6 6 9-13.5"></path><path class="without-check" stroke-linecap="round" stroke-linejoin="round" d="M16.5 8.25V6a2.25 2.25 0 00-2.25-2.25H6A2.25 2.25 0 003.75 6v8.25A2.25 2.25 0 006 16.5h2.25m8.25-8.25H18a2.25 2.25 0 012.25 2.25V18A2.25 2.25 0 0118 20.25h-7.5A2.25 2.25 0 018.25 18v-1.5m8.25-8.25h-6a2.25 2.25 0 00-2.25 2.25v6"></path></svg></span><pre class="shiki dark-plus" style="background-color: #1E1E1E" tabindex="0"><code><span class="line"><span style="color: #D4D4D4">curl -X GET &quot;http://localhost:9200/_cat/shards?v&quot;</span></span>
<span class="line"><span style="color: #D4D4D4"></span></span></code></pre></div>



<p>If you have too many shards, consider merging indices or increasing shard size.</p>



<p>To adjust shard count for a new index:</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>curl -X PUT "http://localhost:9200/_settings" -H "Content-Type: application/json" -d '
{
  "index": {
    "number_of_shards": 3,
    "number_of_replicas": 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">curl -X PUT &quot;http://localhost:9200/_settings&quot; -H &quot;Content-Type: application/json&quot; -d &#39;</span></span>
<span class="line"><span style="color: #D4D4D4">{</span></span>
<span class="line"><span style="color: #D4D4D4">  &quot;index&quot;: {</span></span>
<span class="line"><span style="color: #D4D4D4">    &quot;number_of_shards&quot;: 3,</span></span>
<span class="line"><span style="color: #D4D4D4">    &quot;number_of_replicas&quot;: 1</span></span>
<span class="line"><span style="color: #D4D4D4">  }</span></span>
<span class="line"><span style="color: #D4D4D4">}&#39;</span></span>
<span class="line"><span style="color: #D4D4D4"></span></span></code></pre></div>



<p>For existing indices, use the force merge command:</p>



<div class="wp-block-kevinbatdorf-code-block-pro" data-code-block-pro-font-family="Code-Pro-Geist-Mono" style="font-size:.875rem;font-family:Code-Pro-Geist-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:1.5rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)"><span role="button" tabindex="0" style="color:#D4D4D4;display:none" aria-label="Copy" class="code-block-pro-copy-button"><pre class="code-block-pro-copy-button-pre" aria-hidden="true"><textarea class="code-block-pro-copy-button-textarea" tabindex="-1" aria-hidden="true" readonly>curl -X POST "http://localhost:9200/_forcemerge?max_num_segments=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">curl -X POST &quot;http://localhost:9200/_forcemerge?max_num_segments=1&quot;</span></span>
<span class="line"><span style="color: #D4D4D4"></span></span></code></pre></div>



<p>This reduces overhead and speeds up searches.</p>



<p><strong>C. Limit Search Query Scope</strong></p>



<p>Narrow down search queries to specific time ranges or log sources:</p>



<ul class="wp-block-list">
<li>Use shorter time frames instead of searching all logs</li>



<li>Filter by specific log sources (firewall, Linux, Windows logs)</li>
</ul>



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



<h2 class="wp-block-heading"><strong>3. Fixing Missing Logs in Nagios Log Server R2</strong></h2>



<p><strong>A. Verify Log Input Sources</strong></p>



<p>Check if log sources (servers, firewalls, applications) are sending data.</p>



<ol class="wp-block-list">
<li>List active log inputs: <code>curl -X GET "http://localhost:9200/_cat/indices?v"</code></li>



<li>If an expected index is missing, restart log collection: <code>systemctl restart rsyslog</code></li>
</ol>



<p><strong>B. Check Log Collection Services</strong></p>



<p>If Nagios Log Server isn’t receiving logs, restart the Logstash service:</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>systemctl restart logstash
</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">systemctl restart logstash</span></span>
<span class="line"><span style="color: #D4D4D4"></span></span></code></pre></div>



<p>Check the Logstash logs for errors:</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>tail -f /var/log/logstash/logstash.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/logstash/logstash.log</span></span>
<span class="line"><span style="color: #D4D4D4"></span></span></code></pre></div>



<p>If Logstash is down, re-enable it:</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>systemctl enable --now logstash
</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">systemctl enable --now logstash</span></span>
<span class="line"><span style="color: #D4D4D4"></span></span></code></pre></div>



<p><strong>C. Verify Firewall and Network Connectivity</strong></p>



<p>If logs are not arriving, check firewall rules on the source system:</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>sudo firewall-cmd --list-all
</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">sudo firewall-cmd --list-all</span></span>
<span class="line"><span style="color: #D4D4D4"></span></span></code></pre></div>



<p>Make sure the firewall allows traffic on port 514 (Syslog) or 9200 (Opensearch).</p>



<p>To open ports:</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>sudo firewall-cmd --add-port=514/udp --permanent
sudo firewall-cmd --reload
</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">sudo firewall-cmd --add-port=514/udp --permanent</span></span>
<span class="line"><span style="color: #D4D4D4">sudo firewall-cmd --reload</span></span>
<span class="line"><span style="color: #D4D4D4"></span></span></code></pre></div>



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



<h2 class="wp-block-heading"><strong>4. Fixing Delayed Log Indexing</strong></h2>



<p><strong>A. Check Indexing Queue Size</strong></p>



<p>If logs are delayed, check the queue size:</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>curl -X GET "http://localhost:9200/_cluster/pending_tasks"
</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">curl -X GET &quot;http://localhost:9200/_cluster/pending_tasks&quot;</span></span>
<span class="line"><span style="color: #D4D4D4"></span></span></code></pre></div>



<p>If there are too many pending tasks, restart the OpenSearch to clear the backlog:</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>systemctl restart opensearch
</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">systemctl restart opensearch</span></span>
<span class="line"><span style="color: #D4D4D4"></span></span></code></pre></div>



<p><strong>B. Increase Java Heap Size for OpenSearch</strong></p>



<p>If Elasticsearch is running out of memory, increase heap size:</p>



<ol class="wp-block-list">
<li>Edit the <strong>jvm.options</strong> file: <code>nano /etc/opensearch/jvm.options</code></li>



<li>Increase memory allocation (e.g., from 8gb to 16gb): <code>-Xms4g -Xmx4g</code></li>



<li>Restart opensearch: <code>systemctl restart opensearch</code></li>
</ol>



<p><strong>C. Reduce Log Retention Period</strong></p>



<p>If old logs consume too much storage, delete outdated logs:</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>curl -X DELETE "http://localhost:9200/logs-2023.01*"
</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">curl -X DELETE &quot;http://localhost:9200/logs-2023.01*&quot;</span></span>
<span class="line"><span style="color: #D4D4D4"></span></span></code></pre></div>



<p>Or set an automatic log retention policy:</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>curl -X PUT "http://localhost:9200/_ilm/policy/log_cleanup" -H "Content-Type: application/json" -d '
{
  "policy": {
    "phases": {
      "delete": {
        "min_age": "90d",
        "actions": {
          "delete": {}
        }
      }
    }
  }
}'
</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">curl -X PUT &quot;http://localhost:9200/_ilm/policy/log_cleanup&quot; -H &quot;Content-Type: application/json&quot; -d &#39;</span></span>
<span class="line"><span style="color: #D4D4D4">{</span></span>
<span class="line"><span style="color: #D4D4D4">  &quot;policy&quot;: {</span></span>
<span class="line"><span style="color: #D4D4D4">    &quot;phases&quot;: {</span></span>
<span class="line"><span style="color: #D4D4D4">      &quot;delete&quot;: {</span></span>
<span class="line"><span style="color: #D4D4D4">        &quot;min_age&quot;: &quot;90d&quot;,</span></span>
<span class="line"><span style="color: #D4D4D4">        &quot;actions&quot;: {</span></span>
<span class="line"><span style="color: #D4D4D4">          &quot;delete&quot;: {}</span></span>
<span class="line"><span style="color: #D4D4D4">        }</span></span>
<span class="line"><span style="color: #D4D4D4">      }</span></span>
<span class="line"><span style="color: #D4D4D4">    }</span></span>
<span class="line"><span style="color: #D4D4D4">  }</span></span>
<span class="line"><span style="color: #D4D4D4">}&#39;</span></span>
<span class="line"><span style="color: #D4D4D4"></span></span></code></pre></div>



<p>This automatically deletes logs older than 90 days, freeing up space.</p>



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



<h2 class="wp-block-heading"><strong>5. Verifying Cluster Health and Performance</strong></h2>



<p>To ensure Nagios Log Server R2 is functioning correctly, regularly check:</p>



<ul class="wp-block-list">
<li><strong>Cluster health:</strong> <code>curl -X GET "http://localhost:9200/_cluster/health?pretty"</code></li>



<li><strong>Disk space usage:</strong> <code>df -h</code></li>



<li><strong>Logstash service status:</strong> <code>systemctl status logstash</code></li>
</ul>



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



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



<p>Properly managing log indexing in Nagios Log Server R2 ensures faster searches, real-time log analysis, and efficient storage utilization. Regular monitoring and maintenance will keep Nagios Log Server 2024R2 running efficiently. If issues persist, check back on Nagios documentation, consider <a href="https://www.nagios.com/support-plans/" target="_blank" rel="noreferrer noopener">maintenance and support</a>, or ask the <a href="https://support.nagios.com/forum/" target="_blank" rel="noreferrer noopener">Nagios Support Forum</a>.</p>



<p>Happy monitoring!</p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>How to Set Up Email Alerts in Nagios XI</title>
		<link>https://library.nagios.com/support-tips/email-alerts-nagios-xi/</link>
		
		<dc:creator><![CDATA[Joe Johnson]]></dc:creator>
		<pubDate>Wed, 19 Mar 2025 19:32:23 +0000</pubDate>
				<category><![CDATA[Support Tips]]></category>
		<category><![CDATA[Techtips]]></category>
		<category><![CDATA[Alerting]]></category>
		<category><![CDATA[Monitoring]]></category>
		<guid isPermaLink="false">https://library.nagios.com/?p=52649</guid>

					<description><![CDATA[Configure Notifications for System Failures and Downtime. Introduction Setting up email alerts in Nagios XI is essential for proactive monitoring of critical systems. When a server, application, or network device experiences an issue, Nagios XI can send email notifications to alert administrators in real time. This ensures IT teams respond quickly to failures, minimizing downtime, [&#8230;]]]></description>
										<content:encoded><![CDATA[
<h3 class="wp-block-heading"><em>Configure Notifications for System Failures and Downtime</em>.</h3>



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



<p>Setting up email alerts in <a href="https://www.nagios.com/products/nagios-xi/" data-type="link" data-id="https://www.nagios.com/products/nagios-xi/downloads/?utm_feeditemid=,utm_device=c,utm_term=nagios%20xi,utm_source=google,utm_medium=ppc,utm_campaign={utmcampaign},hsa_cam=22196286194,hsa_grp=177167142649,hsa_mt=e,hsa_src=g,hsa_ad=731799402470,hsa_acc={6435916521},hsa_net=adwords,hsa_kw=nagios%20xi,hsa_tgt=kwd-304903057667&amp;utm_term=nagios%20xi&amp;utm_campaign=&amp;utm_source=adwords&amp;utm_medium=ppc&amp;hsa_acc=6435916521&amp;hsa_cam=22196286194&amp;hsa_grp=177167142649&amp;hsa_ad=731799402470&amp;hsa_src=g&amp;hsa_tgt=kwd-304903057667&amp;hsa_kw=nagios%20xi&amp;hsa_mt=e&amp;hsa_net=adwords&amp;hsa_ver=3&amp;gad_source=1&amp;gclid=EAIaIQobChMI_PnrlfGWjAMVAD0IBR1rISOyEAAYASAAEgI-B_D_BwE" target="_blank" rel="noreferrer noopener">Nagios </a><a href="https://www.nagios.com/products/nagios-xi/downloads/?utm_feeditemid=,utm_device=c,utm_term=nagios%20xi,utm_source=google,utm_medium=ppc,utm_campaign={utmcampaign},hsa_cam=22196286194,hsa_grp=177167142649,hsa_mt=e,hsa_src=g,hsa_ad=731799402470,hsa_acc={6435916521},hsa_net=adwords,hsa_kw=nagios%20xi,hsa_tgt=kwd-304903057667&amp;utm_term=nagios%20xi&amp;utm_campaign=&amp;utm_source=adwords&amp;utm_medium=ppc&amp;hsa_acc=6435916521&amp;hsa_cam=22196286194&amp;hsa_grp=177167142649&amp;hsa_ad=731799402470&amp;hsa_src=g&amp;hsa_tgt=kwd-304903057667&amp;hsa_kw=nagios%20xi&amp;hsa_mt=e&amp;hsa_net=adwords&amp;hsa_ver=3&amp;gad_source=1&amp;gclid=EAIaIQobChMI_PnrlfGWjAMVAD0IBR1rISOyEAAYASAAEgI-B_D_BwE" data-type="link" data-id="https://www.nagios.com/products/nagios-xi/downloads/?utm_feeditemid=,utm_device=c,utm_term=nagios%20xi,utm_source=google,utm_medium=ppc,utm_campaign={utmcampaign},hsa_cam=22196286194,hsa_grp=177167142649,hsa_mt=e,hsa_src=g,hsa_ad=731799402470,hsa_acc={6435916521},hsa_net=adwords,hsa_kw=nagios%20xi,hsa_tgt=kwd-304903057667&amp;utm_term=nagios%20xi&amp;utm_campaign=&amp;utm_source=adwords&amp;utm_medium=ppc&amp;hsa_acc=6435916521&amp;hsa_cam=22196286194&amp;hsa_grp=177167142649&amp;hsa_ad=731799402470&amp;hsa_src=g&amp;hsa_tgt=kwd-304903057667&amp;hsa_kw=nagios%20xi&amp;hsa_mt=e&amp;hsa_net=adwords&amp;hsa_ver=3&amp;gad_source=1&amp;gclid=EAIaIQobChMI_PnrlfGWjAMVAD0IBR1rISOyEAAYASAAEgI-B_D_BwE" target="_blank" rel="noopener">XI</a> is essential for proactive monitoring of critical systems. When a server, application, or network device experiences an issue, Nagios XI can send email notifications to alert administrators in real time. This ensures IT teams respond quickly to failures, minimizing downtime, and improving system reliability.</p>



<p>This guide will walk you through configuring email alerts in Nagios XI, covering SMTP settings, user notifications, and troubleshooting tips.</p>



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



<h2 class="wp-block-heading"><strong>1. Configuring Mail Settings in Nagios XI</strong></h2>



<p>Before setting up alerts, Nagios XI must be configured to send emails via SMTP (Simple Mail Transfer Protocol).</p>



<p><strong>A. Access Mail Settings</strong></p>



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



<li>Navigate to <strong>Admin > System Config > Mail Settings</strong></li>
</ul>



<p><strong>B. Choose Mail Transfer Method</strong></p>



<p>Under the <strong>Mail Settings tab</strong>, choose one of the following methods:</p>



<ul class="wp-block-list">
<li><strong>Sendmail</strong> (default, for local mail relay)</li>



<li><strong>SMTP Server</strong> (recommended for external email providers like Gmail, Office 365, or custom SMTP servers)</li>
</ul>



<p><strong>C. Configure SMTP Settings</strong> (Recommended)</p>



<ol class="wp-block-list">
<li><strong>Set the SMTP server</strong> (e.g., <code>smtp.gmail.com</code> for Gmail, <code>smtp.office365.com</code> for Outlook)</li>



<li><strong>Enable authentication</strong> if required</li>



<li><strong>Enter SMTP credentials</strong> (username and password for authentication)</li>



<li><strong>Set the sender email address</strong> (e.g., <code>nagios@yourdomain.com</code>)</li>



<li>Save changes and <strong>test email delivery</strong> by sending a test message</li>
</ol>



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



<h2 class="wp-block-heading"><strong>2. Configuring User Notifications</strong></h2>



<p>Once email settings are configured, you need to enable notifications for users to receive alerts.</p>



<p><strong>A. Enable Email Notifications for a User</strong></p>



<ol class="wp-block-list">
<li>Go to <strong>Admin &gt; Manage Users</strong></li>



<li><strong>Select the user </strong>who should receive alerts</li>



<li>Click the <strong>Notification Preferences</strong> tab</li>



<li>Enable <strong>Email Notifications</strong></li>



<li>Choose the types of alerts the user should receive:
<ul class="wp-block-list">
<li><strong>Host Down/Recovery Alerts</strong></li>



<li><strong>Service Failure Alerts</strong></li>



<li><strong>Acknowledged Problems</strong></li>
</ul>
</li>



<li><strong>Save</strong> changes</li>
</ol>



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



<h2 class="wp-block-heading"><strong>3. Configuring Notification Settings for Hosts and Services</strong></h2>



<p>To ensure email alerts are triggered when a system issue occurs, hosts and services must have notification settings enabled.</p>



<p><strong>A. Enable Notifications for Hosts</strong></p>



<ol class="wp-block-list">
<li>Navigate to <strong>Configure &gt; Core Config Manager</strong></li>



<li>Go to <strong>Hosts &gt; Select a Host</strong></li>



<li>Click the <strong>Alert Settings</strong> tab</li>



<li>Ensure <strong>Notifications Enabled</strong> is set to <strong>On</strong></li>



<li>Select <strong>Notification Contacts</strong> (users to receive alerts)</li>



<li>Click <strong>Apply Configuration</strong> to save changes</li>
</ol>



<p><strong>B. Enable Notifications for Services</strong></p>



<ol class="wp-block-list">
<li>Navigate to <strong>Configure &gt; Core Config Manager &gt; Services</strong></li>



<li><strong>Select a monitored service</strong> (e.g., CPU Load, Disk Space)</li>



<li>Go to the <strong>Alert Settings</strong> tab</li>



<li><strong>Enable</strong> <strong>notifications</strong> and set a <strong>contact group</strong></li>



<li><strong>Save</strong> and <strong>apply</strong> the configuration</li>
</ol>



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



<h2 class="wp-block-heading"><strong>4. Testing Email Alerts in Nagios XI</strong></h2>



<p>Once notifications are set up, test the alert system:</p>



<ol class="wp-block-list">
<li>Trigger a failure: Manually stop a monitored service (e.g., Apache) to generate an alert: <code>sudo systemctl stop httpd</code></li>



<li>Check if Nagios XI sends an email notification when the service goes down</li>



<li>Restart the service and verify that a recovery alert is sent: <code>sudo systemctl start httpd</code></li>
</ol>



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



<h2 class="wp-block-heading"><strong>5. Troubleshooting Email Notification Issues</strong></h2>



<p>If emails are not being sent, try the following fixes:</p>



<p><strong>A. Check Nagios XI Mail Logs</strong></p>



<p>Run the following command to check mail logs for errors:</p>



<pre class="wp-block-preformatted"><code>tail -f /var/log/maillog<br></code></pre>



<p>Look for SMTP authentication failures or connection issues.</p>



<p><strong>B. Verify Firewall and Port Settings</strong></p>



<p>Ensure outbound SMTP traffic is not blocked:</p>



<p><code>sudo firewall-cmd --add-port=587/tcp --permanent<br>sudo firewall-cmd --reload<br></code></p>



<p>(Replace <code>587</code> with <code>465</code> or <code>25</code> based on your SMTP provider).</p>



<p><strong>C. Check Email Sending Permissions</strong></p>



<p>Ensure Nagios XI has permission to send emails by testing with:</p>



<pre class="wp-block-preformatted"><code>echo "Test Email" | mail -s "Nagios Test" user@example.com<br></code></pre>



<p>If this fails, review SMTP credentials and authentication settings.</p>



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



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



<p>Setting up email alerts in Nagios XI is crucial for real-time monitoring and quick incident response. By configuring SMTP settings, enabling notifications for users, and testing alerts, IT teams can ensure they receive critical alerts when servers, applications, or network devices fail. Regular testing and troubleshooting will keep your alert system running smoothly.</p>



<p>Learn more about Nagios XI by visiting our <a href="https://library.nagios.com/products/nagios-xi/" target="_blank" rel="noreferrer noopener">Nagios XI Resource page</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>Nagios XI: Troubleshooting High CPU and Memory Usage</title>
		<link>https://library.nagios.com/techtips/nagios-xi-cpu-and-memory-usage/</link>
		
		<dc:creator><![CDATA[Joe Johnson]]></dc:creator>
		<pubDate>Tue, 18 Mar 2025 14:05:30 +0000</pubDate>
				<category><![CDATA[Techtips]]></category>
		<category><![CDATA[Support Tips]]></category>
		<category><![CDATA[Monitoring]]></category>
		<guid isPermaLink="false">https://library.nagios.com/?p=52232</guid>

					<description><![CDATA[Introduction Nagios XI is a powerful monitoring solution, but in large or complex environments, it may experience high CPU and memory usage. Excessive resource consumption can lead to slow performance, delayed alerts, or even system crashes. This guide will help you identify the root causes and implement effective solutions to optimize Nagios XI&#8217;s performance. Common [&#8230;]]]></description>
										<content:encoded><![CDATA[
<h2 class="wp-block-heading">Introduction</h2>



<p><a href="https://www.nagios.com/products/nagios-xi/" target="_blank" data-type="link" data-id="https://www.nagios.com/products/nagios-xi/" rel="noreferrer noopener">Nagios XI</a> is a powerful monitoring solution, but in large or complex environments, it may experience high <a href="https://library.nagios.com/documentation/plugin-to-check-cpu-usage/" target="_blank" rel="noreferrer noopener">CPU</a> and memory usage. Excessive resource consumption can lead to slow performance, delayed alerts, or even system crashes. This guide will help you identify the root causes and implement effective solutions to optimize Nagios XI&#8217;s performance.</p>



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



<h2 class="wp-block-heading">Common Causes of High CPU and Memory Usage</h2>



<p><strong>1. Too Many Active Checks</strong></p>



<ul class="wp-block-list">
<li>Running a high number of active checks (checks initiated by Nagios XI) can overload CPU resources.</li>



<li><strong>Symptoms:</strong> Slow system response, delayed checks, high CPU usage.</li>
</ul>



<p><strong>2. Excessive Passive Checks</strong></p>



<ul class="wp-block-list">
<li>A large volume of passive checks (incoming check results from external sources) can cause high memory usage.</li>



<li><strong>Symptoms:</strong> High memory consumption and slow log processing.</li>
</ul>



<p><strong>3. Database Performance Issues</strong></p>



<ul class="wp-block-list">
<li>The Nagios XI MySQL/MariaDB database stores historical data, and an unoptimized database can slow down queries and consume excessive resources.</li>



<li><strong>Symptoms:</strong> High memory usage, slow reports and queries, and database locking.</li>
</ul>



<p><strong>4. Log File Overload</strong></p>



<ul class="wp-block-list">
<li>Large or excessive log files in <code>/var/log/nagios</code> and <code>/var/log/httpd</code> can slow down system performance.</li>



<li><strong>Symptoms:</strong> Frequent disk I/O activity, increased CPU, and increased memory usage.</li>
</ul>



<p><strong>5. Unoptimized Event Handlers and Plugins</strong></p>



<ul class="wp-block-list">
<li>Inefficient custom scripts, event handlers, or third-party plugins can cause excessive resource usage.</li>



<li><strong>Symptoms:</strong> Nagios XI crashing, high CPU spikes and delayed responses.</li>
</ul>



<p><strong>6. Uncontrolled Notification Storms</strong></p>



<ul class="wp-block-list">
<li>Excessive alert notifications can consume system resources, especially if not properly managed.</li>



<li><strong>Symptoms:</strong> Slow email processing, CPU overload and high RAM usage.</li>
</ul>



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



<h2 class="wp-block-heading">How to Identify Resource Bottlenecks</h2>



<p><strong>1. Monitor System Resources</strong></p>



<p>Run the following Linux commands to check CPU and memory usage:</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>htop</textarea></pre><svg xmlns="http://www.w3.org/2000/svg" style="width:24px;height:24px" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2"><path class="with-check" stroke-linecap="round" stroke-linejoin="round" d="M4.5 12.75l6 6 9-13.5"></path><path class="without-check" stroke-linecap="round" stroke-linejoin="round" d="M16.5 8.25V6a2.25 2.25 0 00-2.25-2.25H6A2.25 2.25 0 003.75 6v8.25A2.25 2.25 0 006 16.5h2.25m8.25-8.25H18a2.25 2.25 0 012.25 2.25V18A2.25 2.25 0 0118 20.25h-7.5A2.25 2.25 0 018.25 18v-1.5m8.25-8.25h-6a2.25 2.25 0 00-2.25 2.25v6"></path></svg></span><pre class="shiki dark-plus" style="background-color: #1E1E1E" tabindex="0"><code><span class="line"><span style="color: #9CDCFE">htop</span></span></code></pre></div>



<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>top</textarea></pre><svg xmlns="http://www.w3.org/2000/svg" style="width:24px;height:24px" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2"><path class="with-check" stroke-linecap="round" stroke-linejoin="round" d="M4.5 12.75l6 6 9-13.5"></path><path class="without-check" stroke-linecap="round" stroke-linejoin="round" d="M16.5 8.25V6a2.25 2.25 0 00-2.25-2.25H6A2.25 2.25 0 003.75 6v8.25A2.25 2.25 0 006 16.5h2.25m8.25-8.25H18a2.25 2.25 0 012.25 2.25V18A2.25 2.25 0 0118 20.25h-7.5A2.25 2.25 0 018.25 18v-1.5m8.25-8.25h-6a2.25 2.25 0 00-2.25 2.25v6"></path></svg></span><pre class="shiki dark-plus" style="background-color: #1E1E1E" tabindex="0"><code><span class="line"><span style="color: #9CDCFE">top</span></span></code></pre></div>



<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>free -m</textarea></pre><svg xmlns="http://www.w3.org/2000/svg" style="width:24px;height:24px" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2"><path class="with-check" stroke-linecap="round" stroke-linejoin="round" d="M4.5 12.75l6 6 9-13.5"></path><path class="without-check" stroke-linecap="round" stroke-linejoin="round" d="M16.5 8.25V6a2.25 2.25 0 00-2.25-2.25H6A2.25 2.25 0 003.75 6v8.25A2.25 2.25 0 006 16.5h2.25m8.25-8.25H18a2.25 2.25 0 012.25 2.25V18A2.25 2.25 0 0118 20.25h-7.5A2.25 2.25 0 018.25 18v-1.5m8.25-8.25h-6a2.25 2.25 0 00-2.25 2.25v6"></path></svg></span><pre class="shiki dark-plus" style="background-color: #1E1E1E" tabindex="0"><code><span class="line"><span style="color: #9CDCFE">free</span><span style="color: #D4D4D4"> -</span><span style="color: #9CDCFE">m</span></span></code></pre></div>



<p><strong>2. Check Nagios XI Processes</strong></p>



<p>Identify resource-heavy processes:</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>ps aux --sort=-%mem | head -10</textarea></pre><svg xmlns="http://www.w3.org/2000/svg" style="width:24px;height:24px" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2"><path class="with-check" stroke-linecap="round" stroke-linejoin="round" d="M4.5 12.75l6 6 9-13.5"></path><path class="without-check" stroke-linecap="round" stroke-linejoin="round" d="M16.5 8.25V6a2.25 2.25 0 00-2.25-2.25H6A2.25 2.25 0 003.75 6v8.25A2.25 2.25 0 006 16.5h2.25m8.25-8.25H18a2.25 2.25 0 012.25 2.25V18A2.25 2.25 0 0118 20.25h-7.5A2.25 2.25 0 018.25 18v-1.5m8.25-8.25h-6a2.25 2.25 0 00-2.25 2.25v6"></path></svg></span><pre class="shiki dark-plus" style="background-color: #1E1E1E" tabindex="0"><code><span class="line"><span style="color: #9CDCFE">ps</span><span style="color: #D4D4D4"> </span><span style="color: #9CDCFE">aux</span><span style="color: #D4D4D4"> --</span><span style="color: #9CDCFE">sort</span><span style="color: #D4D4D4">=-%</span><span style="color: #9CDCFE">mem</span><span style="color: #D4D4D4"> | </span><span style="color: #9CDCFE">head</span><span style="color: #D4D4D4"> -</span><span style="color: #B5CEA8">10</span></span></code></pre></div>



<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>ps aux --sort=-%cpu | head -10</textarea></pre><svg xmlns="http://www.w3.org/2000/svg" style="width:24px;height:24px" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2"><path class="with-check" stroke-linecap="round" stroke-linejoin="round" d="M4.5 12.75l6 6 9-13.5"></path><path class="without-check" stroke-linecap="round" stroke-linejoin="round" d="M16.5 8.25V6a2.25 2.25 0 00-2.25-2.25H6A2.25 2.25 0 003.75 6v8.25A2.25 2.25 0 006 16.5h2.25m8.25-8.25H18a2.25 2.25 0 012.25 2.25V18A2.25 2.25 0 0118 20.25h-7.5A2.25 2.25 0 018.25 18v-1.5m8.25-8.25h-6a2.25 2.25 0 00-2.25 2.25v6"></path></svg></span><pre class="shiki dark-plus" style="background-color: #1E1E1E" tabindex="0"><code><span class="line"><span style="color: #9CDCFE">ps</span><span style="color: #D4D4D4"> </span><span style="color: #9CDCFE">aux</span><span style="color: #D4D4D4"> --</span><span style="color: #9CDCFE">sort</span><span style="color: #D4D4D4">=-%</span><span style="color: #9CDCFE">cpu</span><span style="color: #D4D4D4"> | </span><span style="color: #9CDCFE">head</span><span style="color: #D4D4D4"> -</span><span style="color: #B5CEA8">10</span></span></code></pre></div>



<p><strong>3. Analyze Nagios Logs</strong></p>



<p>Check for errors or performance issues in logs:</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>cat /var/log/nagios/nagios.log | grep -i error</textarea></pre><svg xmlns="http://www.w3.org/2000/svg" style="width:24px;height:24px" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2"><path class="with-check" stroke-linecap="round" stroke-linejoin="round" d="M4.5 12.75l6 6 9-13.5"></path><path class="without-check" stroke-linecap="round" stroke-linejoin="round" d="M16.5 8.25V6a2.25 2.25 0 00-2.25-2.25H6A2.25 2.25 0 003.75 6v8.25A2.25 2.25 0 006 16.5h2.25m8.25-8.25H18a2.25 2.25 0 012.25 2.25V18A2.25 2.25 0 0118 20.25h-7.5A2.25 2.25 0 018.25 18v-1.5m8.25-8.25h-6a2.25 2.25 0 00-2.25 2.25v6"></path></svg></span><pre class="shiki dark-plus" style="background-color: #1E1E1E" tabindex="0"><code><span class="line"><span style="color: #9CDCFE">cat</span><span style="color: #D4D4D4"> /</span><span style="color: #569CD6">var</span><span style="color: #D4D4D4">/</span><span style="color: #9CDCFE">log</span><span style="color: #D4D4D4">/nagios/nagios.log | grep -i error</span></span></code></pre></div>



<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>cat /var/log/httpd/error_log | grep -i nagios</textarea></pre><svg xmlns="http://www.w3.org/2000/svg" style="width:24px;height:24px" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2"><path class="with-check" stroke-linecap="round" stroke-linejoin="round" d="M4.5 12.75l6 6 9-13.5"></path><path class="without-check" stroke-linecap="round" stroke-linejoin="round" d="M16.5 8.25V6a2.25 2.25 0 00-2.25-2.25H6A2.25 2.25 0 003.75 6v8.25A2.25 2.25 0 006 16.5h2.25m8.25-8.25H18a2.25 2.25 0 012.25 2.25V18A2.25 2.25 0 0118 20.25h-7.5A2.25 2.25 0 018.25 18v-1.5m8.25-8.25h-6a2.25 2.25 0 00-2.25 2.25v6"></path></svg></span><pre class="shiki dark-plus" style="background-color: #1E1E1E" tabindex="0"><code><span class="line"><span style="color: #9CDCFE">cat</span><span style="color: #D4D4D4"> /</span><span style="color: #569CD6">var</span><span style="color: #D4D4D4">/</span><span style="color: #9CDCFE">log</span><span style="color: #D4D4D4">/httpd/error_log | grep -i nagios</span></span></code></pre></div>



<p><strong>4. Review Database Performance</strong></p>



<p>Check MySQL/MariaDB usage:</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 -u root -p -e "SHOW PROCESSLIST;"</textarea></pre><svg xmlns="http://www.w3.org/2000/svg" style="width:24px;height:24px" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2"><path class="with-check" stroke-linecap="round" stroke-linejoin="round" d="M4.5 12.75l6 6 9-13.5"></path><path class="without-check" stroke-linecap="round" stroke-linejoin="round" d="M16.5 8.25V6a2.25 2.25 0 00-2.25-2.25H6A2.25 2.25 0 003.75 6v8.25A2.25 2.25 0 006 16.5h2.25m8.25-8.25H18a2.25 2.25 0 012.25 2.25V18A2.25 2.25 0 0118 20.25h-7.5A2.25 2.25 0 018.25 18v-1.5m8.25-8.25h-6a2.25 2.25 0 00-2.25 2.25v6"></path></svg></span><pre class="shiki dark-plus" style="background-color: #1E1E1E" tabindex="0"><code><span class="line"><span style="color: #9CDCFE">mysql</span><span style="color: #D4D4D4"> -</span><span style="color: #9CDCFE">u</span><span style="color: #D4D4D4"> </span><span style="color: #9CDCFE">root</span><span style="color: #D4D4D4"> -</span><span style="color: #9CDCFE">p</span><span style="color: #D4D4D4"> -</span><span style="color: #9CDCFE">e</span><span style="color: #D4D4D4"> </span><span style="color: #CE9178">&quot;SHOW PROCESSLIST;&quot;</span></span></code></pre></div>



<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>du -sh /var/lib/mysql</textarea></pre><svg xmlns="http://www.w3.org/2000/svg" style="width:24px;height:24px" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2"><path class="with-check" stroke-linecap="round" stroke-linejoin="round" d="M4.5 12.75l6 6 9-13.5"></path><path class="without-check" stroke-linecap="round" stroke-linejoin="round" d="M16.5 8.25V6a2.25 2.25 0 00-2.25-2.25H6A2.25 2.25 0 003.75 6v8.25A2.25 2.25 0 006 16.5h2.25m8.25-8.25H18a2.25 2.25 0 012.25 2.25V18A2.25 2.25 0 0118 20.25h-7.5A2.25 2.25 0 018.25 18v-1.5m8.25-8.25h-6a2.25 2.25 0 00-2.25 2.25v6"></path></svg></span><pre class="shiki dark-plus" style="background-color: #1E1E1E" tabindex="0"><code><span class="line"><span style="color: #9CDCFE">du</span><span style="color: #D4D4D4"> -</span><span style="color: #9CDCFE">sh</span><span style="color: #D4D4D4"> /</span><span style="color: #569CD6">var</span><span style="color: #D4D4D4">/</span><span style="color: #9CDCFE">lib</span><span style="color: #D4D4D4">/mysql</span></span></code></pre></div>



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



<h2 class="wp-block-heading">Solutions to Reduce CPU and Memory Usage</h2>



<p><strong>1. Optimize Active and Passive Checks</strong></p>



<ul class="wp-block-list">
<li>Reduce check intervals for less critical hosts/services.</li>



<li>Use passive checks where possible to reduce CPU load.</li>



<li>Implement service dependencies to avoid redundant checks.</li>
</ul>



<p><strong>2. Improve Database Performance</strong></p>



<ul class="wp-block-list">
<li>Clean up old data with:</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>nagiosxi_database_maintenance</textarea></pre><svg xmlns="http://www.w3.org/2000/svg" style="width:24px;height:24px" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2"><path class="with-check" stroke-linecap="round" stroke-linejoin="round" d="M4.5 12.75l6 6 9-13.5"></path><path class="without-check" stroke-linecap="round" stroke-linejoin="round" d="M16.5 8.25V6a2.25 2.25 0 00-2.25-2.25H6A2.25 2.25 0 003.75 6v8.25A2.25 2.25 0 006 16.5h2.25m8.25-8.25H18a2.25 2.25 0 012.25 2.25V18A2.25 2.25 0 0118 20.25h-7.5A2.25 2.25 0 018.25 18v-1.5m8.25-8.25h-6a2.25 2.25 0 00-2.25 2.25v6"></path></svg></span><pre class="shiki dark-plus" style="background-color: #1E1E1E" tabindex="0"><code><span class="line"><span style="color: #9CDCFE">nagiosxi_database_maintenance</span></span></code></pre></div>



<ul class="wp-block-list">
<li>Optimize MySQL indexes:</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>mysqlcheck -o -u root -p --all-databases</textarea></pre><svg xmlns="http://www.w3.org/2000/svg" style="width:24px;height:24px" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2"><path class="with-check" stroke-linecap="round" stroke-linejoin="round" d="M4.5 12.75l6 6 9-13.5"></path><path class="without-check" stroke-linecap="round" stroke-linejoin="round" d="M16.5 8.25V6a2.25 2.25 0 00-2.25-2.25H6A2.25 2.25 0 003.75 6v8.25A2.25 2.25 0 006 16.5h2.25m8.25-8.25H18a2.25 2.25 0 012.25 2.25V18A2.25 2.25 0 0118 20.25h-7.5A2.25 2.25 0 018.25 18v-1.5m8.25-8.25h-6a2.25 2.25 0 00-2.25 2.25v6"></path></svg></span><pre class="shiki dark-plus" style="background-color: #1E1E1E" tabindex="0"><code><span class="line"><span style="color: #9CDCFE">mysqlcheck</span><span style="color: #D4D4D4"> -</span><span style="color: #9CDCFE">o</span><span style="color: #D4D4D4"> -</span><span style="color: #9CDCFE">u</span><span style="color: #D4D4D4"> </span><span style="color: #9CDCFE">root</span><span style="color: #D4D4D4"> -</span><span style="color: #9CDCFE">p</span><span style="color: #D4D4D4"> --</span><span style="color: #9CDCFE">all</span><span style="color: #D4D4D4">-</span><span style="color: #9CDCFE">databases</span></span></code></pre></div>



<ul class="wp-block-list">
<li>Increase MySQL cache sizes in <code>/etc/my.cnf</code> for better performance.</li>
</ul>



<p><strong>3. Manage Log Files Efficiently</strong></p>



<ul class="wp-block-list">
<li>Set up log rotation using <code>logrotate</code>:</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>vi /etc/logrotate.d/nagios</textarea></pre><svg xmlns="http://www.w3.org/2000/svg" style="width:24px;height:24px" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2"><path class="with-check" stroke-linecap="round" stroke-linejoin="round" d="M4.5 12.75l6 6 9-13.5"></path><path class="without-check" stroke-linecap="round" stroke-linejoin="round" d="M16.5 8.25V6a2.25 2.25 0 00-2.25-2.25H6A2.25 2.25 0 003.75 6v8.25A2.25 2.25 0 006 16.5h2.25m8.25-8.25H18a2.25 2.25 0 012.25 2.25V18A2.25 2.25 0 0118 20.25h-7.5A2.25 2.25 0 018.25 18v-1.5m8.25-8.25h-6a2.25 2.25 0 00-2.25 2.25v6"></path></svg></span><pre class="shiki dark-plus" style="background-color: #1E1E1E" tabindex="0"><code><span class="line"><span style="color: #9CDCFE">vi</span><span style="color: #D4D4D4"> /</span><span style="color: #9CDCFE">etc</span><span style="color: #D4D4D4">/</span><span style="color: #9CDCFE">logrotate</span><span style="color: #D4D4D4">.</span><span style="color: #9CDCFE">d</span><span style="color: #D4D4D4">/</span><span style="color: #9CDCFE">nagios</span></span></code></pre></div>



<ul class="wp-block-list">
<li>Clear large logs regularly:</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>truncate -s 0 /var/log/nagios/nagios.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: #9CDCFE">truncate</span><span style="color: #D4D4D4"> -</span><span style="color: #9CDCFE">s</span><span style="color: #D4D4D4"> </span><span style="color: #B5CEA8">0</span><span style="color: #D4D4D4"> /</span><span style="color: #569CD6">var</span><span style="color: #D4D4D4">/</span><span style="color: #9CDCFE">log</span><span style="color: #D4D4D4">/nagios/nagios.log</span></span></code></pre></div>



<p><strong>4. Optimize Event Handlers and Plugins</strong></p>



<ul class="wp-block-list">
<li>Review custom scripts for inefficiencies.</li>



<li>Limit the use of CPU-intensive scripts.</li>



<li>Run plugins in parallel only when necessary.</li>
</ul>



<p><strong>5. Control Notification Overload</strong></p>



<ul class="wp-block-list">
<li>Configure notification thresholds to prevent excessive alerts.</li>



<li>Use notification escalations to distribute alerts efficiently.</li>
</ul>



<p><strong>6. Upgrade Hardware or Scale Nagios XI</strong></p>



<ol class="wp-block-list">
<li>Add more CPU cores and RAM if the system is underpowered.</li>



<li>Distribute checks across multiple Nagios XI servers in large environments.</li>
</ol>



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



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



<p>High CPU and memory usage in Nagios XI can degrade performance and impact monitoring effectiveness. By identifying resource bottlenecks and applying optimization techniques, you can ensure a stable and efficient monitoring environment. Regular maintenance, database tuning, and check optimizations are key to keeping Nagios XI running smoothly.</p>



<p>For persistent issues, consider upgrading hardware or implementing Nagios XI High Availability (HA) to distribute the load.</p>



<h2 class="wp-block-heading">Need More Help Monitoring? We&#8217;ve Got You Covered!</h2>



<p>Whether you&#8217;re looking for step-by-step YouTube tutorials or community forums, there are plenty of resources available for Nagios users. If you have a specific question or want to learn more about Nagios Solutions, explore these helpful options:</p>



<p><strong>YouTube Tutorial Playlists:</strong></p>



<ul class="wp-block-list">
<li>Nagios XI Tutorials: <a href="https://youtu.be/yF7YAvKV3-o?list=PLN-ryIrpC_mDglNT7fxEoNRLhGj_GeVyk" target="_blank" rel="noreferrer noopener">Watch Here</a>.</li>



<li>How to Use and Manage Nagios XI: <a href="https://www.youtube.com/watch?v=iC-Yoob0w0k&amp;list=PLN-ryIrpC_mD-pSW7kbxrsd6QH-IJYScG" target="_blank" rel="noreferrer noopener">Watch Here</a>.</li>



<li>How to Monitor Anything with Nagios: <a href="https://www.youtube.com/watch?v=jWzhyGoXGhM&amp;list=PLN-ryIrpC_mARzGtLuX7aDJ9wr9ZtKJlR" target="_blank" rel="noreferrer noopener">Watch Here</a>.</li>
</ul>



<p>Discover the advantages of Nagios Software by attending <a href="https://www.nagios.com/webinars/" target="_blank" rel="noreferrer noopener">webinars</a> or <a href="https://www.nagios.com/request-demo/" target="_blank" rel="noreferrer noopener">demos</a>.</p>



<p>For specific inquiries about Nagios Solutions, visit the <a href="https://support.nagios.com/forum/" target="_blank" rel="noreferrer noopener">Nagios Support Forum</a> or consider a <a href="https://www.nagios.com/support-plans/" target="_blank" rel="noreferrer noopener">Nagios Maintenance &amp; Support Plan</a>.</p>



<p>Happy monitoring!</p>
]]></content:encoded>
					
		
		
			</item>
	</channel>
</rss>
