<?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>Command Line &#8211; Nagios Library</title>
	<atom:link href="https://library.nagios.com/tag/command-line/feed/" rel="self" type="application/rss+xml" />
	<link>https://library.nagios.com</link>
	<description>Complete Nagios monitoring resources and documentation</description>
	<lastBuildDate>Fri, 20 Feb 2026 21:22:41 +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>Command Line &#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 a Fedora 41 Workstation</title>
		<link>https://library.nagios.com/monitoring/installing-nagios-cross-platform-agent-on-a-fedora-41-workstation/</link>
		
		<dc:creator><![CDATA[Johnny Mengistu]]></dc:creator>
		<pubDate>Wed, 26 Feb 2025 22:48:57 +0000</pubDate>
				<category><![CDATA[Monitoring]]></category>
		<category><![CDATA[Solutions]]></category>
		<category><![CDATA[Training]]></category>
		<category><![CDATA[Command Line]]></category>
		<category><![CDATA[Fedora 41]]></category>
		<category><![CDATA[NCPA]]></category>
		<guid isPermaLink="false">https://library.nagios.com/?p=50111</guid>

					<description><![CDATA[Nagios Cross-Platform Agent (NCPA) is a powerful monitoring agent that allows you to monitor systems running on various operating systems, including Linux, Windows, and macOS. NCPA is designed to be lightweight, secure, and easy to configure, making it an excellent choice for monitoring your Fedora 41 workstation. In this article, we will walk you through [&#8230;]]]></description>
										<content:encoded><![CDATA[
<p class="wp-block-paragraph">Nagios Cross-Platform Agent (NCPA) is a powerful monitoring agent that allows you to monitor systems running on various operating systems, including Linux, Windows, and macOS. NCPA is designed to be lightweight, secure, and easy to configure, making it an excellent choice for monitoring your Fedora 41 workstation.</p>



<p class="wp-block-paragraph">In this article, we will walk you through the steps to install and configure Nagios NCPA on a Fedora 41 workstation.</p>



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



<p class="wp-block-paragraph">Before you begin, ensure that you have the following:</p>



<ul class="wp-block-list">
<li>A Fedora 41 workstation with root or sudo privileges.</li>



<li>Access to a terminal or command-line interface.</li>



<li>An active internet connection to download the necessary packages.</li>
</ul>



<h3 class="wp-block-heading"><strong>Step 1: Update Your System</strong></h3>



<p class="wp-block-paragraph">Before installing any new software, it&#8217;s a good practice to update your system to ensure that all existing packages are up to date with this script:</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"><strong>Step 2: Download and Install NCPA</strong></h3>



<p class="wp-block-paragraph">Nagios NCPA is not available in the default Fedora repositories, so you will need to download it directly from the Nagios website.</p>



<ol class="wp-block-list">
<li><strong>Download the NCPA Package:</strong> Visit the&nbsp;<a href="https://www.nagios.org/projects/ncpa/" target="_blank" rel="noreferrer noopener">Nagios NCPA download page</a>&nbsp;and download the latest version of NCPA for Linux. Alternatively, you can use&nbsp;<strong><code>wget</code>&nbsp;</strong>to download the package directly from the terminal.</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>wget https://assets.nagios.com/downloads/ncpa/ncpa-latest.el8.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">//assets.nagios.com/downloads/ncpa/ncpa-latest.el8.x86_64.rpm</span></span></code></pre></div>



<p class="wp-block-paragraph">          Your screen should look something like the one below after running that <strong>wget </strong>script:</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/02/Fedora-NCPA-Wget-Script.png"><img fetchpriority="high" decoding="async" width="650" height="440" data-id="50601" src="https://library.nagios.com/wp-content/uploads/2025/02/Fedora-NCPA-Wget-Script.png" alt="Fedora NCPA Wget Script" class="wp-image-50601" title="Installing Nagios Cross-Platform Agent on a Fedora 41 Workstation 1" srcset="https://library.nagios.com/wp-content/uploads/2025/02/Fedora-NCPA-Wget-Script.png 650w, https://library.nagios.com/wp-content/uploads/2025/02/Fedora-NCPA-Wget-Script-300x203.png 300w" sizes="(max-width: 650px) 100vw, 650px" /></a><figcaption class="wp-element-caption">Fedora NCPA Wget Script</figcaption></figure>
</figure>



<p class="wp-block-paragraph"></p>



<p class="wp-block-paragraph">        2. <strong>Install the NCPA Package: </strong>Once the download is complete, install the package using the&nbsp;<code>dnf</code>&nbsp;package manager. During the installation, you may be prompted to confirm the installation of the package. Type&nbsp;<code>y</code>&nbsp;and press&nbsp;<code>Enter</code>&nbsp;to proceed.</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-latest.el8.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: #9CDCFE">latest</span><span style="color: #D4D4D4">.</span><span style="color: #9CDCFE">el8</span><span style="color: #D4D4D4">.</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">          During the installation, you may be prompted to confirm the installation of the package. Type&nbsp;<code>y</code>&nbsp;and press&nbsp;<strong><code>Enter</code>&nbsp;</strong>to proceed.</p>



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



<p class="wp-block-paragraph">After installation, you’ll need to configure the NCPA agent. The configuration file is located at: <code>/usr/local/ncpa/etc/ncpa.cfg</code>. To edit the configuration, you can use the script below:</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>



<p class="wp-block-paragraph">Your screen should look similar to the one below after the script:</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-Main-Config-File-2.png"><img decoding="async" width="785" height="458" data-id="50600" src="https://library.nagios.com/wp-content/uploads/2025/02/NCPA-Main-Config-File-2.png" alt="NCPA Main Config File 2" class="wp-image-50600" title="Installing Nagios Cross-Platform Agent on a Fedora 41 Workstation 2" srcset="https://library.nagios.com/wp-content/uploads/2025/02/NCPA-Main-Config-File-2.png 785w, https://library.nagios.com/wp-content/uploads/2025/02/NCPA-Main-Config-File-2-300x175.png 300w, https://library.nagios.com/wp-content/uploads/2025/02/NCPA-Main-Config-File-2-768x448.png 768w" sizes="(max-width: 785px) 100vw, 785px" /></a><figcaption class="wp-element-caption">NCPA Main Config File</figcaption></figure>
</figure>



<p class="wp-block-paragraph"><strong>Set a Password for the NCPA API</strong><br>In the configuration file, look for the API key parameter. This is used to authenticate API requests. You should set a strong password for the API key. It should look like this below:</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-Fedora-API-Comm-String.png"><img decoding="async" width="649" height="437" data-id="50533" src="https://library.nagios.com/wp-content/uploads/2025/02/NCPA-Fedora-API-Comm-String.png" alt="NCPA Fedora API Comm String" class="wp-image-50533" title="Installing Nagios Cross-Platform Agent on a Fedora 41 Workstation 3" srcset="https://library.nagios.com/wp-content/uploads/2025/02/NCPA-Fedora-API-Comm-String.png 649w, https://library.nagios.com/wp-content/uploads/2025/02/NCPA-Fedora-API-Comm-String-300x202.png 300w" sizes="(max-width: 649px) 100vw, 649px" /></a><figcaption class="wp-element-caption">NCPA Fedora API Community String</figcaption></figure>
</figure>



<p class="wp-block-paragraph">The community string token, by default, might have a series of numbers or it might say “my_token”. After making changes 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"><strong>Step 5: Check Firewall &amp; Install/Enable Firewalld/UFW</strong></h3>



<p class="wp-block-paragraph">As of my knowledge cutoff in October 2023, Fedora does not come with&nbsp;<code>ufw</code>&nbsp;(Uncomplicated Firewall) pre-installed, as it typically uses&nbsp;<code>firewalld</code>&nbsp;as its default firewall management tool. However, if you want to use&nbsp;<code>ufw</code>&nbsp;on Fedora 41 Workstation, you would first need to install it and then check its status. For the purpose of this article we will continue with <code>firewalld</code>.</p>



<p class="wp-block-paragraph">To check the status of&nbsp;<code>firewalld</code>&nbsp;on Fedora 41, you can use the following 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>sudo systemctl status firewalld</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">firewalld</span></span></code></pre></div>



<p class="wp-block-paragraph">Your screen should look like this:</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/Fedora-41-Firewall.png"><img loading="lazy" decoding="async" width="1024" height="672" data-id="50569" src="https://library.nagios.com/wp-content/uploads/2025/02/Fedora-41-Firewall-1024x672.png" alt="Fedora 41 Firewall" class="wp-image-50569" title="Installing Nagios Cross-Platform Agent on a Fedora 41 Workstation 4" srcset="https://library.nagios.com/wp-content/uploads/2025/02/Fedora-41-Firewall-1024x672.png 1024w, https://library.nagios.com/wp-content/uploads/2025/02/Fedora-41-Firewall-300x197.png 300w, https://library.nagios.com/wp-content/uploads/2025/02/Fedora-41-Firewall-768x504.png 768w, https://library.nagios.com/wp-content/uploads/2025/02/Fedora-41-Firewall.png 1098w" sizes="(max-width: 1024px) 100vw, 1024px" /></a><figcaption class="wp-element-caption">Fedora 41 Firewall</figcaption></figure>
</figure>



<h3 class="wp-block-heading"><strong>Step 6: Start and Enable the NCPA Service</strong><br></h3>



<p class="wp-block-paragraph">To ensure that NCPA runs automatically at startup, you need to enable and start the service.</p>



<p class="wp-block-paragraph">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_listener</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_listener</span></span></code></pre></div>



<p class="wp-block-paragraph">Enable the service to start on boot:</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_listener</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_listener</span></span></code></pre></div>



<p class="wp-block-paragraph">Verify that the service is 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_listener</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_listener</span></span></code></pre></div>



<p class="wp-block-paragraph">You should see an output indicating that the service is active and running. Your screen should look like this below:</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/Fedora-41-Enable-NCPA-Service-1.png"><img loading="lazy" decoding="async" width="1024" height="381" data-id="50599" src="https://library.nagios.com/wp-content/uploads/2025/02/Fedora-41-Enable-NCPA-Service-1-1024x381.png" alt="Fedora 41 Enable NCPA Service 1" class="wp-image-50599" title="Installing Nagios Cross-Platform Agent on a Fedora 41 Workstation 5" srcset="https://library.nagios.com/wp-content/uploads/2025/02/Fedora-41-Enable-NCPA-Service-1-1024x381.png 1024w, https://library.nagios.com/wp-content/uploads/2025/02/Fedora-41-Enable-NCPA-Service-1-300x111.png 300w, https://library.nagios.com/wp-content/uploads/2025/02/Fedora-41-Enable-NCPA-Service-1-768x285.png 768w, https://library.nagios.com/wp-content/uploads/2025/02/Fedora-41-Enable-NCPA-Service-1.png 1087w" sizes="(max-width: 1024px) 100vw, 1024px" /></a><figcaption class="wp-element-caption">Fedora 41 Enable NCPA Service</figcaption></figure>
</figure>



<h3 class="wp-block-heading"><strong>Step 7: Verify NCPA Installation</strong></h3>



<ol class="wp-block-list">
<li>This step is optional but recommended. Open a web browser and go to:&nbsp;<mark>https://&lt;NCPA_IP_Address&gt;:5693/</mark></li>



<li>You will see the error message below saying that site isn’t safe to continue. Simply click&nbsp;<mark>Advanced</mark>&nbsp;and proceed to the site.</li>



<li>You will then enter the community string API token from earlier in step 4 &amp; click&nbsp;<mark>Log In</mark>. If you have the token proceed to the next step otherwise go back &amp; retrieve it.</li>



<li>Your screen should look like the ones below after completing each step. Click&nbsp;<mark>See Live Stats</mark>&nbsp;to continue then you&#8217;ll be brought to the NCPA Dashboard.</li>
</ol>



<figure class="wp-block-gallery has-nested-images columns-default is-cropped wp-block-gallery-6 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/Web-GUI-Log-In-1.png"><img loading="lazy" decoding="async" width="1024" height="399" data-id="50591" src="https://library.nagios.com/wp-content/uploads/2025/02/Web-GUI-Log-In-1-1024x399.png" alt="Web GUI Log In" class="wp-image-50591" title="Installing Nagios Cross-Platform Agent on a Fedora 41 Workstation 6" srcset="https://library.nagios.com/wp-content/uploads/2025/02/Web-GUI-Log-In-1-1024x399.png 1024w, https://library.nagios.com/wp-content/uploads/2025/02/Web-GUI-Log-In-1-300x117.png 300w, https://library.nagios.com/wp-content/uploads/2025/02/Web-GUI-Log-In-1-768x299.png 768w, https://library.nagios.com/wp-content/uploads/2025/02/Web-GUI-Log-In-1-1536x598.png 1536w, https://library.nagios.com/wp-content/uploads/2025/02/Web-GUI-Log-In-1.png 1900w" sizes="(max-width: 1024px) 100vw, 1024px" /></a><figcaption class="wp-element-caption">Web GUI Log In</figcaption></figure>
</figure>



<figure class="wp-block-gallery has-nested-images columns-default is-cropped wp-block-gallery-7 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-Check-Status-1.png"><img loading="lazy" decoding="async" width="804" height="487" data-id="50578" src="https://library.nagios.com/wp-content/uploads/2025/02/NCPA-Check-Status-1.png" alt="NCPA Check Status 1" class="wp-image-50578" title="Installing Nagios Cross-Platform Agent on a Fedora 41 Workstation 7" srcset="https://library.nagios.com/wp-content/uploads/2025/02/NCPA-Check-Status-1.png 804w, https://library.nagios.com/wp-content/uploads/2025/02/NCPA-Check-Status-1-300x182.png 300w, https://library.nagios.com/wp-content/uploads/2025/02/NCPA-Check-Status-1-768x465.png 768w" sizes="(max-width: 804px) 100vw, 804px" /></a><figcaption class="wp-element-caption">NCPA Check Status</figcaption></figure>
</figure>



<figure class="wp-block-gallery has-nested-images columns-default is-cropped wp-block-gallery-8 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-Dashboard-2.png"><img loading="lazy" decoding="async" width="1024" height="490" data-id="50597" src="https://library.nagios.com/wp-content/uploads/2025/02/NCPA-Dashboard-2-1024x490.png" alt="NCPA Dashboard 2" class="wp-image-50597" title="Installing Nagios Cross-Platform Agent on a Fedora 41 Workstation 8" srcset="https://library.nagios.com/wp-content/uploads/2025/02/NCPA-Dashboard-2-1024x490.png 1024w, https://library.nagios.com/wp-content/uploads/2025/02/NCPA-Dashboard-2-300x144.png 300w, https://library.nagios.com/wp-content/uploads/2025/02/NCPA-Dashboard-2-768x367.png 768w, https://library.nagios.com/wp-content/uploads/2025/02/NCPA-Dashboard-2-1536x735.png 1536w, https://library.nagios.com/wp-content/uploads/2025/02/NCPA-Dashboard-2.png 1906w" sizes="(max-width: 1024px) 100vw, 1024px" /></a><figcaption class="wp-element-caption">NCPA Dashboard</figcaption></figure>
</figure>



<h3 class="wp-block-heading"><strong>Step 9: Configure NCPA on Nagios XI</strong></h3>



<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>



<ol class="wp-block-list">
<li></li>
</ol>



<figure class="wp-block-gallery has-nested-images columns-default is-cropped wp-block-gallery-9 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 loading="lazy" 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 a Fedora 41 Workstation 9" 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-10 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 loading="lazy" 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 a Fedora 41 Workstation 10" 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-11 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 a Fedora 41 Workstation 11" 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-12 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 a Fedora 41 Workstation 12" 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>



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



<p class="wp-block-paragraph">By following these steps, you have successfully installed and configured the Nagios Cross-Platform Agent (NCPA) on your Fedora 41 Workstation. NCPA provides a robust and flexible solution for monitoring your system, and its integration with Nagios XI or Nagios Core makes it an invaluable tool for system administrators.</p>



<p class="wp-block-paragraph">For further customization and advanced usage, refer to the&nbsp;<a href="https://assets.nagios.com/downloads/ncpa/docs/" target="_blank" rel="noreferrer noopener">official NCPA documentation</a>. Happy monitoring!</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>



<p class="wp-block-paragraph"></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">Command Line 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/02/Fedora-41.png" />
			<media:rating scheme="urn:simple">nonadult</media:rating>
		</media:content>
	</item>
	</channel>
</rss>
