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

<channel>
	<title>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, 27 Oct 2026 16:16:44 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=7.1.3</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>Troubleshooting Nagios Log Server Migration Issues</title>
		<link>https://library.nagios.com/documentation/troubleshooting-nagios-log-server-migration-issues/</link>
		
		<dc:creator><![CDATA[Rumed Arafa]]></dc:creator>
		<pubDate>Tue, 27 Oct 2026 16:16:42 +0000</pubDate>
				<category><![CDATA[Documentation]]></category>
		<category><![CDATA[Support Tips]]></category>
		<category><![CDATA[Command Line]]></category>
		<category><![CDATA[Migration]]></category>
		<category><![CDATA[Troubleshooting]]></category>
		<guid isPermaLink="false">https://library.nagios.com/?p=71002</guid>

					<description><![CDATA[If your Nagios Log Server migration isn’t completing as expected, this guide will help you find the cause using migration logs, command-line tools, and example output. Due to architectural changes introduced in Nagios Log Server 2024R2, an in-place upgrade from 2024R1.x is not supported. Instead, deploy a new Nagios Log Server 2026R2 Cluster and migrate [&#8230;]]]></description>
										<content:encoded><![CDATA[
<p class="wp-block-paragraph">If your Nagios Log Server migration isn’t completing as expected, this guide will help you find the cause using migration logs, command-line tools, and example output.</p>



<p class="wp-block-paragraph">Due to architectural changes introduced in Nagios Log Server 2024R2, an in-place upgrade from 2024R1.x is not supported. Instead, deploy a new Nagios Log Server 2026R2 Cluster and migrate data using the included migration utility.</p>



<p class="wp-block-paragraph">During this migration, you may run into issues you can resolve on your own before contacting Nagios Support. This article covers how to review migration logs, run the migration manually, and identify common errors.</p>



<p class="wp-block-paragraph">For migration instructions, see the <a href="https://assets.nagios.com/downloads/nagios-log-server/docs/Migrating-to-Nagios-Log-Server-2026.pdf" target="_blank" rel="noreferrer noopener">Migrating to Nagios Log Server 2026</a> document.</p>



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



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



<p class="wp-block-paragraph">Before troubleshooting, confirm that you have used supported versions for the source and destination clusters:</p>



<ul class="wp-block-list">
<li>Source Cluster: <strong>Nagios Log Server 2024R1.3.8</strong></li>



<li>Destination Cluster: <strong>At least Nagios Log Server 2026R2</strong></li>
</ul>



<hr class="wp-block-separator has-alpha-channel-opacity" style="margin-top:0px;margin-bottom:0px"/>



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



<p class="wp-block-paragraph">Many issues can be resolved based on the log output, without the need to contact Nagios Support. For example, if you see that the logs show connectivity issues, it could be related to network connectivity problems.</p>



<p class="wp-block-paragraph">Here is a list of common migration issues:</p>



<ul class="wp-block-list">
<li>Network connectivity problems </li>



<li>Authentication failures</li>



<li>OpenSearch indexing errors</li>



<li>Data mapping conflicts</li>



<li>Permission issues</li>



<li>Dashboard or settings migration failures</li>
</ul>



<hr class="wp-block-separator has-alpha-channel-opacity" style="margin-top:0px;margin-bottom:0px"/>



<h2 class="wp-block-heading"><strong>Review Migration Logs</strong></h2>



<p class="wp-block-paragraph">On the target instance, you can grep the logs to find all the messages generated by the migration, to isolate issues:</p>



<h3 class="wp-block-heading">RHEL-Based Systems</h3>



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



<h3 class="wp-block-heading">Debian-Based Systems</h3>



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



<hr class="wp-block-separator has-alpha-channel-opacity" style="margin-top:0px;margin-bottom:0px"/>



<h2 class="wp-block-heading"><strong>Run the Migration From the Command Line</strong></h2>



<p class="wp-block-paragraph">Another option is to run the migration from the command line which gives you more flexibility and control, and shows actual errors on the console. You can isolate a specific index, migrate only the log data, or restart the previous migration. Run the following migration script from the command line on the target instance:</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>php /usr/local/nagioslogserver/scripts/migrate_data.php -s &lt;source_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: #9CDCFE">php</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">nagioslogserver</span><span style="color: #D4D4D4">/</span><span style="color: #9CDCFE">scripts</span><span style="color: #D4D4D4">/</span><span style="color: #9CDCFE">migrate_data</span><span style="color: #D4D4D4">.</span><span style="color: #9CDCFE">php</span><span style="color: #D4D4D4"> -</span><span style="color: #9CDCFE">s</span><span style="color: #D4D4D4"> &lt;</span><span style="color: #9CDCFE">source_ip</span><span style="color: #D4D4D4">&gt;</span></span></code></pre></div>



<p class="wp-block-paragraph"><strong>Example:</strong></p>



<div class="wp-block-kevinbatdorf-code-block-pro" data-code-block-pro-font-family="Code-Pro-Geist-Mono" style="font-size:.875rem;font-family:Code-Pro-Geist-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:1.5rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)"><span role="button" tabindex="0" style="color:#D4D4D4;display:none" aria-label="Copy" class="code-block-pro-copy-button"><pre class="code-block-pro-copy-button-pre" aria-hidden="true"><textarea class="code-block-pro-copy-button-textarea" tabindex="-1" aria-hidden="true" readonly>php /usr/local/nagioslogserver/scripts/migrate_data.php -s 192.168.55.101 -i logstash-2026.07.30 -r</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">php</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">nagioslogserver</span><span style="color: #D4D4D4">/</span><span style="color: #9CDCFE">scripts</span><span style="color: #D4D4D4">/</span><span style="color: #9CDCFE">migrate_data</span><span style="color: #D4D4D4">.</span><span style="color: #9CDCFE">php</span><span style="color: #D4D4D4"> -</span><span style="color: #9CDCFE">s</span><span style="color: #D4D4D4"> </span><span style="color: #B5CEA8">192.168</span><span style="color: #D4D4D4">.</span><span style="color: #B5CEA8">55.101</span><span style="color: #D4D4D4"> -</span><span style="color: #9CDCFE">i</span><span style="color: #D4D4D4"> </span><span style="color: #9CDCFE">logstash</span><span style="color: #D4D4D4">-</span><span style="color: #B5CEA8">2026.07</span><span style="color: #D4D4D4">.</span><span style="color: #B5CEA8">30</span><span style="color: #D4D4D4"> -</span><span style="color: #9CDCFE">r</span></span></code></pre></div>



<p class="wp-block-paragraph">This command will migrate the index named <code>logstash-2026.07.30</code> and restart the previous migration using <code>192.168.55.101</code> as the source instance.</p>



<h3 class="wp-block-heading">Common Parameters:</h3>



<ul class="wp-block-list">
<li><code>-s &lt;source_ip&gt;</code>&nbsp;The IP address of the source cluster. This is required.</li>



<li><code>-i &lt;index_name&gt;</code>&nbsp;Migrates the specified index.</li>



<li><code>-l</code> Migrates log data.</li>



<li><code>-r</code> Restarts previous migration.</li>
</ul>



<hr class="wp-block-separator has-alpha-channel-opacity" style="margin-top:0px;margin-bottom:0px"/>



<h2 class="wp-block-heading">Reading Migration Outputs</h2>



<p class="wp-block-paragraph">The following examples show what to look for in the log files or on the console, if performed manually.</p>



<h3 class="wp-block-heading">Failed Migration Example</h3>



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



<p class="wp-block-paragraph">A <code>mapper_parsing_exception</code> indicates a data mapping conflict during migration. If you see this, please open a Support Case.</p>



<h3 class="wp-block-heading">Successful Migration Example</h3>



<div class="wp-block-kevinbatdorf-code-block-pro" data-code-block-pro-font-family="Code-Pro-Geist-Mono" style="font-size:.875rem;font-family:Code-Pro-Geist-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:1.5rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)"><span role="button" tabindex="0" style="color:#D4D4D4;display:none" aria-label="Copy" class="code-block-pro-copy-button"><pre class="code-block-pro-copy-button-pre" aria-hidden="true"><textarea class="code-block-pro-copy-button-textarea" tabindex="-1" aria-hidden="true" readonly>{
  "created": 1,
  "version_conflicts": 0,
  "failures": []
}</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>
<span class="line"><span style="color: #D4D4D4">  </span><span style="color: #9CDCFE">&quot;created&quot;</span><span style="color: #D4D4D4">: </span><span style="color: #B5CEA8">1</span><span style="color: #D4D4D4">,</span></span>
<span class="line"><span style="color: #D4D4D4">  </span><span style="color: #9CDCFE">&quot;version_conflicts&quot;</span><span style="color: #D4D4D4">: </span><span style="color: #B5CEA8">0</span><span style="color: #D4D4D4">,</span></span>
<span class="line"><span style="color: #D4D4D4">  </span><span style="color: #9CDCFE">&quot;failures&quot;</span><span style="color: #D4D4D4">: []</span></span>
<span class="line"><span style="color: #D4D4D4">}</span></span></code></pre></div>



<p class="wp-block-paragraph">An empty <code>failures</code> array indicates the migration completed without errors.</p>



<hr class="wp-block-separator has-alpha-channel-opacity" style="margin-top:0px;margin-bottom:0px"/>



<h2 class="wp-block-heading">Before Opening a Support Case</h2>



<p class="wp-block-paragraph">If you still need help, collect the following and upload them to your Support Case:</p>



<ul class="wp-block-list">
<li>Source and destination Log Server versions</li>



<li>Migration log output</li>



<li>Any output from the migration script</li>



<li>Screenshots of reported errors</li>



<li>Full <a href="https://supportportal.nagios.com/s/article/Generating-the-Log-Server-Diagnostic-Profile" target="_blank" rel="noreferrer noopener">diagnostic profiles</a> of both instances</li>
</ul>



<hr class="wp-block-separator has-alpha-channel-opacity" style="margin-top:0px;margin-bottom:0px"/>



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



<p class="wp-block-paragraph">Migrating to the latest Nagios Log Server version is a significant step. If you worked through these troubleshooting steps and still see errors, <a href="https://supportportal.nagios.com/s/" target="_blank" rel="noopener">open a Support Case</a> and include the items listed above so our team can review your migration as quickly as possible.</p>



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



<ul class="wp-block-list">
<li><a href="https://assets.nagios.com/downloads/nagios-log-server/guides/administrator/updates.php#migrate-to-r2" target="_blank" rel="noreferrer noopener">Migrating from 2024R1 to 2026</a></li>



<li><a href="https://assets.nagios.com/downloads/nagios-log-server/guides/administrator/generaluse.php#backup-and-restore" target="_blank" rel="noreferrer noopener">Backing Up and Restoring Nagios Log Server</a></li>



<li><a href="https://assets.nagios.com/downloads/nagios-log-server/guides/administrator/" target="_blank" rel="noopener">Nagios Log Server Admin Guide</a></li>



<li><a href="https://library.nagios.com/docs" target="_blank" rel="noreferrer noopener">Nagios Log Server Documentation</a></li>



<li><a href="https://support.nagios.com/forum" target="_blank" rel="noopener">Nagios Support Forum</a></li>
</ul>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>Nagios PHP Upgrade: What to Know Before You Start</title>
		<link>https://library.nagios.com/documentation/nagios-php-upgrade-what-to-know/</link>
		
		<dc:creator><![CDATA[Andy Fried]]></dc:creator>
		<pubDate>Thu, 22 Oct 2026 16:38:05 +0000</pubDate>
				<category><![CDATA[Documentation]]></category>
		<category><![CDATA[Support Tips]]></category>
		<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Upgrade]]></category>
		<guid isPermaLink="false">https://library.nagios.com/?p=71054</guid>

					<description><![CDATA[On October 21, 2026, the PHP project released urgent security fixes, addressing two vulnerabilities, CVE-2026-109618 and CVE-2026-109619, known as PHP2Shell. Both carry a critical 9.2 CVSS v4.0 score, meaning an unauthorized user could remotely execute code on a vulnerable web server without logging in. As a result, many organizations are planning a PHP upgrade. This [&#8230;]]]></description>
										<content:encoded><![CDATA[
<p class="wp-block-paragraph">On October 21, 2026, the PHP project released urgent security fixes, addressing two vulnerabilities, <a href="https://github.com/php/php-src/security/advisories/GHSA-w8hw-w9fx-j79w" target="_blank" rel="noopener">CVE-2026-109618</a> and <a href="https://github.com/php/php-src/security/advisories/GHSA-6wmf-4rv5-p3rp" target="_blank" rel="noopener">CVE-2026-109619</a>, known as PHP2Shell. Both carry a critical 9.2 CVSS v4.0 score, meaning an unauthorized user could remotely execute code on a vulnerable web server without logging in.</p>



<p class="wp-block-paragraph">As a result, many organizations are planning a PHP upgrade. This article describes what you need to consider before a PHP upgrade, so your Nagios software keeps working properly.</p>



<div role="note" style="border-left:6px solid #e5484d;background:rgba(229,72,77,0.12);padding:16px 22px;margin:28px 0;">
  <p style="margin:0 0 4px;font-size:1.1em;font-weight:600;color:#e5484d;text-transform:uppercase;letter-spacing:0.04em;">Important</p>
  <p style="margin:0;font-size:1em;line-height:1.5;">Do not upgrade PHP 7.x to PHP 8.x on an existing Nagios server. Migrate to a newer OS release instead.</p>
</div>



<h2 class="wp-block-heading">What This Means for Nagios Monitoring Solutions </h2>



<p class="wp-block-paragraph">Nagios XI and our other web-based products (including Nagios Fusion) run on the PHP version installed on your server, so applying your Linux vendor’s PHP security updates is important.</p>



<p class="wp-block-paragraph">When Nagios software is initially installed, it relies on the base version of PHP that the OS vendor installs. The following is mostly geared towards Nagios XI, but it is applicable to our other software as well.&nbsp;</p>



<p class="wp-block-paragraph">For example, RHEL 8 installs PHP 7.2, RHEL 9 installs PHP 8.0, and Ubuntu 24.04 LTS installs PHP 8.3.&nbsp;</p>



<p class="wp-block-paragraph">As of October 1, 2026, the current versions of our software require a minimum of PHP 7.4 and have been developed and tested to run on PHP 8.4.</p>



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



<h2 class="wp-block-heading">How to Check Your System</h2>



<p class="wp-block-paragraph">Check whether your PHP packages include the PHP2Shell fixes.</p>



<h3 class="wp-block-heading">RHEL-Based Systems</h3>



<div class="wp-block-kevinbatdorf-code-block-pro" data-code-block-pro-font-family="Code-Pro-Geist-Mono" style="font-size:.875rem;font-family:Code-Pro-Geist-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:1.5rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)"><span role="button" tabindex="0" style="color:#D4D4D4;display:none" aria-label="Copy" class="code-block-pro-copy-button"><pre class="code-block-pro-copy-button-pre" aria-hidden="true"><textarea class="code-block-pro-copy-button-textarea" tabindex="-1" aria-hidden="true" readonly>rpm -q --changelog php-common | grep -i CVE-2026-1096</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">rpm -q --changelog php-common | grep -i CVE-2026-1096</span></span></code></pre></div>



<p class="wp-block-paragraph">If the command returns CVE-2026-109618 and CVE-2026-109619, your PHP packages include the fixes. If it returns nothing, apply your Linux vendor’s latest PHP updates, then check again.</p>



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



<h4 class="wp-block-heading">Debian 12</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" 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>apt list | grep php8.2-common</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">apt list | grep php8.2-common</span></span></code></pre></div>



<p class="wp-block-paragraph">If they have this version, they have the patch: 8.2.35-1~deb12u1</p>



<h4 class="wp-block-heading">Debian 13</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" 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>apt list | grep php8.4-common</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">apt list | grep php8.4-common</span></span></code></pre></div>



<p class="wp-block-paragraph">If they have this version, they have the patch: 8.4.27-1~deb13u1</p>



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



<h4 class="wp-block-heading">Ubuntu 22</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" 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>apt list | grep php8.1-common</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">apt list | grep php8.1-common</span></span></code></pre></div>



<p class="wp-block-paragraph">If they have this version, they have the patch: 8.1.2-1ubuntu2.28</p>



<h4 class="wp-block-heading">Ubuntu 24.04</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" 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>apt list | grep php8.3-common</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">apt list | grep php8.3-common</span></span></code></pre></div>



<p class="wp-block-paragraph">If they have this version, they have the patch: 8.3.6-0ubuntu0.24.04.13</p>



<h3 class="wp-block-heading">Example Output (RHEL 9)</h3>



<div class="wp-block-kevinbatdorf-code-block-pro" data-code-block-pro-font-family="Code-Pro-Geist-Mono" style="font-size:.875rem;font-family:Code-Pro-Geist-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:1.5rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)"><pre class="shiki dark-plus" style="background-color: #1E1E1E" tabindex="0"><code><span class="line"><span style="color: #D4D4D4">&#91;root@nagios-xi ~&#93;# php --version</span></span>
<span class="line"><span style="color: #D4D4D4"> PHP 8.0.30 (cli) (built: Oct 21 2026 15:47:44) ( NTS gcc x86_64 )</span></span>
<span class="line"><span style="color: #D4D4D4"> Copyright (c) The PHP Group</span></span>
<span class="line"><span style="color: #D4D4D4"> Zend Engine v4.0.30, Copyright (c) Zend Technologies</span></span>
<span class="line"><span style="color: #D4D4D4">    with Zend OPcache v8.0.30, Copyright (c), by Zend Technologies</span></span>
<span class="line"><span style="color: #D4D4D4">&#91;root@nagios-xi ~&#93;# rpm -q --changelog php-common | grep -i CVE-2026-10961</span></span>
<span class="line"><span style="color: #D4D4D4">  CVE-2026-109618, CVE-2026-109619</span></span></code></pre></div>



<hr class="wp-block-separator has-alpha-channel-opacity" style="margin-top:16px;margin-bottom:0px"/>



<h2 class="wp-block-heading">Options to Safeguard Your Installations </h2>



<p class="wp-block-paragraph">Choose the option that fits your situation. For most PHP2Shell concerns, applying your Linux vendor’s security updates is the fastest and safest path.</p>



<h3 class="wp-block-heading">If You Need a PHP Upgrade for Security or Vulnerability Concerns</h3>



<p class="wp-block-paragraph">Keep in mind that Linux vendors backport security fixes into the PHP versions they ship, so an older version number does not always mean your system is vulnerable. Use the check above, or check with your Linux distribution vendor, to see if you need to upgrade your version of PHP.&nbsp;</p>



<p class="wp-block-paragraph">Contact your Linux distribution vendor for the proper method to update your version of PHP and stay inside the parameters listed in this article.&nbsp;</p>



<h3 class="wp-block-heading">If You Need a PHP Upgrade Within the Same Major Version</h3>



<p class="wp-block-paragraph">Nagios strongly recommends that you do not upgrade from one major version of PHP to another (for example, from PHP 7.x to PHP 8.x).</p>



<blockquote class="wp-block-quote is-layout-flow wp-block-quote-is-layout-flow">
<p class="wp-block-paragraph">For example, if you are running Nagios XI on RHEL 8, with PHP 7.2, you can upgrade to anything from version 7.4 through the highest, available version of PHP 7.x, but do not upgrade to PHP 8.0 or above.</p>
</blockquote>



<p class="wp-block-paragraph">When Nagios performs the initial software installation, it depends on the major version of all the components that ship with that distribution. A PHP upgrade to a different major version can cause issues with the software, as well as with the OS itself.</p>



<h2 class="wp-block-heading">If You Need a PHP Upgrade to a Higher Major Version</h2>



<p class="wp-block-paragraph">To maintain the integrity of your installed version of Nagios software, migrate your XI instance to a newer release of your Linux distribution that installs the major PHP version you need.</p>



<blockquote class="wp-block-quote is-layout-flow wp-block-quote-is-layout-flow">
<p class="wp-block-paragraph">For example, if you are on RHEL 8, running PHP 7.4 and wish to upgrade to PHP 8.3, back up your XI instance and restore it to a new RHEL 9 or RHEL 10 system. Then perform the PHP upgrade on the new instance to PHP 8.3. </p>



<p class="wp-block-paragraph">Related Reading: <a href="https://assets.nagios.com/downloads/nagiosxi/guides/administrator/sysmgmt.php#backuprestore" target="_blank" rel="noreferrer noopener">Backing Up And Restoring XI</a></p>
</blockquote>



<hr class="wp-block-separator has-alpha-channel-opacity" style="margin-top:24px;margin-bottom:0px"/>



<h2 class="wp-block-heading">Before Any PHP Upgrade&nbsp;</h2>



<p class="wp-block-paragraph">It is important to perform all PHP upgrades in your test environment before your production environment and take a snapshot or clone of your virtual machine so you can roll back if you encounter any problems.&nbsp;</p>



<p class="wp-block-paragraph">After making a PHP upgrade, make sure to install the latest SourceGuardian loaders for the new version. See: <a href="https://library.nagios.com/docs/nagios-xi/installation/Nagios-XI-Installing-Latest-SourceGuardian-Loaders" target="_blank" rel="noopener">Nagios XI – Installing Latest SourceGuardian Loaders</a>.&nbsp;</p>



<p class="wp-block-paragraph">We are monitoring this situation and will provide updates as more information becomes available.</p>



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



<ul class="wp-block-list">
<li><a href="https://assets.nagios.com/downloads/nagiosxi/guides/administrator/systemconfig.php#bestpractices" target="_blank" rel="noopener">Nagios XI Best Practices</a></li>



<li><a href="https://library.nagios.com/docs" target="_blank" rel="noreferrer noopener">Nagios Documentation Hub</a></li>



<li><a href="https://support.nagios.com/forum" target="_blank" rel="noopener">Nagios Support Forum</a></li>
</ul>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>How to Switch Nagios XI to the Faster Compiled check_ncpa Plugin</title>
		<link>https://library.nagios.com/support-tips/switch-nagios-xi-to-check-ncpa-plugin/</link>
		
		<dc:creator><![CDATA[Craig Dienger]]></dc:creator>
		<pubDate>Tue, 13 Oct 2026 18:05:47 +0000</pubDate>
				<category><![CDATA[Support Tips]]></category>
		<category><![CDATA[CCM]]></category>
		<category><![CDATA[Command Line]]></category>
		<category><![CDATA[NCPA]]></category>
		<category><![CDATA[Plugins]]></category>
		<category><![CDATA[Python]]></category>
		<guid isPermaLink="false">https://library.nagios.com/?p=70777</guid>

					<description><![CDATA[As of Nagios XI 2026R1.7, there is an option to use either the legacy Python version of check_ncpa.py or a new compiled version of check_ncpa, the plugin Nagios XI uses to run checks against the Nagios Cross-Platform Agent (NCPA). The new binary version has been shown to execute much faster, should be a command-line match [&#8230;]]]></description>
										<content:encoded><![CDATA[
<p class="wp-block-paragraph">As of <a href="https://www.nagios.com/changelog/nagios-xi/2026r1-7/" target="_blank" rel="noopener">Nagios XI 2026R1.7</a>, there is an option to use either the legacy Python version of check_ncpa.py or a new compiled version of check_ncpa, the plugin Nagios XI uses to run checks against the Nagios Cross-Platform Agent (NCPA). The new binary version has been shown to execute much faster, should be a command-line match with the Python version, and should work as a drop-in replacement.</p>



<h2 class="wp-block-heading">Performance Comparison</h2>



<p class="wp-block-paragraph">Below are screenshots of the top output of a lab machine configured with approximately 13,000 checks running <code>check_ncpa.py</code>:</p>



<figure class="wp-block-image size-full"><img fetchpriority="high" decoding="async" width="975" height="397" src="https://library.nagios.com/wp-content/uploads/2026/10/top-output_check_ncpa.py_.png" alt="Screenshot of the top output of a lab machine configured with approximately 13,000 checks running check_ncpa.py" class="wp-image-70825" title="How to Switch Nagios XI to the Faster Compiled check_ncpa Plugin 1" srcset="https://library.nagios.com/wp-content/uploads/2026/10/top-output_check_ncpa.py_.png 975w, https://library.nagios.com/wp-content/uploads/2026/10/top-output_check_ncpa.py_-300x122.png 300w, https://library.nagios.com/wp-content/uploads/2026/10/top-output_check_ncpa.py_-768x313.png 768w" sizes="(max-width: 975px) 100vw, 975px" /><figcaption class="wp-element-caption">Screenshot of the top output of check_ncpa.py</figcaption></figure>



<p class="wp-block-paragraph">And the same machine running the compiled version of <code>check_ncpa</code>:</p>



<figure class="wp-block-image size-full"><img decoding="async" width="975" height="364" src="https://library.nagios.com/wp-content/uploads/2026/10/top-output_check_ncpa.png" alt="Screenshot of the top output of compiled version of check_ncpa" class="wp-image-70828" title="How to Switch Nagios XI to the Faster Compiled check_ncpa Plugin 2" srcset="https://library.nagios.com/wp-content/uploads/2026/10/top-output_check_ncpa.png 975w, https://library.nagios.com/wp-content/uploads/2026/10/top-output_check_ncpa-300x112.png 300w, https://library.nagios.com/wp-content/uploads/2026/10/top-output_check_ncpa-766x286.png 766w" sizes="(max-width: 975px) 100vw, 975px" /><figcaption class="wp-element-caption">Screenshot of the top output of compiled version of check_ncpa</figcaption></figure>



<h2 class="wp-block-heading">Before You Begin</h2>



<p class="wp-block-paragraph">The new binary version is being configured by default on new installations of XI 2026R1.7. Upgraded systems keep the Python version by default so that customers can decide to opt in if they have not made any customizations to the Python version of the plugin.</p>



<p class="wp-block-paragraph">If you want to test the new version of check_ncpa on your upgraded system or switch back to using the Python version, please use the steps below.</p>



<blockquote class="wp-block-quote is-layout-flow wp-block-quote-is-layout-flow">
<p class="wp-block-paragraph">As always, we recommend testing the script in your test environment prior to using it in production.</p>
</blockquote>



<p class="wp-block-paragraph">Please note that if you are running Nagios Mod-Gearman (NMG) checks, we recommend waiting for&nbsp;a future version as the current version does not work properly with NMG.</p>



<h2 class="wp-block-heading">Switching to the Compiled check_ncpa Plugin</h2>



<ol class="wp-block-list">
<li>Before making changes, back up your current configuration. Navigate to <strong>Core Configuration Manager (CCM)</strong> <strong>&gt; Quick Tools &gt;</strong> <strong>Configuration Snapshots</strong> and confirm a recent snapshot is listed. If the switch causes problems, you can restore this snapshot to return to your previous configuration.</li>



<li>Navigate to&nbsp;<strong>Configure &gt; Core Config Manager</strong> <strong>&gt; Commands &gt; Commands</strong>&nbsp;in the Nagios XI web interface.</li>



<li>Search for&nbsp;<code>check_xi_ncpa</code> and click the <strong>Edit</strong> icon.</li>
</ol>



<figure class="wp-block-image size-full"><img decoding="async" width="1430" height="461" src="https://library.nagios.com/wp-content/uploads/2026/10/XI-Commands.png" alt="XI Commands" class="wp-image-70829" title="How to Switch Nagios XI to the Faster Compiled check_ncpa Plugin 3" srcset="https://library.nagios.com/wp-content/uploads/2026/10/XI-Commands.png 1430w, https://library.nagios.com/wp-content/uploads/2026/10/XI-Commands-300x97.png 300w, https://library.nagios.com/wp-content/uploads/2026/10/XI-Commands-1024x330.png 1024w, https://library.nagios.com/wp-content/uploads/2026/10/XI-Commands-766x247.png 766w" sizes="(max-width: 1430px) 100vw, 1430px" /><figcaption class="wp-element-caption">Screenshot of the Commands page in Nagios XI searching for check_xi_ncpa and editing the command.</figcaption></figure>



<ol start="4" class="wp-block-list">
<li>Change the <strong>Command Line</strong> from <code>$USER1$/check_ncpa.py</code> to&nbsp;<code>$USER1$/check_ncpa</code>, leaving the remainder of the command intact.</li>
</ol>



<p class="wp-block-paragraph">This will force the checks to use the new version of check_ncpa.</p>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="624" height="359" src="https://library.nagios.com/wp-content/uploads/2026/10/CommandManagement-CommandLine.png" alt="Command Management screen in Nagios XI." class="wp-image-70830" title="How to Switch Nagios XI to the Faster Compiled check_ncpa Plugin 4" srcset="https://library.nagios.com/wp-content/uploads/2026/10/CommandManagement-CommandLine.png 624w, https://library.nagios.com/wp-content/uploads/2026/10/CommandManagement-CommandLine-300x173.png 300w" sizes="(max-width: 624px) 100vw, 624px" /><figcaption class="wp-element-caption">Command Management screen in Nagios XI.</figcaption></figure>



<ol start="5" class="wp-block-list">
<li>Click <strong>Save</strong>, then click <strong>Apply Configuration</strong>.</li>
</ol>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="192" src="https://library.nagios.com/wp-content/uploads/2026/10/Commands-ApplyConfiguration-1024x192.png" alt="Commands ApplyConfiguration" class="wp-image-70831" title="How to Switch Nagios XI to the Faster Compiled check_ncpa Plugin 5" srcset="https://library.nagios.com/wp-content/uploads/2026/10/Commands-ApplyConfiguration-1024x192.png 1024w, https://library.nagios.com/wp-content/uploads/2026/10/Commands-ApplyConfiguration-300x56.png 300w, https://library.nagios.com/wp-content/uploads/2026/10/Commands-ApplyConfiguration-767x144.png 767w, https://library.nagios.com/wp-content/uploads/2026/10/Commands-ApplyConfiguration.png 1428w" sizes="(max-width: 1024px) 100vw, 1024px" /><figcaption class="wp-element-caption">Apply Configuration Commands page in Nagios XI. </figcaption></figure>



<h2 class="wp-block-heading">Switching Back to the Python Version</h2>



<p class="wp-block-paragraph">To switch back to the Python version, repeat steps 2-5 and change <code>$USER1$/check_ncpa</code> back to&nbsp;<code>$USER1$/check_ncpa.py</code>.</p>



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



<p class="wp-block-paragraph">The compiled check_ncpa plugin lets your Nagios XI server run the same NCPA checks with significantly less overhead, freeing capacity to monitor more of your environment on existing hardware. Because the change applies to every service using the check_xi_ncpa command, validate it in a test environment and take a configuration snapshot before switching production systems. If you need to return to the original plugin, switching back takes only a single command edit.</p>



<p class="wp-block-paragraph">Looking for more ways to get the most out of Nagios XI? Browse the <a href="https://library.nagios.com/" target="_blank" rel="noreferrer noopener">Nagios Library</a> for documentation and how-to guides, or visit <a href="https://support.nagios.com/" target="_blank" rel="noreferrer noopener">Nagios Support</a> if you have questions about switching to the compiled plugin.</p>
]]></content:encoded>
					
		
		
			</item>
		<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 loading="lazy" 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 6" 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><figcaption>Nagios XI Maintenance Checklist 7</figcaption></figure>



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



<p class="wp-block-paragraph">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 class="wp-block-paragraph">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 class="wp-block-paragraph">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 class="wp-block-paragraph">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 class="wp-block-paragraph">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 class="wp-block-paragraph">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 class="wp-block-paragraph">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 class="wp-block-paragraph">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 class="wp-block-paragraph">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 class="wp-block-paragraph">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 class="wp-block-paragraph">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 class="wp-block-paragraph">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 class="wp-block-paragraph">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 class="wp-block-paragraph">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 class="wp-block-paragraph">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 class="wp-block-paragraph">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 class="wp-block-paragraph">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 class="wp-block-paragraph">If you prefer a manual setup:</p>



<p class="wp-block-paragraph">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 class="wp-block-paragraph">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 class="wp-block-paragraph">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 class="wp-block-paragraph">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 class="wp-block-paragraph">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 Certificate 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 class="wp-block-paragraph">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 up SSL certificate expiration monitoring in <a href="https://www.nagios.com/products/nagios-xi/" data-type="link" data-id="https://www.nagios.com/products/nagios-xi/" target="_blank" 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">Option 1: Using the Website Wizard</h2>



<p class="wp-block-paragraph">The built-in <strong>Website Wizard</strong> in Nagios XI (which uses the <code>check_http</code> plugin), provides the easiest approach to setting up SSL Certificate monitoring. Simply use an <strong><mark style="background-color:rgba(0, 0, 0, 0)" class="has-inline-color has-vivid-green-cyan-color">https</mark></strong> URL in Step 1, and you will see an <strong>SSL Certificate</strong> check option in Step 2. The <strong>Days to Expiration</strong> threshold sets the check to alert you if the certificate will expire within the set number of days.</p>



<p class="wp-block-paragraph">The output of the check will provide you with details on the number of days left before expiration:</p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="116" src="https://library.nagios.com/wp-content/uploads/2026/07/SSL-Check-1024x116.png" alt="Screenshot of an SSL Certificate expiration check for nagios.org in Nagios XI" class="wp-image-70199" title="Monitoring SSL Certificate Expiration with Nagios XI 8" srcset="https://library.nagios.com/wp-content/uploads/2026/07/SSL-Check-1024x116.png 1024w, https://library.nagios.com/wp-content/uploads/2026/07/SSL-Check-300x34.png 300w, https://library.nagios.com/wp-content/uploads/2026/07/SSL-Check-768x87.png 768w, https://library.nagios.com/wp-content/uploads/2026/07/SSL-Check.png 1387w" sizes="(max-width: 1024px) 100vw, 1024px" /><figcaption class="wp-element-caption">The Website Wizard&#8217;s SSL Certificate check in action. </figcaption></figure>



<p class="wp-block-paragraph">You can learn more about the Website Wizard in this guide: </p>



<p class="wp-block-paragraph"><a href="https://assets.nagios.com/downloads/nagiosxi/docs/Monitoring-Websites-2024.pdf" target="_blank" rel="noopener">How To Monitor Websites with Nagios XI</a></p>



<h2 class="wp-block-heading">Option 2: Using a Custom Plugin</h2>



<p class="wp-block-paragraph">Nagios XI also enables you to use custom plugins, and the <strong>check_ssl_cert</strong> plugin is commonly used.<br></p>



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



<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" style="color:#D4D4D4;display:none" aria-label="Copy" class="code-block-pro-copy-button"><pre class="code-block-pro-copy-button-pre" aria-hidden="true"><textarea class="code-block-pro-copy-button-textarea" tabindex="-1" aria-hidden="true" readonly>cd /usr/local/nagios/libexec
wget https://raw.githubusercontent.com/matteocorti/check_ssl_cert/master/check_ssl_cert
chmod +x check_ssl_cert</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">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" 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>check_ssl_certificate</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">check_ssl_certificate</span></span></code></pre></div>



<ul start="1" class="wp-block-list">
<li><strong>Command Line:</strong></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>$USER1$/check_ssl_cert -H $ARG1$ -w $ARG2$ -c $ARG3$</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">$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 class="wp-block-paragraph">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" 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_ssl_cert -H example.com -w 30 -c 15</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_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 class="wp-block-paragraph">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 class="wp-block-paragraph">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 class="wp-block-paragraph"><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 class="wp-block-paragraph">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 class="wp-block-paragraph">Generating reports in Nagios XI is a straightforward process. Simply follow these steps to create a performance report:</p>



<p class="wp-block-paragraph"><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 class="wp-block-paragraph"><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 class="wp-block-paragraph"><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 class="wp-block-paragraph">Once the report is generated, it can be shared with relevant stakeholders in multiple ways.</p>



<p class="wp-block-paragraph"><strong>Exporting Reports</strong></p>



<p class="wp-block-paragraph">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 class="wp-block-paragraph"><strong>Automating Report Delivery</strong></p>



<p class="wp-block-paragraph">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 class="wp-block-paragraph">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 class="wp-block-paragraph">To enhance your use of Nagios XI, here are some helpful resources:</p>



<p class="wp-block-paragraph"><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 class="wp-block-paragraph"><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 class="wp-block-paragraph"><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 class="wp-block-paragraph"><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 class="wp-block-paragraph"><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 class="wp-block-paragraph">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 class="wp-block-paragraph">Happy monitoring!</p>
]]></content:encoded>
					
		
		
		<media:content url="https://www.youtube.com/embed/nagiosvideo" medium="video">
			<media:player url="https://www.youtube.com/embed/nagiosvideo" />
			<media:title type="plain">Support Tips - Nagios Library</media:title>
			<media:description type="html"><![CDATA[Enjoy the videos and music you love, upload original content, and share it all with friends, family, and the world on YouTube.]]></media:description>
			<media:thumbnail url="https://library.nagios.com/wp-content/uploads/2025/03/image-16-1.png" />
			<media:rating scheme="urn:simple">nonadult</media:rating>
		</media:content>
	</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 class="wp-block-paragraph"><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 class="wp-block-paragraph"><strong>Why It Matters</strong></p>



<p class="wp-block-paragraph">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 class="wp-block-paragraph"><strong>Use Case</strong></p>



<p class="wp-block-paragraph">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 class="wp-block-paragraph"><strong>Related Reading</strong></p>



<p class="wp-block-paragraph"><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 class="wp-block-paragraph"><strong>Why It Matters</strong></p>



<p class="wp-block-paragraph">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 class="wp-block-paragraph"><strong>Use Case</strong></p>



<p class="wp-block-paragraph">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 class="wp-block-paragraph"><strong>Related Reading</strong></p>



<p class="wp-block-paragraph"><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 class="wp-block-paragraph"><strong>Why It Matters</strong></p>



<p class="wp-block-paragraph">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 class="wp-block-paragraph"><strong>Use Case</strong></p>



<p class="wp-block-paragraph">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 class="wp-block-paragraph"><strong>Related Reading</strong></p>



<p class="wp-block-paragraph"><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 class="wp-block-paragraph"><strong>Why It Matters</strong></p>



<p class="wp-block-paragraph">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 class="wp-block-paragraph"><strong>Use Case</strong></p>



<p class="wp-block-paragraph">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 class="wp-block-paragraph"><strong>Related Reading</strong></p>



<p class="wp-block-paragraph"><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 class="wp-block-paragraph"><strong>Why It Matters</strong></p>



<p class="wp-block-paragraph">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 class="wp-block-paragraph"><strong>Use Case</strong></p>



<p class="wp-block-paragraph">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 class="wp-block-paragraph"><strong>Related Reading</strong></p>



<p class="wp-block-paragraph"><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 class="wp-block-paragraph"><strong>Why It Matters</strong></p>



<p class="wp-block-paragraph">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 class="wp-block-paragraph"><strong>Use Case</strong></p>



<p class="wp-block-paragraph">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 class="wp-block-paragraph"><strong>Related Reading</strong></p>



<p class="wp-block-paragraph"><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 class="wp-block-paragraph">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[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 class="wp-block-paragraph">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 class="wp-block-paragraph">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 class="wp-block-paragraph">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 class="wp-block-paragraph">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 class="wp-block-paragraph">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 class="wp-block-paragraph">     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 class="wp-block-paragraph">     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 class="wp-block-paragraph">        This command will build and install NCPA, including any required dependencies.</p>



<p class="wp-block-paragraph">     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 class="wp-block-paragraph">         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 class="wp-block-paragraph">         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 class="wp-block-paragraph">     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 class="wp-block-paragraph">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 class="wp-block-paragraph">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 class="wp-block-paragraph">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 class="wp-block-paragraph">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 wp-block-paragraph">      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 wp-block-paragraph">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 wp-block-paragraph"></p>



<p class="wp-block-paragraph">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 loading="lazy" 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 9" 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 class="wp-block-paragraph"></p>



<figure class="wp-block-image size-large"><a href="https://library.nagios.com/wp-content/uploads/2025/03/Wizards-1.png"><img loading="lazy" 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 10" 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 class="wp-block-paragraph"></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 11" 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 class="wp-block-paragraph"></p>



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



<p class="wp-block-paragraph">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 class="wp-block-paragraph">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 class="wp-block-paragraph">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 class="wp-block-paragraph">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 class="wp-block-paragraph">For further assistance, refer to the <a href="https://support.nagios.com/forum/" target="_blank" rel="noreferrer noopener">Nagios Support Forum</a> or the<strong> </strong><a href="https://library.nagios.com/docs/" target="_blank" rel="noreferrer noopener">Nagios Documentation Hub</a><strong>.</strong></p>



<p class="wp-block-paragraph">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 class="wp-block-paragraph"></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 class="wp-block-paragraph">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 class="wp-block-paragraph">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 class="wp-block-paragraph">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 class="wp-block-paragraph">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 class="wp-block-paragraph">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 class="wp-block-paragraph"><strong>A. Check System Resources</strong></p>



<p class="wp-block-paragraph">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 class="wp-block-paragraph">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 class="wp-block-paragraph"><strong>B. Optimize Shard Allocation</strong></p>



<p class="wp-block-paragraph">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 class="wp-block-paragraph">If you have too many shards, consider merging indices or increasing shard size.</p>



<p class="wp-block-paragraph">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 class="wp-block-paragraph">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 class="wp-block-paragraph">This reduces overhead and speeds up searches.</p>



<p class="wp-block-paragraph"><strong>C. Limit Search Query Scope</strong></p>



<p class="wp-block-paragraph">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 class="wp-block-paragraph"><strong>A. Verify Log Input Sources</strong></p>



<p class="wp-block-paragraph">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 class="wp-block-paragraph"><strong>B. Check Log Collection Services</strong></p>



<p class="wp-block-paragraph">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 class="wp-block-paragraph">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 class="wp-block-paragraph">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 class="wp-block-paragraph"><strong>C. Verify Firewall and Network Connectivity</strong></p>



<p class="wp-block-paragraph">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 class="wp-block-paragraph">Make sure the firewall allows traffic on port 514 (Syslog) or 9200 (Opensearch).</p>



<p class="wp-block-paragraph">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 class="wp-block-paragraph"><strong>A. Check Indexing Queue Size</strong></p>



<p class="wp-block-paragraph">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 class="wp-block-paragraph">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 class="wp-block-paragraph"><strong>B. Increase Java Heap Size for OpenSearch</strong></p>



<p class="wp-block-paragraph">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 class="wp-block-paragraph"><strong>C. Reduce Log Retention Period</strong></p>



<p class="wp-block-paragraph">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 class="wp-block-paragraph">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 class="wp-block-paragraph">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 class="wp-block-paragraph">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 class="wp-block-paragraph">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 class="wp-block-paragraph">Happy monitoring!</p>
]]></content:encoded>
					
		
		
			</item>
	</channel>
</rss>
