<?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>Nagios Cross-Platform Agent &#8211; Nagios Library</title>
	<atom:link href="https://library.nagios.com/tag/nagios-cross-platform-agent/feed/" rel="self" type="application/rss+xml" />
	<link>https://library.nagios.com</link>
	<description>Complete Nagios monitoring resources and documentation</description>
	<lastBuildDate>Tue, 10 Feb 2026 18:44:15 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=7.0.2</generator>

<image>
	<url>https://library.nagios.com/wp-content/uploads/2024/11/Nagios-Blue-N.svg</url>
	<title>Nagios Cross-Platform Agent &#8211; Nagios Library</title>
	<link>https://library.nagios.com</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>Installing Nagios Cross-Platform Agent on Fedora 39 Workstation</title>
		<link>https://library.nagios.com/documentation/installing-nagios-cross-platform-agent-on-fedora-40-workstation/</link>
		
		<dc:creator><![CDATA[Johnny Mengistu]]></dc:creator>
		<pubDate>Mon, 17 Mar 2025 19:34:22 +0000</pubDate>
				<category><![CDATA[Documentation]]></category>
		<category><![CDATA[Fedora 40]]></category>
		<category><![CDATA[Nagios Cross-Platform Agent]]></category>
		<guid isPermaLink="false">https://library.nagios.com/?p=52225</guid>

					<description><![CDATA[Nagios is a popular open-source monitoring system that helps in tracking the status of various network services, servers, and other systems in an IT infrastructure. To extend Nagios&#8217; functionality to non-Linux systems or to gain deeper insights into systems beyond basic SNMP or HTTP checks, you can use the Nagios Cross-Platform Agent (NRDP). In this [&#8230;]]]></description>
										<content:encoded><![CDATA[
<p class="wp-block-paragraph">Nagios is a popular open-source monitoring system that helps in tracking the status of various network services, servers, and other systems in an IT infrastructure. To extend Nagios&#8217; functionality to non-Linux systems or to gain deeper insights into systems beyond basic SNMP or HTTP checks, you can use the <strong>Nagios Cross-Platform Agent (NRDP)</strong>.</p>



<p class="wp-block-paragraph">In this article, we will walk through the process of installing and configuring the <strong>Nagios Cross-Platform Agent (NRDP)</strong> on a Fedora 39 workstation. This allows your system to communicate with the Nagios monitoring server, reporting on its health, system performance, and other monitored services.</p>



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



<p class="wp-block-paragraph">Before we start, ensure that you have:</p>



<ol class="wp-block-list">
<li>A <strong>Fedora 39 </strong>workstation up and running.</li>



<li>Root or <strong>sudo</strong> privileges on the machine.</li>



<li>Internet access to download necessary packages.</li>



<li>A basic understanding of Linux commands and networking.</li>
</ol>



<h2 class="wp-block-heading">Steps to Install Nagios Cross-Platform Agent on Fedora 39 Workstation</h2>



<h2 class="wp-block-heading">Step 1: Install Required Dependencies</h2>



<p class="wp-block-paragraph">First, ensure that your system is up-to-date and has all the required dependencies to install Nagios NCPA.</p>



<h3 class="wp-block-heading">Update the System</h3>



<p class="wp-block-paragraph">Open a terminal and run the following command to update the 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 dnf update -y</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">dnf</span><span style="color: #D4D4D4"> </span><span style="color: #9CDCFE">update</span><span style="color: #D4D4D4"> -</span><span style="color: #9CDCFE">y</span></span></code></pre></div>



<h3 class="wp-block-heading">Install Required Dependencies</h3>



<p class="wp-block-paragraph">Next, install the necessary packages for compiling and running Nagios NCPA:</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 dnf install -y gcc make git zlib-devel openssl-devel python3 python3-pip</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">dnf</span><span style="color: #D4D4D4"> </span><span style="color: #9CDCFE">install</span><span style="color: #D4D4D4"> -</span><span style="color: #9CDCFE">y</span><span style="color: #D4D4D4"> </span><span style="color: #9CDCFE">gcc</span><span style="color: #D4D4D4"> </span><span style="color: #9CDCFE">make</span><span style="color: #D4D4D4"> </span><span style="color: #9CDCFE">git</span><span style="color: #D4D4D4"> </span><span style="color: #9CDCFE">zlib</span><span style="color: #D4D4D4">-</span><span style="color: #9CDCFE">devel</span><span style="color: #D4D4D4"> </span><span style="color: #9CDCFE">openssl</span><span style="color: #D4D4D4">-</span><span style="color: #9CDCFE">devel</span><span style="color: #D4D4D4"> </span><span style="color: #9CDCFE">python3</span><span style="color: #D4D4D4"> </span><span style="color: #9CDCFE">python3</span><span style="color: #D4D4D4">-</span><span style="color: #9CDCFE">pip</span></span></code></pre></div>



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



<p class="wp-block-paragraph">Nagios provides a precompiled version of NCPA for various Linux distributions, including Fedora. To download the latest stable release of NCPA, follow these steps:</p>



<h3 class="wp-block-heading">Navigate to the NCPA Downloads Page</h3>



<p class="wp-block-paragraph">Visit the <a>NCPA Downloads Page</a> to find the link to the latest version. Alternatively, you can use the <code>wget</code> command to fetch the <code>.rpm</code> package directly.</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>wget https://github.com/NagiosEnterprises/ncpa/releases/download/v2.3.0/ncpa-2.3.0-1.x86_64.rpm</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">wget</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/releases/download/v2.3.0/ncpa-2.3.0-1.x86_64.rpm</span></span></code></pre></div>



<pre class="wp-block-preformatted">(Ensure you replace the URL with the latest version number available on the website.)</pre>



<h2 class="wp-block-heading">Step 3: Install Nagios NCPA</h2>



<p class="wp-block-paragraph">Once the <code>.rpm</code> package is downloaded, you can install it using the <code>dnf</code> package manager.</p>



<h3 class="wp-block-heading">Install the NCPA Package</h3>



<p class="wp-block-paragraph">Run the following command to install NCPA:</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 dnf install ./ncpa-2.3.0-1.x86_64.rpm</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">dnf</span><span style="color: #D4D4D4"> </span><span style="color: #9CDCFE">install</span><span style="color: #D4D4D4"> ./</span><span style="color: #9CDCFE">ncpa</span><span style="color: #D4D4D4">-</span><span style="color: #B5CEA8">2.3</span><span style="color: #D4D4D4">.</span><span style="color: #B5CEA8">0</span><span style="color: #D4D4D4">-1.</span><span style="color: #9CDCFE">x86_64</span><span style="color: #D4D4D4">.</span><span style="color: #9CDCFE">rpm</span></span></code></pre></div>



<p class="wp-block-paragraph">This will install the NCPA agent on your Fedora 39 workstation.</p>



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



<p class="wp-block-paragraph">After the installation is complete, you&#8217;ll need to configure NCPA to allow Nagios Core or any monitoring system to communicate with the agent. NCPA is controlled via a configuration file that allows you to define settings such as the API token, listening ports, and more.</p>



<h3 class="wp-block-heading">Edit the NCPA Configuration File</h3>



<p class="wp-block-paragraph">The NCPA configuration file is located at <code>/usr/local/ncpa/etc/ncpa.cfg</code>. Open the configuration file in a text editor like <code>nano</code> or <code>vi</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 nano /usr/local/ncpa/etc/ncpa.cfg</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">nano</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">ncpa</span><span style="color: #D4D4D4">/</span><span style="color: #9CDCFE">etc</span><span style="color: #D4D4D4">/</span><span style="color: #9CDCFE">ncpa</span><span style="color: #D4D4D4">.</span><span style="color: #9CDCFE">cfg</span></span></code></pre></div>



<pre class="wp-block-preformatted">Inside the configuration file, you can customize the following:</pre>



<ul class="wp-block-list">
<li><strong>API Token</strong>: NCPA uses an API token for authentication. By default, it will be set to a random value during installation. You can change it to something more secure and memorable. Find the line that starts with <code>api_token</code> and change its value: </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>api_token = your_secure_token_here</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">api_token</span><span style="color: #D4D4D4"> = </span><span style="color: #9CDCFE">your_secure_token_here</span></span></code></pre></div>



<ul class="wp-block-list">
<li><strong>Listen Address and Port</strong>: By default, NCPA listens on <code>127.0.0.1:5693</code>. You may want to configure it to listen on all network interfaces or a specific address. To allow access from any machine, change the <code>bind_address</code> value to <code>0.0.0.0</code>: </li>
</ul>



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



<ul class="wp-block-list">
<li><strong>Additional Configuration</strong>: You can configure other options like logging, plugins, and security settings as needed.</li>
</ul>



<p class="wp-block-paragraph">Once you&#8217;re done editing, save and close the file. Press “<mark>CTRL&nbsp;</mark>and&nbsp;<mark>X&nbsp;</mark>” then press&nbsp;<mark>Y&nbsp;</mark>to confirm your changes and hit&nbsp;<mark>Enter&nbsp;</mark>to save everything.</p>



<h3 class="wp-block-heading">Enable and Start the NCPA Service</h3>



<p class="wp-block-paragraph">Now, you&#8217;ll need to enable and start the NCPA service to run it in the background:</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
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">enable</span><span style="color: #D4D4D4"> </span><span style="color: #9CDCFE">ncpa</span></span>
<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">Check the status of the service to ensure that it&#8217;s running correctly:</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">You should see output indicating that the NCPA service is active and running. If your screen looks similar to the one below then you can skip Step 5. If not continue to Step 5.</p>



<figure class="wp-block-gallery has-nested-images columns-default is-cropped wp-block-gallery-1 is-layout-flex wp-block-gallery-is-layout-flex">
<figure class="wp-block-image size-large"><a href="https://library.nagios.com/wp-content/uploads/2025/03/Fedora-41-Firewall.png"><img fetchpriority="high" decoding="async" width="1024" height="672" data-id="52426" src="https://library.nagios.com/wp-content/uploads/2025/03/Fedora-41-Firewall-1024x672.png" alt="Fedora 41 Firewall" class="wp-image-52426" title="Installing Nagios Cross-Platform Agent on Fedora 39 Workstation 1" srcset="https://library.nagios.com/wp-content/uploads/2025/03/Fedora-41-Firewall-1024x672.png 1024w, https://library.nagios.com/wp-content/uploads/2025/03/Fedora-41-Firewall-300x197.png 300w, https://library.nagios.com/wp-content/uploads/2025/03/Fedora-41-Firewall-768x504.png 768w, https://library.nagios.com/wp-content/uploads/2025/03/Fedora-41-Firewall.png 1098w" sizes="(max-width: 1024px) 100vw, 1024px" /></a><figcaption class="wp-element-caption">Fedora Firewall</figcaption></figure>
</figure>



<h2 class="wp-block-heading">Step 5: Configure Firewall (if applicable)</h2>



<p class="wp-block-paragraph">If your Fedora 39 workstation has a firewall enabled, you may need to allow traffic on the port that NCPA is using (default is <code>5693</code>).</p>



<p class="wp-block-paragraph">To allow NCPA traffic through the firewall, 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>sudo firewall-cmd --add-port=5693/tcp --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: #9CDCFE">sudo</span><span style="color: #D4D4D4"> </span><span style="color: #9CDCFE">firewall</span><span style="color: #D4D4D4">-</span><span style="color: #9CDCFE">cmd</span><span style="color: #D4D4D4"> --</span><span style="color: #9CDCFE">add</span><span style="color: #D4D4D4">-</span><span style="color: #9CDCFE">port</span><span style="color: #D4D4D4">=</span><span style="color: #B5CEA8">5693</span><span style="color: #D4D4D4">/</span><span style="color: #9CDCFE">tcp</span><span style="color: #D4D4D4"> --</span><span style="color: #9CDCFE">permanent</span></span>
<span class="line"><span style="color: #9CDCFE">sudo</span><span style="color: #D4D4D4"> </span><span style="color: #9CDCFE">firewall</span><span style="color: #D4D4D4">-</span><span style="color: #9CDCFE">cmd</span><span style="color: #D4D4D4"> --</span><span style="color: #9CDCFE">reload</span></span></code></pre></div>



<p class="wp-block-paragraph">This will open port <code>5693</code> for TCP traffic.</p>



<h2 class="wp-block-heading">Step 6: Verify NCPA Installation</h2>



<p class="wp-block-paragraph">At this point, NCPA should be installed and running on your Fedora 39 workstation. To verify the installation, you can try to access the NCPA web interface.</p>



<p class="wp-block-paragraph">Open a web browser and navigate to:</p>



<pre class="wp-block-preformatted"><code><code><a href="http://&lt;your_fedora_ip&gt;:5693" data-type="link" data-id="http://&lt;your_fedora_ip&gt;:5693">http://&lt;your_fedora_ip&gt;:5693</a></code></code></pre>



<p class="wp-block-paragraph">You should see the NCPA web interface login page. Use the <code>api_token</code> you set in the configuration file to log in. You can also use the NCPA command-line interface (CLI) to query the agent&#8217;s status or get system metrics. To test the API locally, you can use the following curl 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 -k -u api_token:your_secure_token_here http://127.0.0.1:5693/api/v1/status</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">curl</span><span style="color: #D4D4D4"> -</span><span style="color: #9CDCFE">k</span><span style="color: #D4D4D4"> -</span><span style="color: #9CDCFE">u</span><span style="color: #D4D4D4"> </span><span style="color: #C8C8C8">api_token</span><span style="color: #D4D4D4">:</span><span style="color: #9CDCFE">your_secure_token_here</span><span style="color: #D4D4D4"> </span><span style="color: #C8C8C8">http</span><span style="color: #D4D4D4">:</span><span style="color: #6A9955">//127.0.0.1:5693/api/v1/status</span></span></code></pre></div>



<p class="wp-block-paragraph">This should return a JSON object with the current status of NCPA.</p>



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



<p class="wp-block-paragraph">1. Log into Nagios XI and hover your mouse over the gear icon &amp; select&nbsp;<mark>Configuration Wizards</mark>. Or click the gear icon &amp; then click&nbsp;<mark>Configuration Wizards</mark>. If you’re using light or dark mode the buttons might be in different locations.</p>



<p class="wp-block-paragraph">2. In the search bar above like in the picture below look for NCPA and select it.</p>



<figure class="wp-block-gallery has-nested-images columns-default is-cropped wp-block-gallery-2 is-layout-flex wp-block-gallery-is-layout-flex">
<figure class="wp-block-image size-large"><a href="https://library.nagios.com/wp-content/uploads/2025/02/NCPA-Config-Select-1.png"><img decoding="async" width="1024" height="530" data-id="50530" src="https://library.nagios.com/wp-content/uploads/2025/02/NCPA-Config-Select-1-1024x530.png" alt="NCPA Select" class="wp-image-50530" title="Installing Nagios Cross-Platform Agent on Fedora 39 Workstation 2" srcset="https://library.nagios.com/wp-content/uploads/2025/02/NCPA-Config-Select-1-1024x530.png 1024w, https://library.nagios.com/wp-content/uploads/2025/02/NCPA-Config-Select-1-300x155.png 300w, https://library.nagios.com/wp-content/uploads/2025/02/NCPA-Config-Select-1-768x398.png 768w, https://library.nagios.com/wp-content/uploads/2025/02/NCPA-Config-Select-1-1536x795.png 1536w, https://library.nagios.com/wp-content/uploads/2025/02/NCPA-Config-Select-1.png 1912w" sizes="(max-width: 1024px) 100vw, 1024px" /></a><figcaption class="wp-element-caption">NCPA Select</figcaption></figure>
</figure>



<p class="wp-block-paragraph">3. Enter the IP address, API token and system you are using (select Generic option).</p>



<p class="wp-block-paragraph">4. Fill in the rest of the information to your liking and click&nbsp;<mark>Finish&nbsp;</mark>or&nbsp;<mark>Finish w/Defaults</mark>.</p>



<figure class="wp-block-gallery has-nested-images columns-default is-cropped wp-block-gallery-3 is-layout-flex wp-block-gallery-is-layout-flex">
<figure class="wp-block-image size-large"><a href="https://library.nagios.com/wp-content/uploads/2025/02/NCPA-More-Config-Info-1.png"><img decoding="async" width="1024" height="507" data-id="50592" src="https://library.nagios.com/wp-content/uploads/2025/02/NCPA-More-Config-Info-1-1024x507.png" alt="NCPA More Config Info 1" class="wp-image-50592" title="Installing Nagios Cross-Platform Agent on Fedora 39 Workstation 3" srcset="https://library.nagios.com/wp-content/uploads/2025/02/NCPA-More-Config-Info-1-1024x507.png 1024w, https://library.nagios.com/wp-content/uploads/2025/02/NCPA-More-Config-Info-1-300x149.png 300w, https://library.nagios.com/wp-content/uploads/2025/02/NCPA-More-Config-Info-1-768x381.png 768w, https://library.nagios.com/wp-content/uploads/2025/02/NCPA-More-Config-Info-1-1536x761.png 1536w, https://library.nagios.com/wp-content/uploads/2025/02/NCPA-More-Config-Info-1.png 1651w" sizes="(max-width: 1024px) 100vw, 1024px" /></a><figcaption class="wp-element-caption">NCPA More Config Info</figcaption></figure>
</figure>



<p class="wp-block-paragraph">5. After you are finished click the home icon on the far left and select the green host bar in the middle of the screen like in the picture below.</p>



<figure class="wp-block-gallery has-nested-images columns-default is-cropped wp-block-gallery-4 is-layout-flex wp-block-gallery-is-layout-flex">
<figure class="wp-block-image size-large"><a href="https://library.nagios.com/wp-content/uploads/2025/02/NCPA-Home-2.png"><img loading="lazy" decoding="async" width="1024" height="526" data-id="50593" src="https://library.nagios.com/wp-content/uploads/2025/02/NCPA-Home-2-1024x526.png" alt="NCPA Home 2" class="wp-image-50593" title="Installing Nagios Cross-Platform Agent on Fedora 39 Workstation 4" srcset="https://library.nagios.com/wp-content/uploads/2025/02/NCPA-Home-2-1024x526.png 1024w, https://library.nagios.com/wp-content/uploads/2025/02/NCPA-Home-2-300x154.png 300w, https://library.nagios.com/wp-content/uploads/2025/02/NCPA-Home-2-768x394.png 768w, https://library.nagios.com/wp-content/uploads/2025/02/NCPA-Home-2-1536x789.png 1536w, https://library.nagios.com/wp-content/uploads/2025/02/NCPA-Home-2.png 1905w" sizes="(max-width: 1024px) 100vw, 1024px" /></a><figcaption class="wp-element-caption">NCPA Home</figcaption></figure>
</figure>



<p class="wp-block-paragraph">6. Select the name of the NCPA agent you just created &amp; you will see&nbsp;<strong>Host Status Details</strong>.</p>



<figure class="wp-block-gallery has-nested-images columns-default is-cropped wp-block-gallery-5 is-layout-flex wp-block-gallery-is-layout-flex">
<figure class="wp-block-image size-large"><a href="https://library.nagios.com/wp-content/uploads/2025/02/NCPA-Fedora-41-Host-Detail.png"><img loading="lazy" decoding="async" width="1024" height="414" data-id="50615" src="https://library.nagios.com/wp-content/uploads/2025/02/NCPA-Fedora-41-Host-Detail-1024x414.png" alt="NCPA Fedora 41 Host Detail" class="wp-image-50615" title="Installing Nagios Cross-Platform Agent on Fedora 39 Workstation 5" srcset="https://library.nagios.com/wp-content/uploads/2025/02/NCPA-Fedora-41-Host-Detail-1024x414.png 1024w, https://library.nagios.com/wp-content/uploads/2025/02/NCPA-Fedora-41-Host-Detail-300x121.png 300w, https://library.nagios.com/wp-content/uploads/2025/02/NCPA-Fedora-41-Host-Detail-768x310.png 768w, https://library.nagios.com/wp-content/uploads/2025/02/NCPA-Fedora-41-Host-Detail-1536x620.png 1536w, https://library.nagios.com/wp-content/uploads/2025/02/NCPA-Fedora-41-Host-Detail.png 1649w" sizes="(max-width: 1024px) 100vw, 1024px" /></a><figcaption class="wp-element-caption">NCPA Fedora 41 &#8211; Host Detail</figcaption></figure>
</figure>



<p class="wp-block-paragraph">Refer to the Nagios documentation for instructions on how to add NCPA checks in Nagios Core.</p>



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



<p class="wp-block-paragraph">You have successfully installed and configured <strong>Nagios NCPA</strong> on your <strong>Fedora 39</strong> workstation. Now you can monitor your system&#8217;s metrics like CPU usage, memory, disk space, and more, either locally or remotely using Nagios Core or any other compatible monitoring tool.</p>



<p class="wp-block-paragraph">NCPA simplifies the monitoring process and integrates well with both open-source and enterprise Nagios systems. You can further customize and fine-tune the NCPA configuration according to your specific needs.</p>



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



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



<p class="wp-block-paragraph">Visit Our Website:&nbsp;<a href="https://www.youtube.com/redirect?event=video_description&amp;redir_token=QUFFLUhqa2Y0Z240bWZVdlFwR3pIa09MQWxpYVhUa0lZQXxBQ3Jtc0tuNEZzbXFBVGMzVTgwWkRpMHFNYjV2NmhBcGppUzd2YXN4QUNDRHlGUHh2VXBvcUdMdkM0bUg0dno1Y3FHM2pSWTU1MUlhSWRwSW94ckppWmt1Vm85SUxQcm1UdXZrczNSd1dxLVU5TUpwbHR3bEVpYw&amp;q=https%3A%2F%2Fwww.nagios.com%2F&amp;v=flMcuXDNRWs" target="_blank" rel="noreferrer noopener">https://www.nagios.com</a></p>



<p class="wp-block-paragraph">Visit Nagios Support:&nbsp;<a href="https://www.youtube.com/redirect?event=video_description&amp;redir_token=QUFFLUhqbl8wSWR6LUZMZllzSUxvdXdsSTFvc2lrR1lSd3xBQ3Jtc0tsclhaYWZKbUdzYW1Cak1NXzUzeEJ2MUlwdzlOaUJUcjZuVTlna3RNblRPZnJrcGtaZ0d4dlIxV01sT1Ziekx6Qmt1TzhENmREWnpLLTJ0bS1mdlR2cU5XQm13VS1keWdIUnBPN0o4cjFLRzZLS0pkQQ&amp;q=https%3A%2F%2Fsupport.nagios.com%2F&amp;v=flMcuXDNRWs" target="_blank" rel="noreferrer noopener">https://support.nagios.com/</a></p>



<p class="wp-block-paragraph">Visit Nagios Exchange:&nbsp;<a href="https://www.youtube.com/redirect?event=video_description&amp;redir_token=QUFFLUhqa1BfS283Z0JCWEg2TklqNFFTUjBGWmtoaFFnUXxBQ3Jtc0ttc2xTNnBFTUVzY2JDS3AzYUpRVk1CQ0R5Y1JnRjd0SGVQcmx5RjZ5ZTg0RHp1LXIxSHYxeXpXdThtTXFTaFd4dFZKdFZvdnVfYVM2UHQ3STcwXzdkaDU4OWk4cTgzRDB6M00yUnE2SklWTWJSd0hRSQ&amp;q=https%3A%2F%2Fexchange.nagios.org%2F&amp;v=flMcuXDNRWs" target="_blank" rel="noreferrer noopener">https://exchange.nagios.org/</a></p>
]]></content:encoded>
					
		
		
		<media:content url="https://www.youtube.com/embed/redir_token" medium="video">
			<media:player url="https://www.youtube.com/embed/redir_token" />
			<media:title type="plain">Nagios Cross-Platform Agent Archives - 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/library-image-1-1-2-1.png" />
			<media:rating scheme="urn:simple">nonadult</media:rating>
		</media:content>
	</item>
	</channel>
</rss>
