<?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>Nagios XI &#8211; Nagios Library</title>
	<atom:link href="https://library.nagios.com/tag/nagios-xi/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>Nagios XI &#8211; Nagios Library</title>
	<link>https://library.nagios.com</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>Monitoring a Debian 12 Workstation with SNMP</title>
		<link>https://library.nagios.com/documentation/monitoring-a-debian-12-workstation-with-snmp/</link>
		
		<dc:creator><![CDATA[Johnny Mengistu]]></dc:creator>
		<pubDate>Wed, 26 Mar 2025 18:39:03 +0000</pubDate>
				<category><![CDATA[Documentation]]></category>
		<category><![CDATA[Monitoring]]></category>
		<category><![CDATA[Debian 12]]></category>
		<category><![CDATA[Nagios XI]]></category>
		<category><![CDATA[SNMP]]></category>
		<guid isPermaLink="false">https://library.nagios.com/?p=48723</guid>

					<description><![CDATA[Introduction Simple Network Management Protocol (SNMP) is a widely used protocol for monitoring and managing network devices, including servers, routers, switches, and more. It allows systems administrators to gather information on system performance, monitor the health of network devices, and detect faults. In this guide, we&#8217;ll walk through the process of setting up SNMP on [&#8230;]]]></description>
										<content:encoded><![CDATA[
<h3 class="wp-block-heading"><strong>Introduction</strong></h3>



<p>Simple Network Management Protocol (SNMP) is a widely used protocol for monitoring and managing network devices, including servers, routers, switches, and more. It allows systems administrators to gather information on system performance, monitor the health of network devices, and detect faults.</p>



<p>In this guide, we&#8217;ll walk through the process of setting up SNMP on a <strong>Debian 12</strong> server, and then configuring <strong>Nagios XI</strong> to monitor that server&#8217;s health and performance. Nagios XI is a comprehensive IT monitoring solution that allows organizations to monitor their entire infrastructure. We’ll cover the installation of SNMP on Debian 12, configuring the server to allow Nagios XI to access SNMP data, and setting up Nagios XI to receive and visualize this data.</p>



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



<p>Before beginning the setup, ensure the following:</p>



<ul class="wp-block-list">
<li>A working <strong>Debian 12</strong> workstation.</li>



<li><strong>Nagios XI</strong> installed and running. (If you don&#8217;t have Nagios XI installed, you can follow their official documentation to install it.)</li>



<li>Root or <strong>sudo</strong> access to both the Debian 12 server and the Nagios XI interface.</li>
</ul>



<h3 class="wp-block-heading"><strong>1. Setting Up &amp; Installing SNMP on Debian 12</strong></h3>



<p>Debian comes with SNMP packages that can be installed via its package manager, apt. To install SNMP, follow these steps:</p>



<p>Update the system&#8217;s package list:</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>bash

sudo apt update</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">bash</span></span>
<span class="line"></span>
<span class="line"><span style="color: #9CDCFE">sudo</span><span style="color: #D4D4D4"> </span><span style="color: #9CDCFE">apt</span><span style="color: #D4D4D4"> </span><span style="color: #9CDCFE">update</span></span></code></pre></div>



<p>Install the SNMP daemon and utilities:</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 apt install snmpd snmp</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">apt</span><span style="color: #D4D4D4"> </span><span style="color: #9CDCFE">install</span><span style="color: #D4D4D4"> </span><span style="color: #9CDCFE">snmpd</span><span style="color: #D4D4D4"> </span><span style="color: #9CDCFE">snmp</span></span></code></pre></div>



<p>Confirm the installation by checking the version:</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 snmpd -v</textarea></pre><svg xmlns="http://www.w3.org/2000/svg" style="width:24px;height:24px" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2"><path class="with-check" stroke-linecap="round" stroke-linejoin="round" d="M4.5 12.75l6 6 9-13.5"></path><path class="without-check" stroke-linecap="round" stroke-linejoin="round" d="M16.5 8.25V6a2.25 2.25 0 00-2.25-2.25H6A2.25 2.25 0 003.75 6v8.25A2.25 2.25 0 006 16.5h2.25m8.25-8.25H18a2.25 2.25 0 012.25 2.25V18A2.25 2.25 0 0118 20.25h-7.5A2.25 2.25 0 018.25 18v-1.5m8.25-8.25h-6a2.25 2.25 0 00-2.25 2.25v6"></path></svg></span><pre class="shiki dark-plus" style="background-color: #1E1E1E" tabindex="0"><code><span class="line"><span style="color: #9CDCFE">sudo</span><span style="color: #D4D4D4"> </span><span style="color: #9CDCFE">snmpd</span><span style="color: #D4D4D4"> -</span><span style="color: #9CDCFE">v</span></span></code></pre></div>



<h3 class="wp-block-heading"><strong>2. C</strong>reate a New SNMP Config File</h3>



<p>The SNMP service (snmpd) needs to be configured properly to ensure that Nagios XI can query it for the server&#8217;s performance data.</p>



<p>Open the SNMP configuration file in a text editor:</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>bash

sudo nano /etc/snmp/snmpd.conf</textarea></pre><svg xmlns="http://www.w3.org/2000/svg" style="width:24px;height:24px" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2"><path class="with-check" stroke-linecap="round" stroke-linejoin="round" d="M4.5 12.75l6 6 9-13.5"></path><path class="without-check" stroke-linecap="round" stroke-linejoin="round" d="M16.5 8.25V6a2.25 2.25 0 00-2.25-2.25H6A2.25 2.25 0 003.75 6v8.25A2.25 2.25 0 006 16.5h2.25m8.25-8.25H18a2.25 2.25 0 012.25 2.25V18A2.25 2.25 0 0118 20.25h-7.5A2.25 2.25 0 018.25 18v-1.5m8.25-8.25h-6a2.25 2.25 0 00-2.25 2.25v6"></path></svg></span><pre class="shiki dark-plus" style="background-color: #1E1E1E" tabindex="0"><code><span class="line"><span style="color: #9CDCFE">bash</span></span>
<span class="line"></span>
<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">etc</span><span style="color: #D4D4D4">/</span><span style="color: #9CDCFE">snmp</span><span style="color: #D4D4D4">/</span><span style="color: #9CDCFE">snmpd</span><span style="color: #D4D4D4">.</span><span style="color: #9CDCFE">conf</span></span></code></pre></div>



<p>To ensure that SNMP can communicate securely, you&#8217;ll need to define community strings and set up access controls.</p>



<ul class="wp-block-list">
<li><strong>Community String</strong>: The community string works like a password to access SNMP data. It’s recommended to use a secure, unique string.</li>



<li><strong>Access Control</strong>: This defines who can access the SNMP data (usually restricted to local IP addresses for security).</li>
</ul>



<p>Here’s an example configuration:</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>sysLocation    "Your Location"
sysContact     "Your Name &lt;your_email@example.com>"
sysName        "Your System Name"
agentAddress udp:161
rocommunity your_community_string default -V systemonly</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">sysLocation</span><span style="color: #D4D4D4">    </span><span style="color: #CE9178">&quot;Your Location&quot;</span></span>
<span class="line"><span style="color: #9CDCFE">sysContact</span><span style="color: #D4D4D4">     </span><span style="color: #CE9178">&quot;Your Name &lt;your_email@example.com&gt;&quot;</span></span>
<span class="line"><span style="color: #9CDCFE">sysName</span><span style="color: #D4D4D4">        </span><span style="color: #CE9178">&quot;Your System Name&quot;</span></span>
<span class="line"><span style="color: #9CDCFE">agentAddress</span><span style="color: #D4D4D4"> </span><span style="color: #C8C8C8">udp</span><span style="color: #D4D4D4">:</span><span style="color: #B5CEA8">161</span></span>
<span class="line"><span style="color: #9CDCFE">rocommunity</span><span style="color: #D4D4D4"> </span><span style="color: #9CDCFE">your_community_string</span><span style="color: #D4D4D4"> </span><span style="color: #C586C0">default</span><span style="color: #D4D4D4"> -</span><span style="color: #4FC1FF">V</span><span style="color: #D4D4D4"> </span><span style="color: #9CDCFE">systemonly</span></span></code></pre></div>



<ul class="wp-block-list">
<li>Replace YOUR_NAGIOS_IP_ADDRESS with the IP address of your Nagios XI server.</li>
</ul>



<ul class="wp-block-list">
<li>The rocommunity directive allows read-only access to SNMP data, with &#8220;public&#8221; being the community string.</li>
</ul>



<ul class="wp-block-list">
<li>The sysLocation and sysContact fields help provide additional information about the system.</li>
</ul>



<ul class="wp-block-list">
<li>Save and exit the file (Ctrl + X, then Y to confirm, and Enter to save).</li>
</ul>



<h3 class="wp-block-heading"><strong>3. Create a New SNMP Config File</strong></h3>



<p>Restart the SNMP service to apply the changes:</p>



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



<p>Ensure SNMP is running and listening on the correct port (161):</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 snmpd</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">snmpd</span></span></code></pre></div>



<h3 class="wp-block-heading"><strong>4. Test SNMP Configuration</strong></h3>



<p>To test the SNMP service on your Debian 12 server, use the snmpwalk utility. This will help confirm that the SNMP daemon is functioning 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>snmpwalk -v2c -c public localhost</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">snmpwalk</span><span style="color: #D4D4D4"> -</span><span style="color: #9CDCFE">v2c</span><span style="color: #D4D4D4"> -</span><span style="color: #9CDCFE">c</span><span style="color: #D4D4D4"> </span><span style="color: #9CDCFE">public</span><span style="color: #D4D4D4"> </span><span style="color: #9CDCFE">localhost</span></span></code></pre></div>



<p>If everything is configured correctly, you should see a long list of SNMP data, including system information, CPU stats, memory usage, and more.</p>



<h3 class="wp-block-heading"><strong>5. Configuring Nagios XI to Monitor the Debian 12 Server</strong></h3>



<p>Now that SNMP is properly set up on your Debian 12 server, the next step is to configure Nagios XI to monitor it.</p>



<p><strong>Access the Nagios XI Web Interface</strong></p>



<ol start="1" class="wp-block-list">
<li>Open your web browser and navigate to the Nagios XI interface. </li>



<li>Log in using your administrator credentials.</li>



<li>Once you are in, hover your mouse over the gear icon to the far left and select the &#8220;Configuration Wizards option. Your screen should look like mine below once you have completed this.</li>
</ol>



<figure class="wp-block-image size-large"><a href="https://library.nagios.com/wp-content/uploads/2025/02/NCPA-Config-Wizards.png"><img fetchpriority="high" decoding="async" width="1024" height="524" src="https://library.nagios.com/wp-content/uploads/2025/02/NCPA-Config-Wizards-1024x524.png" alt="NCPA Config Wizards" class="wp-image-49582" title="Monitoring a Debian 12 Workstation with SNMP 1" srcset="https://library.nagios.com/wp-content/uploads/2025/02/NCPA-Config-Wizards-1024x524.png 1024w, https://library.nagios.com/wp-content/uploads/2025/02/NCPA-Config-Wizards-300x154.png 300w, https://library.nagios.com/wp-content/uploads/2025/02/NCPA-Config-Wizards-768x393.png 768w, https://library.nagios.com/wp-content/uploads/2025/02/NCPA-Config-Wizards-1536x786.png 1536w, https://library.nagios.com/wp-content/uploads/2025/02/NCPA-Config-Wizards.png 1905w" sizes="(max-width: 1024px) 100vw, 1024px" /></a><figcaption class="wp-element-caption">Configuration Wizards</figcaption></figure>



<p>     4. In the search field type &#8220;SNMP&#8221; and select the &#8220;Linux SNMP&#8221; option shown below.</p>



<figure class="wp-block-image size-large"><a href="https://library.nagios.com/wp-content/uploads/2025/04/Linux-SNMP-Wiz.png"><img decoding="async" width="1024" height="408" src="https://library.nagios.com/wp-content/uploads/2025/04/Linux-SNMP-Wiz-1024x408.png" alt="Linux SNMP Wiz" class="wp-image-54196" title="Monitoring a Debian 12 Workstation with SNMP 2" srcset="https://library.nagios.com/wp-content/uploads/2025/04/Linux-SNMP-Wiz-1024x408.png 1024w, https://library.nagios.com/wp-content/uploads/2025/04/Linux-SNMP-Wiz-300x119.png 300w, https://library.nagios.com/wp-content/uploads/2025/04/Linux-SNMP-Wiz-768x306.png 768w, https://library.nagios.com/wp-content/uploads/2025/04/Linux-SNMP-Wiz-1536x612.png 1536w, https://library.nagios.com/wp-content/uploads/2025/04/Linux-SNMP-Wiz.png 1914w" sizes="(max-width: 1024px) 100vw, 1024px" /></a><figcaption class="wp-element-caption">Linux SNMP</figcaption></figure>



<p>5. Then fill in the necessary information, like in the photo below, such as Debian 11 ip address and the SNMP community string. Hit &#8220;finish&#8221; or &#8220;finish with defaults&#8221; at the end and you should be good to go.</p>



<figure class="wp-block-image size-large"><a href="https://library.nagios.com/wp-content/uploads/2025/04/Linux-SNMP-Config-Wiz.png"><img decoding="async" width="1024" height="424" src="https://library.nagios.com/wp-content/uploads/2025/04/Linux-SNMP-Config-Wiz-1024x424.png" alt="Linux SNMP Config Wiz" class="wp-image-54198" title="Monitoring a Debian 12 Workstation with SNMP 3" srcset="https://library.nagios.com/wp-content/uploads/2025/04/Linux-SNMP-Config-Wiz-1024x424.png 1024w, https://library.nagios.com/wp-content/uploads/2025/04/Linux-SNMP-Config-Wiz-300x124.png 300w, https://library.nagios.com/wp-content/uploads/2025/04/Linux-SNMP-Config-Wiz-768x318.png 768w, https://library.nagios.com/wp-content/uploads/2025/04/Linux-SNMP-Config-Wiz-1536x636.png 1536w, https://library.nagios.com/wp-content/uploads/2025/04/Linux-SNMP-Config-Wiz.png 1907w" sizes="(max-width: 1024px) 100vw, 1024px" /></a><figcaption class="wp-element-caption">Linux SNMP Configuration Wizard</figcaption></figure>



<h3 class="wp-block-heading"><strong>6. Test the Configuration</strong></h3>



<p>Once you’ve added the services, it’s a good idea to verify that Nagios XI can successfully query your Debian 12 server using SNMP.</p>



<ol start="1" class="wp-block-list">
<li>Go back to the Nagios XI dashboard.</li>



<li>Check if the new services are showing up and updating correctly.</li>



<li>If there’s an issue, check the logs in Nagios XI (<code>/usr/local/nagios/var/nagios.log</code>) and SNMP daemon logs (<code>/var/log/syslog</code>) for troubleshooting.</li>
</ol>



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



<p>By following the steps outlined above, you can successfully set up SNMP on your <strong>Debian 12</strong> server and integrate it with <strong>Nagios XI</strong> for comprehensive monitoring. This setup will allow you to track important server metrics such as CPU load, memory usage, and disk space, and get alerted when there are performance issues or failures.</p>



<p>With SNMP monitoring in place, you’ll gain more visibility into the health of your Debian server and be able to take action quickly to maintain a stable, high-performance environment.</p>



<h2 class="wp-block-heading" id="section-12"><strong>Additional Resources</strong></h2>



<p>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>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>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>
					
		
		
			</item>
		<item>
		<title>Installing Nagios Cross-Platform Agent on Arch Linux 2025</title>
		<link>https://library.nagios.com/support-tips/installing-nagios-cross-platform-agent-on-arch-linux-2025/</link>
		
		<dc:creator><![CDATA[Johnny Mengistu]]></dc:creator>
		<pubDate>Fri, 21 Mar 2025 20:50:06 +0000</pubDate>
				<category><![CDATA[Support Tips]]></category>
		<category><![CDATA[Documentation]]></category>
		<category><![CDATA[Arch Linux 2025]]></category>
		<category><![CDATA[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 loading="lazy" decoding="async" width="808" height="588" src="https://library.nagios.com/wp-content/uploads/2025/03/Config-Wiz.png" alt="Config Wiz" class="wp-image-53035" title="Installing Nagios Cross-Platform Agent on Arch Linux 2025 4" 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 loading="lazy" decoding="async" width="1024" height="517" src="https://library.nagios.com/wp-content/uploads/2025/03/Wizards-1-1024x517.png" alt="Wizards 1" class="wp-image-53037" title="Installing Nagios Cross-Platform Agent on Arch Linux 2025 5" 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 loading="lazy" decoding="async" width="1024" height="563" src="https://library.nagios.com/wp-content/uploads/2025/03/NCPA-Config-Wiz-1024x563.png" alt="NCPA Config Wiz" class="wp-image-53038" title="Installing Nagios Cross-Platform Agent on Arch Linux 2025 6" 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>
