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

<channel>
	<title>Arch Linux 2025 &#8211; Nagios Library</title>
	<atom:link href="https://library.nagios.com/tag/arch-linux-2025/feed/" rel="self" type="application/rss+xml" />
	<link>https://library.nagios.com</link>
	<description>Complete Nagios monitoring resources and documentation</description>
	<lastBuildDate>Fri, 13 Feb 2026 21:17:55 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.9.4</generator>

<image>
	<url>https://library.nagios.com/wp-content/uploads/2024/11/Nagios-Blue-N.svg</url>
	<title>Arch Linux 2025 &#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 Arch Linux 2025</title>
		<link>https://library.nagios.com/support-tips/installing-nagios-cross-platform-agent-on-arch-linux-2025/</link>
		
		<dc:creator><![CDATA[Johnny Mengistu]]></dc:creator>
		<pubDate>Fri, 21 Mar 2025 20:50:06 +0000</pubDate>
				<category><![CDATA[Support Tips]]></category>
		<category><![CDATA[Documentation]]></category>
		<category><![CDATA[Arch Linux 2025]]></category>
		<category><![CDATA[Nagios XI]]></category>
		<category><![CDATA[NCPA]]></category>
		<guid isPermaLink="false">https://library.nagios.com/?p=52221</guid>

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



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



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



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



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



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



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



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



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



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



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



<ol class="wp-block-list">
<li><strong>Install necessary dependencies</strong>: First, ensure your system is fully updated, and install the required packages to build NCPA:</li>
</ol>



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



<p>     2. <strong>Clone the NCPA repository</strong>: Clone the official Nagios NCPA repository from GitHub:</p>



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



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



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



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



<p>     4. <strong>Start the NCPA service</strong>: Once installed, you can start the NCPA service:</p>



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



<p>         To enable NCPA to start automatically on boot, use:</p>



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



<p>         You can check the status of the NCPA service by running:</p>



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



<p>     5. <strong>Configure the firewall (if applicable)</strong>: If you are using a firewall, make sure to allow the necessary ports (default is port 5693 for NCPA) to pass through:</p>



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



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



<p>After installing and starting the NCPA service, verify that it&#8217;s running properly by accessing the web interface. Open your browser and visit the following URL (replace <code>&lt;arch-linux-ip&gt;</code> with your actual IP address):</p>



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



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



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



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



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



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



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



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



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



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



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



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



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



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



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



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



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



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



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



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



<li><strong>Additional Arguments</strong>: You can customize the command arguments to match your needs, such as the one below and save the service configuration:</li>
</ul>
</li>
</ol>



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



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



<p class="has-text-align-left">Update the check command in Nagios XI to include this token, like this:</p>



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



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



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



<figure class="wp-block-image size-full"><a href="https://library.nagios.com/wp-content/uploads/2025/03/Config-Wiz.png"><img fetchpriority="high" 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 1" srcset="https://library.nagios.com/wp-content/uploads/2025/03/Config-Wiz.png 808w, https://library.nagios.com/wp-content/uploads/2025/03/Config-Wiz-300x218.png 300w, https://library.nagios.com/wp-content/uploads/2025/03/Config-Wiz-768x559.png 768w" sizes="(max-width: 808px) 100vw, 808px" /></a><figcaption class="wp-element-caption">Config Wiz</figcaption></figure>



<p></p>



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



<p></p>



<figure class="wp-block-image size-large"><a href="https://library.nagios.com/wp-content/uploads/2025/03/NCPA-Config-Wiz.png"><img 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 3" srcset="https://library.nagios.com/wp-content/uploads/2025/03/NCPA-Config-Wiz-1024x563.png 1024w, https://library.nagios.com/wp-content/uploads/2025/03/NCPA-Config-Wiz-300x165.png 300w, https://library.nagios.com/wp-content/uploads/2025/03/NCPA-Config-Wiz-768x422.png 768w, https://library.nagios.com/wp-content/uploads/2025/03/NCPA-Config-Wiz.png 1180w" sizes="(max-width: 1024px) 100vw, 1024px" /></a><figcaption class="wp-element-caption">NCPA Config Wizard</figcaption></figure>



<p></p>



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



<p>Once you&#8217;ve configured the host and services, go back to the Nagios XI dashboard and check the status of the new host and services. If everything is set up correctly, you should begin seeing the system metrics of the Arch Linux machine being reported in real-time. You can also test individual metrics by manually running the NCPA check command from the Nagios XI server:</p>



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



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



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



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



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



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



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



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



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



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



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



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



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



<p></p>
]]></content:encoded>
					
		
		
			</item>
	</channel>
</rss>
