<?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>Python &#8211; Nagios Library</title>
	<atom:link href="https://library.nagios.com/tag/python/feed/" rel="self" type="application/rss+xml" />
	<link>https://library.nagios.com</link>
	<description>Complete Nagios monitoring resources and documentation</description>
	<lastBuildDate>Wed, 21 Oct 2026 13:12:31 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=7.1.5</generator>

<image>
	<url>https://library.nagios.com/wp-content/uploads/2024/11/Nagios-Blue-N.svg</url>
	<title>Python &#8211; Nagios Library</title>
	<link>https://library.nagios.com</link>
	<width>32</width>
	<height>32</height>
</image> 
	<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>
	</channel>
</rss>
