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

<channel>
	<title>Johnny Mengistu &#8211; Nagios Library</title>
	<atom:link href="https://library.nagios.com/author/jmengistu/feed/" rel="self" type="application/rss+xml" />
	<link>https://library.nagios.com</link>
	<description>Complete Nagios monitoring resources and documentation</description>
	<lastBuildDate>Tue, 13 Oct 2026 21:02:27 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=7.1.5</generator>

<image>
	<url>https://library.nagios.com/wp-content/uploads/2024/11/Nagios-Blue-N.svg</url>
	<title>Johnny Mengistu &#8211; Nagios Library</title>
	<link>https://library.nagios.com</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>How to Configure SNMP on a Debian 9 Workstation for Nagios XI</title>
		<link>https://library.nagios.com/documentation/how-to-configure-snmp-on-a-debian-9-workstation-for-nagios-xi/</link>
		
		<dc:creator><![CDATA[Johnny Mengistu]]></dc:creator>
		<pubDate>Thu, 27 Mar 2025 20:47:05 +0000</pubDate>
				<category><![CDATA[Documentation]]></category>
		<category><![CDATA[Monitoring]]></category>
		<category><![CDATA[Solutions]]></category>
		<category><![CDATA[Debian 9]]></category>
		<category><![CDATA[SNMP]]></category>
		<guid isPermaLink="false">https://library.nagios.com/?p=53531</guid>

					<description><![CDATA[Simple Network Management Protocol (SNMP) is a widely used protocol for monitoring and managing network devices such as routers, switches, servers, and workstations. If you’re using Nagios XI, an advanced monitoring system, integrating SNMP will allow you to monitor your Debian 9 workstation&#8217;s health, performance, and status. This guide will walk you through the steps [&#8230;]]]></description>
										<content:encoded><![CDATA[
<p class="wp-block-paragraph">Simple Network Management Protocol (SNMP) is a widely used protocol for monitoring and managing network devices such as routers, switches, servers, and workstations. If you’re using Nagios XI, an advanced monitoring system, integrating SNMP will allow you to monitor your Debian 9 workstation&#8217;s health, performance, and status.</p>



<p class="wp-block-paragraph">This guide will walk you through the steps to install SNMP on a Debian 9 workstation and configure it for monitoring with Nagios XI.</p>



<h2 class="wp-block-heading">Step 1: Install SNMP on Debian 9</h2>



<p class="wp-block-paragraph">To begin monitoring your Debian workstation using SNMP, you need to install and configure the SNMP agent on it. Here&#8217;s how you can do that:</p>



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



<p class="wp-block-paragraph">Before installing SNMP, it’s a good idea to update your Debian system to ensure you have the latest security patches and updates.</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 &amp;&amp; sudo apt upgrade -y</textarea></pre><svg xmlns="http://www.w3.org/2000/svg" style="width:24px;height:24px" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2"><path class="with-check" stroke-linecap="round" stroke-linejoin="round" d="M4.5 12.75l6 6 9-13.5"></path><path class="without-check" stroke-linecap="round" stroke-linejoin="round" d="M16.5 8.25V6a2.25 2.25 0 00-2.25-2.25H6A2.25 2.25 0 003.75 6v8.25A2.25 2.25 0 006 16.5h2.25m8.25-8.25H18a2.25 2.25 0 012.25 2.25V18A2.25 2.25 0 0118 20.25h-7.5A2.25 2.25 0 018.25 18v-1.5m8.25-8.25h-6a2.25 2.25 0 00-2.25 2.25v6"></path></svg></span><pre class="shiki dark-plus" style="background-color: #1E1E1E" tabindex="0"><code><span class="line"><span style="color: #9CDCFE">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 style="color: #D4D4D4"> &amp;&amp; </span><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">upgrade</span><span style="color: #D4D4D4"> -</span><span style="color: #9CDCFE">y</span></span></code></pre></div>



<h3 class="wp-block-heading">1.2 Install SNMP and SNMP Daemon</h3>



<p class="wp-block-paragraph">Debian 9 comes with the <code>snmpd</code> (SNMP daemon) package in its default repositories. You can install it with the following command:</p>



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

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



<ul class="wp-block-list">
<li><code>snmpd</code>: The SNMP daemon.</li>



<li><code>snmp</code>: The SNMP client tools, used for testing SNMP functionality.</li>
</ul>



<h3 class="wp-block-heading">1.3 Start and Enable SNMP Daemon</h3>



<p class="wp-block-paragraph">Once the installation is complete, you need to start the SNMP service and ensure it starts automatically on boot.</p>



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

sudo systemctl start snmpd
sudo systemctl enable 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">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">systemctl</span><span style="color: #D4D4D4"> </span><span style="color: #9CDCFE">start</span><span style="color: #D4D4D4"> </span><span style="color: #9CDCFE">snmpd</span></span>
<span class="line"><span style="color: #9CDCFE">sudo</span><span style="color: #D4D4D4"> </span><span style="color: #9CDCFE">systemctl</span><span style="color: #D4D4D4"> </span><span style="color: #9CDCFE">enable</span><span style="color: #D4D4D4"> </span><span style="color: #9CDCFE">snmpd</span></span></code></pre></div>



<h3 class="wp-block-heading">1.4 Check SNMP Service Status</h3>



<p class="wp-block-paragraph">Ensure that the SNMP daemon is running and active:</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 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">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">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>



<p class="wp-block-paragraph">If everything is set up correctly, you should see output indicating that the SNMP service is active and running.</p>



<h2 class="wp-block-heading">Step 2: Configure SNMP Daemon</h2>



<p class="wp-block-paragraph">By default, the SNMP daemon configuration file on Debian is located at <code>/etc/snmp/snmpd.conf</code>. To customize the SNMP configuration for your environment, you need to edit this file.</p>



<h3 class="wp-block-heading">2.1 Backup Configuration File</h3>



<p class="wp-block-paragraph">Before making changes, it’s always a good idea to back up the configuration file.</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 cp /etc/snmp/snmpd.conf /etc/snmp/snmpd.conf.bak</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">cp</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 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 style="color: #D4D4D4">.</span><span style="color: #9CDCFE">bak</span></span></code></pre></div>



<h3 class="wp-block-heading">2.2 Edit SNMP Configuration</h3>



<p class="wp-block-paragraph">To edit the SNMP configuration, use a text editor such as <code>nano</code>:</p>



<div class="wp-block-kevinbatdorf-code-block-pro" data-code-block-pro-font-family="Code-Pro-Geist-Mono" style="font-size:.875rem;font-family:Code-Pro-Geist-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:1.5rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)"><span role="button" tabindex="0" style="color:#D4D4D4;display:none" aria-label="Copy" class="code-block-pro-copy-button"><pre class="code-block-pro-copy-button-pre" aria-hidden="true"><textarea class="code-block-pro-copy-button-textarea" tabindex="-1" aria-hidden="true" readonly>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 class="wp-block-paragraph">You&#8217;ll need to modify the configuration file to ensure SNMP works correctly with Nagios XI. The most common change involves setting the <strong>community string</strong>, which acts as the password for SNMP access.</p>



<ul class="wp-block-list">
<li><strong>Set the community string</strong>: A typical configuration for community strings looks like this: </li>
</ul>



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

rocommunity public</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">rocommunity</span><span style="color: #D4D4D4"> </span><span style="color: #9CDCFE">public</span></span></code></pre></div>



<p class="wp-block-paragraph">   This allows read-only access to SNMP data. You can replace <code>"public"</code> with any string you want</p>



<ul class="wp-block-list">
<li><strong>Set allowed IPs</strong>: You can restrict SNMP access to specific IP addresses for security reasons. To allow access from Nagios XI server, specify the IP address:</li>
</ul>



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

rocommunity public 192.168.1.100</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">rocommunity</span><span style="color: #D4D4D4"> </span><span style="color: #9CDCFE">public</span><span style="color: #D4D4D4"> </span><span style="color: #B5CEA8">192.168</span><span style="color: #D4D4D4">.</span><span style="color: #B5CEA8">1.100</span></span></code></pre></div>



<p class="wp-block-paragraph">  Replace <code>192.168.1.100</code> with the IP address of your Nagios XI server.</p>



<ul class="wp-block-list">
<li><strong>Allow SNMP access on all interfaces</strong>: By default, SNMP listens on localhost. If you want SNMP to listen on all network interfaces, you need to change the <code>agentAddress</code> line in the configuration file. Uncomment and modify the line to:</li>
</ul>



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

agentAddress udp:161,udp6:&#91;::1&#93;:161</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">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 style="color: #D4D4D4">,</span><span style="color: #C8C8C8">udp6</span><span style="color: #D4D4D4">:&#91;::</span><span style="color: #B5CEA8">1</span><span style="color: #D4D4D4">&#93;:</span><span style="color: #B5CEA8">161</span></span></code></pre></div>



<p class="wp-block-paragraph"> This ensures SNMP listens for both IPv4 and IPv6 requests on port <code>161</code>.</p>



<h3 class="wp-block-heading">2.3 Restart SNMP Service</h3>



<p class="wp-block-paragraph">After saving the configuration, restart the SNMP daemon for the changes to take effect:</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 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">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">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>



<h3 class="wp-block-heading">2.4 Verify SNMP Configuration</h3>



<p class="wp-block-paragraph">To verify that SNMP is configured correctly and the service is accessible, you can use the <code>snmpwalk</code> command (installed earlier as part of the <code>snmp</code> package) to query the SNMP daemon:</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

snmpwalk -v 2c -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">bash</span></span>
<span class="line"></span>
<span class="line"><span style="color: #9CDCFE">snmpwalk</span><span style="color: #D4D4D4"> -</span><span style="color: #9CDCFE">v</span><span style="color: #D4D4D4"> 2</span><span style="color: #9CDCFE">c</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 class="wp-block-paragraph">If everything is set up properly, you should receive a response with a large number of SNMP OID values, which indicates that the SNMP service is responding.</p>



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



<p class="wp-block-paragraph">1. Log into Nagios XI , hover over the gear icon and select &#8220;Configuration Wizards&#8221;.</p>



<figure class="wp-block-image size-full"><a href="https://library.nagios.com/wp-content/uploads/2025/03/Config-Wiz-1.png"><img fetchpriority="high" decoding="async" width="808" height="588" src="https://library.nagios.com/wp-content/uploads/2025/03/Config-Wiz-1.png" alt="Config Wiz 1" class="wp-image-53056" title="How to Configure SNMP on a Debian 9 Workstation for Nagios XI 1" srcset="https://library.nagios.com/wp-content/uploads/2025/03/Config-Wiz-1.png 808w, https://library.nagios.com/wp-content/uploads/2025/03/Config-Wiz-1-300x218.png 300w, https://library.nagios.com/wp-content/uploads/2025/03/Config-Wiz-1-768x559.png 768w" sizes="(max-width: 808px) 100vw, 808px" /></a><figcaption class="wp-element-caption">Config Wizards</figcaption></figure>



<p class="wp-block-paragraph">2. Search &#8220;SNMP&#8221; in the search box above and select the Linux SNMP option shown in the picture below.</p>



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



<p class="wp-block-paragraph">3. Fill in the necessary information then hit finish at the end or &#8220;finish with defaults&#8221;</p>



<figure class="wp-block-image size-large"><a href="https://library.nagios.com/wp-content/uploads/2025/03/Linux-Config-Wiz.png"><img decoding="async" width="1024" height="397" src="https://library.nagios.com/wp-content/uploads/2025/03/Linux-Config-Wiz-1024x397.png" alt="Linux Config Wiz" class="wp-image-53059" title="How to Configure SNMP on a Debian 9 Workstation for Nagios XI 3" srcset="https://library.nagios.com/wp-content/uploads/2025/03/Linux-Config-Wiz-1024x397.png 1024w, https://library.nagios.com/wp-content/uploads/2025/03/Linux-Config-Wiz-300x116.png 300w, https://library.nagios.com/wp-content/uploads/2025/03/Linux-Config-Wiz-768x297.png 768w, https://library.nagios.com/wp-content/uploads/2025/03/Linux-Config-Wiz-1536x595.png 1536w, https://library.nagios.com/wp-content/uploads/2025/03/Linux-Config-Wiz.png 1898w" sizes="(max-width: 1024px) 100vw, 1024px" /></a><figcaption class="wp-element-caption">Linux Config Wiz</figcaption></figure>



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



<p class="wp-block-paragraph">By following these steps, you’ve successfully installed and configured SNMP on your Debian 9 workstation and integrated it with Nagios XI for effective monitoring. SNMP provides valuable insights into your system’s performance, and using Nagios XI allows you to visualize, alert, and manage these metrics efficiently. Remember to adjust your SNMP community strings and access settings for security and best practices, especially in production environments.</p>



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



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



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



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



<p class="wp-block-paragraph">You can also download the plugin from <a class="" href="https://github.com/nagios-plugins/nagios-plugins" target="_blank" rel="noopener">Nagios Plugins GitHub</a></p>



<p class="wp-block-paragraph"></p>
]]></content:encoded>
					
		
		
		<media:content url="https://www.youtube.com/embed/redir_token" medium="video">
			<media:player url="https://www.youtube.com/embed/redir_token" />
			<media:title type="plain">How to Configure SNMP on a Debian 9 Workstation for Nagios XI - Nagios Library</media:title>
			<media:description type="html"><![CDATA[Enjoy the videos and music you love, upload original content, and share it all with friends, family, and the world on YouTube.]]></media:description>
			<media:thumbnail url="https://library.nagios.com/wp-content/uploads/2025/03/centos-stream-9-1-1.png" />
			<media:rating scheme="urn:simple">nonadult</media:rating>
		</media:content>
	</item>
		<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[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 class="wp-block-paragraph">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 class="wp-block-paragraph">In this guide, we&#8217;ll walk through the process of setting up SNMP on a Debian 12 server, and then configuring Nagios XI 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 class="wp-block-paragraph">Before beginning the setup, ensure the following:</p>



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



<li>Nagios XI installed and running. (If you don&#8217;t have Nagios XI installed, you can <a href="https://library.nagios.com/docs/nagios-xi/getting-started/1.-How-To-Install-Nagios-XI" target="_blank" rel="noreferrer noopener">check out our resources</a>.)</li>



<li>Root or sudo 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 class="wp-block-paragraph">Debian comes with SNMP packages that can be installed via its package manager, apt. To install SNMP, follow these steps:</p>



<p class="wp-block-paragraph">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 class="wp-block-paragraph">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 class="wp-block-paragraph">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 class="wp-block-paragraph">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 class="wp-block-paragraph">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 class="wp-block-paragraph">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 class="wp-block-paragraph">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 class="wp-block-paragraph">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 class="wp-block-paragraph">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 class="wp-block-paragraph">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 class="wp-block-paragraph">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 class="wp-block-paragraph">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 class="wp-block-paragraph"><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 loading="lazy" decoding="async" width="1024" height="524" src="https://library.nagios.com/wp-content/uploads/2025/02/NCPA-Config-Wizards-1024x524.png" alt="Screenshot of Nagios XI Configuration Wizards." class="wp-image-49582" title="Monitoring a Debian 12 Workstation with SNMP 4" 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 class="wp-block-paragraph">     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 loading="lazy" decoding="async" width="1024" height="408" src="https://library.nagios.com/wp-content/uploads/2025/04/Linux-SNMP-Wiz-1024x408.png" alt="Screenshot of Nagios XI Linux SNMP Wizard." class="wp-image-54196" title="Monitoring a Debian 12 Workstation with SNMP 5" 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 class="wp-block-paragraph">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 loading="lazy" decoding="async" width="1024" height="424" src="https://library.nagios.com/wp-content/uploads/2025/04/Linux-SNMP-Config-Wiz-1024x424.png" alt="Screenshot of Nagios XI Linux SNMP Wizard setup steps." class="wp-image-54198" title="Monitoring a Debian 12 Workstation with SNMP 6" 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 class="wp-block-paragraph">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 class="wp-block-paragraph">By following the steps outlined above, you can successfully set up SNMP on your Debian 12 server and integrate it with Nagios XI 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 class="wp-block-paragraph">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>



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



<p class="wp-block-paragraph"><a href="https://www.nagios.org/projects/ncpa/" target="_blank" rel="noreferrer noopener">Learn More About NCPA</a></p>



<p class="wp-block-paragraph"><a href="https://support.nagios.com/forum" target="_blank" rel="noreferrer noopener">Visit Nagios Support Forum</a></p>



<p class="wp-block-paragraph"><a href="https://exchange.nagios.org/" target="_blank" rel="noreferrer noopener">Visit Nagios Exchange</a></p>



<p class="wp-block-paragraph"><a href="https://library.nagios.com/docs" target="_blank" rel="noreferrer noopener">Visit Nagios Documentation Hub</a></p>



<p class="wp-block-paragraph"></p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>How to Forward Fedora 41 Logs to Nagios Log Server 2024R2</title>
		<link>https://library.nagios.com/techtips/how-to-forward-fedora-41-logs-to-nagios-log-server-2024r2/</link>
		
		<dc:creator><![CDATA[Johnny Mengistu]]></dc:creator>
		<pubDate>Wed, 26 Mar 2025 15:46:28 +0000</pubDate>
				<category><![CDATA[Techtips]]></category>
		<category><![CDATA[Documentation]]></category>
		<category><![CDATA[Fedora 41]]></category>
		<guid isPermaLink="false">https://library.nagios.com/?p=52151</guid>

					<description><![CDATA[Introduction Nagios Log Server is a powerful enterprise-grade log monitoring and management solution that enables organizations to collect, analyze, and archive log data from various sources. In this guide, we&#8217;ll walk through the process of configuring Fedora 41 to send its system logs to Nagios Log Server R2. Prerequisites Before beginning, ensure you have: Step [&#8230;]]]></description>
										<content:encoded><![CDATA[
<p class="wp-block-paragraph">Introduction</p>



<p class="wp-block-paragraph">Nagios Log Server is a powerful enterprise-grade log monitoring and management solution that enables organizations to collect, analyze, and archive log data from various sources. In this guide, we&#8217;ll walk through the process of configuring Fedora 41 to send its system logs to Nagios Log Server R2.</p>



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



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



<ul class="wp-block-list">
<li>A running Fedora 41 system</li>



<li>Nagios Log Server R2 installed and accessible</li>



<li>Administrative privileges on both systems</li>



<li>Network connectivity between the Fedora system and Nagios Log Server</li>
</ul>



<h2 class="wp-block-heading">Step 1: Install Required Packages on Fedora 41</h2>



<p class="wp-block-paragraph">First, update your system and install the necessary packages:</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 dnf update -y
sudo dnf install -y rsyslog wget</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">dnf</span><span style="color: #D4D4D4"> </span><span style="color: #9CDCFE">update</span><span style="color: #D4D4D4"> -</span><span style="color: #9CDCFE">y</span></span>
<span class="line"><span style="color: #9CDCFE">sudo</span><span style="color: #D4D4D4"> </span><span style="color: #9CDCFE">dnf</span><span style="color: #D4D4D4"> </span><span style="color: #9CDCFE">install</span><span style="color: #D4D4D4"> -</span><span style="color: #9CDCFE">y</span><span style="color: #D4D4D4"> </span><span style="color: #9CDCFE">rsyslog</span><span style="color: #D4D4D4"> </span><span style="color: #9CDCFE">wget</span></span></code></pre></div>



<h2 class="wp-block-heading">Step 2: Configure Rsyslog to Forward Logs</h2>



<h3 class="wp-block-heading">2.1. Edit the Rsyslog Configuration File</h3>



<p class="wp-block-paragraph">Open the main rsyslog configuration file:</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/rsyslog.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">rsyslog</span><span style="color: #D4D4D4">.</span><span style="color: #9CDCFE">conf</span></span></code></pre></div>



<p class="wp-block-paragraph">Add the following lines at the end of the file (replace&nbsp;<code>nagios_log_server_ip</code>&nbsp;with your actual Nagios Log Server 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># Send logs to Nagios Log Server
*.* @@nagios_log_server_ip:5544</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">Send</span><span style="color: #D4D4D4"> </span><span style="color: #9CDCFE">logs</span><span style="color: #D4D4D4"> </span><span style="color: #9CDCFE">to</span><span style="color: #D4D4D4"> </span><span style="color: #9CDCFE">Nagios</span><span style="color: #D4D4D4"> </span><span style="color: #9CDCFE">Log</span><span style="color: #D4D4D4"> </span><span style="color: #9CDCFE">Server</span></span>
<span class="line"><span style="color: #D4D4D4">*.* @@</span><span style="color: #9CDCFE">nagios_log_server_ip</span><span style="color: #D4D4D4">:</span><span style="color: #B5CEA8">5544</span></span></code></pre></div>



<p class="wp-block-paragraph">This configuration sends all logs (<code>*.*</code>) to the Nagios Log Server on port 5544 using TCP (<code>@@</code>). For UDP, use a single&nbsp;<code>@</code>.</p>



<h3 class="wp-block-heading">2.2. Enable TCP Syslog Reception (Optional)</h3>



<p class="wp-block-paragraph">If you want to ensure TCP is enabled for sending logs, uncomment these lines in the same file:</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>$ModLoad imtcp
$InputTCPServerRun 514</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">$ModLoad</span><span style="color: #D4D4D4"> </span><span style="color: #9CDCFE">imtcp</span></span>
<span class="line"><span style="color: #9CDCFE">$InputTCPServerRun</span><span style="color: #D4D4D4"> </span><span style="color: #B5CEA8">514</span></span></code></pre></div>



<h3 class="wp-block-heading">2.3. Restart Rsyslog Service</h3>



<p class="wp-block-paragraph">Apply the changes by restarting the rsyslog 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>bash

sudo systemctl restart rsyslog
sudo systemctl enable rsyslog</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">systemctl</span><span style="color: #D4D4D4"> </span><span style="color: #9CDCFE">restart</span><span style="color: #D4D4D4"> </span><span style="color: #9CDCFE">rsyslog</span></span>
<span class="line"><span style="color: #9CDCFE">sudo</span><span style="color: #D4D4D4"> </span><span style="color: #9CDCFE">systemctl</span><span style="color: #D4D4D4"> </span><span style="color: #9CDCFE">enable</span><span style="color: #D4D4D4"> </span><span style="color: #9CDCFE">rsyslog</span></span></code></pre></div>



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



<p class="wp-block-paragraph">Allow outgoing connections to the Nagios Log 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>bash

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



<h2 class="wp-block-heading">Step 5: Verify Log Forwarding</h2>



<h3 class="wp-block-heading">5.1. On Fedora 41</h3>



<p class="wp-block-paragraph">Check the rsyslog status:</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 systemctl status rsyslog</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">systemctl</span><span style="color: #D4D4D4"> </span><span style="color: #9CDCFE">status</span><span style="color: #D4D4D4"> </span><span style="color: #9CDCFE">rsyslog</span></span></code></pre></div>



<p class="wp-block-paragraph">View the rsyslog logs for any errors:</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 tail -f /var/log/messages</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">tail</span><span style="color: #D4D4D4"> -</span><span style="color: #9CDCFE">f</span><span style="color: #D4D4D4"> /</span><span style="color: #569CD6">var</span><span style="color: #D4D4D4">/</span><span style="color: #9CDCFE">log</span><span style="color: #D4D4D4">/messages</span></span></code></pre></div>



<h3 class="wp-block-heading">5.2. On Nagios Log Server</h3>



<p class="wp-block-paragraph">1. When you log into Log Server 2 you should be automatically re-directed to the home screen. If not you simply click the home button icon shown below:</p>



<figure class="wp-block-image size-large"><a href="https://library.nagios.com/wp-content/uploads/2025/03/image-12.png"><img loading="lazy" decoding="async" width="1024" height="592" src="https://library.nagios.com/wp-content/uploads/2025/03/image-12-1024x592.png" alt="image 12" class="wp-image-53307" title="How to Forward Fedora 41 Logs to Nagios Log Server 2024R2 7" srcset="https://library.nagios.com/wp-content/uploads/2025/03/image-12-1024x592.png 1024w, https://library.nagios.com/wp-content/uploads/2025/03/image-12-300x173.png 300w, https://library.nagios.com/wp-content/uploads/2025/03/image-12-768x444.png 768w, https://library.nagios.com/wp-content/uploads/2025/03/image-12-1536x887.png 1536w, https://library.nagios.com/wp-content/uploads/2025/03/image-12.png 1897w" sizes="(max-width: 1024px) 100vw, 1024px" /></a><figcaption class="wp-element-caption">Home Button Log Server 2</figcaption></figure>



<p class="wp-block-paragraph">2. From here you can click the &#8220;Add a Log Source&#8221; button up above like in the picture below:</p>



<figure class="wp-block-image size-large"><a href="https://library.nagios.com/wp-content/uploads/2025/03/image-13.png"><img loading="lazy" decoding="async" width="1024" height="551" src="https://library.nagios.com/wp-content/uploads/2025/03/image-13-1024x551.png" alt="image 13" class="wp-image-53309" title="How to Forward Fedora 41 Logs to Nagios Log Server 2024R2 8" srcset="https://library.nagios.com/wp-content/uploads/2025/03/image-13-1024x551.png 1024w, https://library.nagios.com/wp-content/uploads/2025/03/image-13-300x161.png 300w, https://library.nagios.com/wp-content/uploads/2025/03/image-13-768x413.png 768w, https://library.nagios.com/wp-content/uploads/2025/03/image-13-1536x827.png 1536w, https://library.nagios.com/wp-content/uploads/2025/03/image-13.png 1903w" sizes="(max-width: 1024px) 100vw, 1024px" /></a><figcaption class="wp-element-caption">Add a Log Source</figcaption></figure>



<p class="wp-block-paragraph">3. Your screen should now look like the one below. Go and select the &#8220;Linux&#8221; option</p>



<figure class="wp-block-image size-large"><a href="https://library.nagios.com/wp-content/uploads/2025/03/image-14.png"><img loading="lazy" decoding="async" width="1024" height="554" src="https://library.nagios.com/wp-content/uploads/2025/03/image-14-1024x554.png" alt="image 14" class="wp-image-53310" title="How to Forward Fedora 41 Logs to Nagios Log Server 2024R2 9" srcset="https://library.nagios.com/wp-content/uploads/2025/03/image-14-1024x554.png 1024w, https://library.nagios.com/wp-content/uploads/2025/03/image-14-300x162.png 300w, https://library.nagios.com/wp-content/uploads/2025/03/image-14-768x415.png 768w, https://library.nagios.com/wp-content/uploads/2025/03/image-14-1536x830.png 1536w, https://library.nagios.com/wp-content/uploads/2025/03/image-14.png 1894w" sizes="(max-width: 1024px) 100vw, 1024px" /></a><figcaption class="wp-element-caption">Linux Penguin LS2</figcaption></figure>



<p class="wp-block-paragraph">4. From here follow the directions on the screen then enter your Fedora workstation&#8217;s IP address at the very bottom. You should get similar results like the one below saying:</p>



<p class="wp-block-paragraph">&#8220;Verified. There are <em>&#8220;some number&#8221;</em> logs for the host: <em>&#8220;your ip address&#8221;</em></p>



<figure class="wp-block-image size-large"><a href="https://library.nagios.com/wp-content/uploads/2025/03/image-15.png"><img loading="lazy" decoding="async" width="1024" height="526" src="https://library.nagios.com/wp-content/uploads/2025/03/image-15-1024x526.png" alt="image 15" class="wp-image-53324" title="How to Forward Fedora 41 Logs to Nagios Log Server 2024R2 10" srcset="https://library.nagios.com/wp-content/uploads/2025/03/image-15-1024x526.png 1024w, https://library.nagios.com/wp-content/uploads/2025/03/image-15-300x154.png 300w, https://library.nagios.com/wp-content/uploads/2025/03/image-15-768x394.png 768w, https://library.nagios.com/wp-content/uploads/2025/03/image-15-1536x789.png 1536w, https://library.nagios.com/wp-content/uploads/2025/03/image-15.png 1899w" sizes="(max-width: 1024px) 100vw, 1024px" /></a><figcaption class="wp-element-caption">Verified Incoming Logs</figcaption></figure>



<h2 class="wp-block-heading">Step 7: Configure Log Filters (Optional)</h2>



<p class="wp-block-paragraph">In the Nagios Log Server web interface, you can create filters and alerts for specific Fedora logs:</p>



<ol start="1" class="wp-block-list">
<li>Go to &#8220;Admin&#8221; &gt; &#8220;Filters&#8221;</li>



<li>Create a new filter for Fedora-specific logs</li>



<li>Set up alerts for critical events if needed</li>
</ol>



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



<p class="wp-block-paragraph">By following these steps, you&#8217;ve successfully configured your Fedora 41 system to send logs to Nagios Log Server R2. This integration provides centralized log management, making it easier to monitor, analyze, and respond to system events across your infrastructure. Remember to regularly review your log management strategy to ensure it meets your organization&#8217;s security and compliance requirements.</p>



<p class="wp-block-paragraph">For optimal performance, consider:</p>



<ul class="wp-block-list">
<li>Setting up log rotation on Fedora to manage log file sizes</li>



<li>Creating custom dashboards in Nagios Log Server for Fedora-specific metrics</li>



<li>Implementing SSL encryption for log transmission in production environments</li>
</ul>



<p class="wp-block-paragraph">Interested in installing Nagios Log Server R2 on Linux click the link below:</p>



<p class="wp-block-paragraph"><a href="https://youtu.be/9SkH3fNmhGg?si=bRfO9G-0Qz---g8M" target="_blank" rel="noopener">https://youtu.be/9SkH3fNmhGg?si=bRfO9G-0Qz&#8212;g8M</a></p>



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



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



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



<p class="wp-block-paragraph">Visit Nagios Exchange:&nbsp;<a href="https://www.youtube.com/redirect?event=video_description&amp;redir_token=QUFFLUhqa1BfS283Z0JCWEg2TklqNFFTUjBGWmtoaFFnUXxBQ3Jtc0ttc2xTNnBFTUVzY2JDS3AzYUpRVk1CQ0R5Y1JnRjd0SGVQcmx5RjZ5ZTg0RHp1LXIxSHYxeXpXdThtTXFTaFd4dFZKdFZvdnVfYVM2UHQ3STcwXzdkaDU4OWk4cTgzRDB6M00yUnE2SklWTWJSd0hRSQ&amp;q=https%3A%2F%2Fexchange.nagios.org%2F&amp;v=flMcuXDNRWs" target="_blank" rel="noreferrer noopener">https://exchange.nagios.org/</a></p>
]]></content:encoded>
					
		
		
		<media:content url="https://www.youtube.com/embed/9SkH3fNmhGg" medium="video">
			<media:player url="https://www.youtube.com/embed/9SkH3fNmhGg" />
			<media:title type="plain">How to Forward Fedora 41 Logs to Nagios Log Server 2024R2 - Nagios Library</media:title>
			<media:description type="html"><![CDATA[Nagios Log Server is a powerful enterprise-grade log monitoring and management solution that enables organizations to collect, analyze, and archive log data from various sources. In this guide, we'll walk through the process of configuring Fedora 41 to send its system logs to Nagios Log Server R2.]]></media:description>
			<media:thumbnail url="https://library.nagios.com/wp-content/uploads/2025/03/Another-Fedora-41-1-e1743197756594.png" />
			<media:rating scheme="urn:simple">nonadult</media:rating>
		</media:content>
	</item>
		<item>
		<title>Setting Up SNMP on a Fedora 39 Workstation and Configuring it in Nagios XI</title>
		<link>https://library.nagios.com/documentation/setting-up-snmp-on-a-fedora-39-workstation-and-configuring-it-in-nagios-xi/</link>
		
		<dc:creator><![CDATA[Johnny Mengistu]]></dc:creator>
		<pubDate>Mon, 24 Mar 2025 21:16:20 +0000</pubDate>
				<category><![CDATA[Documentation]]></category>
		<category><![CDATA[Monitoring]]></category>
		<category><![CDATA[Configuration]]></category>
		<category><![CDATA[Fedora 39]]></category>
		<category><![CDATA[SNMP]]></category>
		<guid isPermaLink="false">https://library.nagios.com/?p=53177</guid>

					<description><![CDATA[Simple Network Management Protocol (SNMP) is a widely-used protocol for monitoring and managing network devices and servers. With SNMP, administrators can gather metrics on hardware status, network traffic, and other key performance indicators. This article will guide you through the process of installing and configuring SNMP on a Fedora 39 workstation and then setting it [&#8230;]]]></description>
										<content:encoded><![CDATA[
<p class="wp-block-paragraph">Simple Network Management Protocol (SNMP) is a widely-used protocol for monitoring and managing network devices and servers. With SNMP, administrators can gather metrics on hardware status, network traffic, and other key performance indicators. This article will guide you through the process of installing and configuring SNMP on a Fedora 39 workstation and then setting it up in Nagios XI for monitoring purposes.</p>



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



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



<ul class="wp-block-list">
<li>You have a Fedora 39 workstation.</li>



<li>You have root (sudo) privileges on the system.</li>



<li>You have Nagios XI installed and running, with access to the web interface.</li>



<li>You have basic knowledge of SNMP and Nagios XI&#8217;s functionality.</li>
</ul>



<h3 class="wp-block-heading">Part 1: Installing and Configuring SNMP on Fedora 39 Workstation</h3>



<p class="wp-block-paragraph">SNMP typically runs on UDP port 161 for general communication and port 162 for traps. We will install and configure the SNMP daemon (<code>snmpd</code>) on Fedora 39.</p>



<h4 class="wp-block-heading">Step 1: Install the SNMP Packages</h4>



<p class="wp-block-paragraph">Fedora repositories provide the necessary SNMP utilities. First, update the system and install the required SNMP packages.</p>



<p class="wp-block-paragraph">1. <strong>Update system packages:</strong> </p>



<ol class="wp-block-list">
<li></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>bash

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



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



<p class="wp-block-paragraph">2. <strong>Install SNMP daemon and utilities:</strong></p>



<ol class="wp-block-list">
<li></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>bash

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



<p class="wp-block-paragraph">This will install the SNMP daemon (<code>snmpd</code>) and the SNMP utilities that allow you to query and test SNMP configurations.</p>



<h4 class="wp-block-heading">Step 2: Configure SNMP Daemon</h4>



<p class="wp-block-paragraph">The configuration file for <code>snmpd</code> is located at <code>/etc/snmp/snmpd.conf</code>. Open the file to configure it for your environment.</p>



<p class="wp-block-paragraph">1. <strong>Edit the SNMP configuration file</strong>:</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 vi /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">vi</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 class="wp-block-paragraph">2. <strong>Basic configuration example:</strong><ul><li>Set the community string to something secure (the default is <code>public</code>, which is insecure and should be changed).Configure access control for SNMP agents.</li></ul>Here’s a minimal configuration for SNMPv2c (the most commonly used version of SNMP):</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># Set the SNMP community string (password)
rocommunity private
# Specify the network range that is allowed to access SNMP information
# You can change this to your network's IP range
rocommunity private default -V systemonly

# Restrict SNMP access to localhost (for security reasons)
agentAddress udp:161,udp6:&#91;::1&#93;:161</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">Set</span><span style="color: #D4D4D4"> </span><span style="color: #9CDCFE">the</span><span style="color: #D4D4D4"> </span><span style="color: #4FC1FF">SNMP</span><span style="color: #D4D4D4"> </span><span style="color: #9CDCFE">community</span><span style="color: #D4D4D4"> </span><span style="color: #DCDCAA">string</span><span style="color: #D4D4D4"> (</span><span style="color: #9CDCFE">password</span><span style="color: #D4D4D4">)</span></span>
<span class="line"><span style="color: #9CDCFE">rocommunity</span><span style="color: #D4D4D4"> </span><span style="color: #9CDCFE">private</span></span>
<span class="line"><span style="color: #D4D4D4"># </span><span style="color: #9CDCFE">Specify</span><span style="color: #D4D4D4"> </span><span style="color: #9CDCFE">the</span><span style="color: #D4D4D4"> </span><span style="color: #9CDCFE">network</span><span style="color: #D4D4D4"> </span><span style="color: #9CDCFE">range</span><span style="color: #D4D4D4"> </span><span style="color: #9CDCFE">that</span><span style="color: #D4D4D4"> </span><span style="color: #9CDCFE">is</span><span style="color: #D4D4D4"> </span><span style="color: #9CDCFE">allowed</span><span style="color: #D4D4D4"> </span><span style="color: #9CDCFE">to</span><span style="color: #D4D4D4"> </span><span style="color: #9CDCFE">access</span><span style="color: #D4D4D4"> </span><span style="color: #4FC1FF">SNMP</span><span style="color: #D4D4D4"> </span><span style="color: #9CDCFE">information</span></span>
<span class="line"><span style="color: #D4D4D4"># </span><span style="color: #9CDCFE">You</span><span style="color: #D4D4D4"> </span><span style="color: #9CDCFE">can</span><span style="color: #D4D4D4"> </span><span style="color: #9CDCFE">change</span><span style="color: #D4D4D4"> </span><span style="color: #569CD6">this</span><span style="color: #D4D4D4"> </span><span style="color: #9CDCFE">to</span><span style="color: #D4D4D4"> </span><span style="color: #9CDCFE">your</span><span style="color: #D4D4D4"> </span><span style="color: #9CDCFE">network</span><span style="color: #CE9178">&#39;s IP rang</span><span style="color: #F44747">e</span></span>
<span class="line"><span style="color: #9CDCFE">rocommunity</span><span style="color: #D4D4D4"> </span><span style="color: #9CDCFE">private</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>
<span class="line"></span>
<span class="line"><span style="color: #D4D4D4"># </span><span style="color: #9CDCFE">Restrict</span><span style="color: #D4D4D4"> </span><span style="color: #4FC1FF">SNMP</span><span style="color: #D4D4D4"> </span><span style="color: #9CDCFE">access</span><span style="color: #D4D4D4"> </span><span style="color: #9CDCFE">to</span><span style="color: #D4D4D4"> </span><span style="color: #DCDCAA">localhost</span><span style="color: #D4D4D4"> (</span><span style="color: #9CDCFE">for</span><span style="color: #D4D4D4"> </span><span style="color: #9CDCFE">security</span><span style="color: #D4D4D4"> </span><span style="color: #9CDCFE">reasons</span><span style="color: #D4D4D4">)</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 style="color: #D4D4D4">,</span><span style="color: #C8C8C8">udp6</span><span style="color: #D4D4D4">:&#91;::</span><span style="color: #B5CEA8">1</span><span style="color: #D4D4D4">&#93;:</span><span style="color: #B5CEA8">161</span></span></code></pre></div>



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



<ul class="wp-block-list">
<li>The <code>rocommunity</code> directive defines a read-only community string.</li>



<li>The <code>agentAddress</code> directive ensures SNMP listens on the correct network interfaces (you can modify it for your specific requirements).</li>
</ul>



<p class="wp-block-paragraph">3. <strong>Restart the SNMP service:</strong> </p>



<p class="wp-block-paragraph">Once the configuration is complete, restart the SNMP daemon for the changes to take effect:</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 systemctl restart snmpd sudo systemctl enable 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">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">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 style="color: #D4D4D4"> </span><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">snmpd</span></span></code></pre></div>



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



<p class="wp-block-paragraph">4. <strong>Verify SNMP service is running:</strong></p>



<p class="wp-block-paragraph">To verify that SNMP is running and accessible, you can use the following command:</p>



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

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



<p class="wp-block-paragraph">If it&#8217;s running properly, it should indicate that the service is active.</p>



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



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



<h4 class="wp-block-heading">Step 3: Test SNMP Locally</h4>



<p class="wp-block-paragraph">You can test if SNMP is working locally using the <code>snmpwalk</code> tool, which is included in the <code>net-snmp-utils</code> package.</p>



<ol class="wp-block-list">
<li><strong>Test SNMP locally:</strong></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>bash

snmpwalk -v 2c -c private 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">bash</span></span>
<span class="line"></span>
<span class="line"><span style="color: #9CDCFE">snmpwalk</span><span style="color: #D4D4D4"> -</span><span style="color: #9CDCFE">v</span><span style="color: #D4D4D4"> 2</span><span style="color: #9CDCFE">c</span><span style="color: #D4D4D4"> -</span><span style="color: #9CDCFE">c</span><span style="color: #D4D4D4"> </span><span style="color: #9CDCFE">private</span><span style="color: #D4D4D4"> </span><span style="color: #9CDCFE">localhost</span></span></code></pre></div>



<p class="wp-block-paragraph"><ul><li><code>-v 2c</code> specifies SNMP version 2c.</li></ul></p>



<p class="wp-block-paragraph"><ul><li><code>-c private</code> specifies the community string.</li></ul></p>



<p class="wp-block-paragraph"><ul><li><code>localhost</code> indicates that you&#8217;re querying the local machine.</li></ul></p>



<p class="wp-block-paragraph">If everything is configured correctly, you should see a large list of SNMP values and OIDs returned from the system.</p>



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



<h3 class="wp-block-heading">Part 2: Configuring SNMP on Nagios XI</h3>



<ol class="wp-block-list">
<li>Log into Nagios XI , hover over the gear icon and select &#8220;Configuration Wizards&#8221;.</li>
</ol>



<figure class="wp-block-image size-full"><a href="https://library.nagios.com/wp-content/uploads/2025/03/Config-Wiz-1.png"><img loading="lazy" decoding="async" width="808" height="588" src="https://library.nagios.com/wp-content/uploads/2025/03/Config-Wiz-1.png" alt="Config Wiz 1" class="wp-image-53056" title="Setting Up SNMP on a Fedora 39 Workstation and Configuring it in Nagios XI 11" srcset="https://library.nagios.com/wp-content/uploads/2025/03/Config-Wiz-1.png 808w, https://library.nagios.com/wp-content/uploads/2025/03/Config-Wiz-1-300x218.png 300w, https://library.nagios.com/wp-content/uploads/2025/03/Config-Wiz-1-768x559.png 768w" sizes="(max-width: 808px) 100vw, 808px" /></a><figcaption class="wp-element-caption">Config Wizards</figcaption></figure>



<p class="wp-block-paragraph">2. Search &#8220;SNMP&#8221; in the search box above and select the Linux SNMP option shown in the picture below.</p>



<figure class="wp-block-image size-large"><a href="https://library.nagios.com/wp-content/uploads/2025/03/Linux-SNMP-Wiz.png"><img loading="lazy" decoding="async" width="1024" height="408" src="https://library.nagios.com/wp-content/uploads/2025/03/Linux-SNMP-Wiz-1024x408.png" alt="Linux SNMP Wiz" class="wp-image-53057" title="Setting Up SNMP on a Fedora 39 Workstation and Configuring it in Nagios XI 12" srcset="https://library.nagios.com/wp-content/uploads/2025/03/Linux-SNMP-Wiz-1024x408.png 1024w, https://library.nagios.com/wp-content/uploads/2025/03/Linux-SNMP-Wiz-300x119.png 300w, https://library.nagios.com/wp-content/uploads/2025/03/Linux-SNMP-Wiz-768x306.png 768w, https://library.nagios.com/wp-content/uploads/2025/03/Linux-SNMP-Wiz-1536x612.png 1536w, https://library.nagios.com/wp-content/uploads/2025/03/Linux-SNMP-Wiz.png 1914w" sizes="(max-width: 1024px) 100vw, 1024px" /></a><figcaption class="wp-element-caption">Linux SNMP Wiz</figcaption></figure>



<p class="wp-block-paragraph">3. Fill in the necessary information then hit finish at the end or &#8220;finish with defaults&#8221; </p>



<figure class="wp-block-image size-large"><a href="https://library.nagios.com/wp-content/uploads/2025/03/Linux-Config-Wiz.png"><img loading="lazy" decoding="async" width="1024" height="397" src="https://library.nagios.com/wp-content/uploads/2025/03/Linux-Config-Wiz-1024x397.png" alt="Linux Config Wiz" class="wp-image-53059" title="Setting Up SNMP on a Fedora 39 Workstation and Configuring it in Nagios XI 13" srcset="https://library.nagios.com/wp-content/uploads/2025/03/Linux-Config-Wiz-1024x397.png 1024w, https://library.nagios.com/wp-content/uploads/2025/03/Linux-Config-Wiz-300x116.png 300w, https://library.nagios.com/wp-content/uploads/2025/03/Linux-Config-Wiz-768x297.png 768w, https://library.nagios.com/wp-content/uploads/2025/03/Linux-Config-Wiz-1536x595.png 1536w, https://library.nagios.com/wp-content/uploads/2025/03/Linux-Config-Wiz.png 1898w" sizes="(max-width: 1024px) 100vw, 1024px" /></a><figcaption class="wp-element-caption">Linux Config Wiz</figcaption></figure>



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



<p class="wp-block-paragraph">You have successfully installed SNMP on a Fedora 39 workstation and configured it in Nagios XI for monitoring. By using SNMP, you can gather various system metrics such as CPU usage, disk space, network interface statistics, and more. Nagios XI provides a powerful platform for monitoring these metrics and alerting you to potential issues. With the steps outlined in this guide, you can now integrate SNMP-based monitoring into your IT infrastructure to ensure smooth operations and proactive system management.</p>



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



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



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



<p class="wp-block-paragraph">Visit Nagios Exchange:&nbsp;<a href="https://www.youtube.com/redirect?event=video_description&amp;redir_token=QUFFLUhqa1BfS283Z0JCWEg2TklqNFFTUjBGWmtoaFFnUXxBQ3Jtc0ttc2xTNnBFTUVzY2JDS3AzYUpRVk1CQ0R5Y1JnRjd0SGVQcmx5RjZ5ZTg0RHp1LXIxSHYxeXpXdThtTXFTaFd4dFZKdFZvdnVfYVM2UHQ3STcwXzdkaDU4OWk4cTgzRDB6M00yUnE2SklWTWJSd0hRSQ&amp;q=https%3A%2F%2Fexchange.nagios.org%2F&amp;v=flMcuXDNRWs" target="_blank" rel="noreferrer noopener">https://exchange.nagios.org/</a></p>
]]></content:encoded>
					
		
		
		<media:content url="https://www.youtube.com/embed/redir_token" medium="video">
			<media:player url="https://www.youtube.com/embed/redir_token" />
			<media:title type="plain">Setting Up SNMP on a Fedora 39 Workstation and Configuring it in Nagios XI - Nagios Library</media:title>
			<media:description type="html"><![CDATA[Enjoy the videos and music you love, upload original content, and share it all with friends, family, and the world on YouTube.]]></media:description>
			<media:thumbnail url="https://library.nagios.com/wp-content/uploads/2025/03/Fedora-39.jpg" />
			<media:rating scheme="urn:simple">nonadult</media:rating>
		</media:content>
	</item>
		<item>
		<title>Getting SNMP on a Fedora 41 Workstation and Configuring in Nagios XI</title>
		<link>https://library.nagios.com/documentation/getting-snmp-on-a-fedora-41-workstation-and-configuring-in-nagios-xi/</link>
		
		<dc:creator><![CDATA[Johnny Mengistu]]></dc:creator>
		<pubDate>Fri, 21 Mar 2025 22:06:39 +0000</pubDate>
				<category><![CDATA[Documentation]]></category>
		<category><![CDATA[Configuration]]></category>
		<category><![CDATA[Fedora 41]]></category>
		<category><![CDATA[SNMP]]></category>
		<guid isPermaLink="false">https://library.nagios.com/?p=52611</guid>

					<description><![CDATA[Introduction The Simple Network Management Protocol (SNMP) is widely used for monitoring devices on a network, including servers, routers, switches, and workstations. Fedora 41, a modern Linux distribution, comes with a robust package manager and system tools that make it easy to install SNMP. This guide will walk you through installing SNMP on a Fedora [&#8230;]]]></description>
										<content:encoded><![CDATA[
<h2 class="wp-block-heading">Introduction</h2>



<p class="wp-block-paragraph">The Simple Network Management Protocol (SNMP) is widely used for monitoring devices on a network, including servers, routers, switches, and workstations. Fedora 41, a modern Linux distribution, comes with a robust package manager and system tools that make it easy to install SNMP. This guide will walk you through installing SNMP on a Fedora 41 workstation and configuring it for use with Nagios XI, a popular open-source network monitoring software.</p>



<p class="wp-block-paragraph">By the end of this guide, you’ll be able to monitor your Fedora 41 workstation’s health, performance, and resources using SNMP and Nagios XI.</p>



<hr class="wp-block-separator has-alpha-channel-opacity"/>



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



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



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



<li><strong>Nagios XI</strong> running and accessible in your network.</li>



<li><strong>Basic knowledge of Linux and network management</strong>.</li>
</ol>



<hr class="wp-block-separator has-alpha-channel-opacity"/>



<h2 class="wp-block-heading">Step 1: I <strong>Part 1: Install and Configure SNMP on Fedora 41</strong></h2>



<ol start="1" class="wp-block-list">
<li><strong>Install SNMP Packages</strong>:<br>Open a terminal and install the&nbsp;<code>net-snmp</code>&nbsp;package</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 dnf install net-snmp net-snmp-utils</textarea></pre><svg xmlns="http://www.w3.org/2000/svg" style="width:24px;height:24px" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2"><path class="with-check" stroke-linecap="round" stroke-linejoin="round" d="M4.5 12.75l6 6 9-13.5"></path><path class="without-check" stroke-linecap="round" stroke-linejoin="round" d="M16.5 8.25V6a2.25 2.25 0 00-2.25-2.25H6A2.25 2.25 0 003.75 6v8.25A2.25 2.25 0 006 16.5h2.25m8.25-8.25H18a2.25 2.25 0 012.25 2.25V18A2.25 2.25 0 0118 20.25h-7.5A2.25 2.25 0 018.25 18v-1.5m8.25-8.25h-6a2.25 2.25 0 00-2.25 2.25v6"></path></svg></span><pre class="shiki dark-plus" style="background-color: #1E1E1E" tabindex="0"><code><span class="line"><span style="color: #9CDCFE">sudo</span><span style="color: #D4D4D4"> </span><span style="color: #9CDCFE">dnf</span><span style="color: #D4D4D4"> </span><span style="color: #9CDCFE">install</span><span style="color: #D4D4D4"> </span><span style="color: #9CDCFE">net</span><span style="color: #D4D4D4">-</span><span style="color: #9CDCFE">snmp</span><span style="color: #D4D4D4"> </span><span style="color: #9CDCFE">net</span><span style="color: #D4D4D4">-</span><span style="color: #9CDCFE">snmp</span><span style="color: #D4D4D4">-</span><span style="color: #9CDCFE">utils</span></span></code></pre></div>



<ol start="1" class="wp-block-list">
<li><strong>Configure SNMP</strong>:<br>Edit the SNMP configuration file</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 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">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>



<ol start="1" class="wp-block-list">
<li><strong>Define a Read-Only Community String</strong>&nbsp;(replace&nbsp;<code>public</code>&nbsp;with a secure community string):</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>rocommunity your_community_string</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">rocommunity</span><span style="color: #D4D4D4"> </span><span style="color: #9CDCFE">your_community_string</span></span></code></pre></div>



<ol start="1" class="wp-block-list">
<li><strong>Allow SNMP Access from Nagios XI Server</strong>. Add the IP address of your Nagios XI server. Replace&nbsp;<code>192.168.1.100</code>&nbsp;with the actual IP of your Nagios XI server.</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>rocommunity your_community_string 192.168.1.100</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">rocommunity</span><span style="color: #D4D4D4"> </span><span style="color: #9CDCFE">your_community_string</span><span style="color: #D4D4D4"> </span><span style="color: #B5CEA8">192.168</span><span style="color: #D4D4D4">.</span><span style="color: #B5CEA8">1.100</span></span></code></pre></div>



<ol start="1" class="wp-block-list">
<li><strong>Set the System Location and Contact</strong>:</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>syslocation "Your Location"
syscontact "Your Name &lt;your.email@example.com>"</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></code></pre></div>



<ol start="1" class="wp-block-list">
<li><strong>Start and Enable SNMP Service</strong> to start on boot:</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 systemctl start snmpd sudo systemctl enable 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">start</span><span style="color: #D4D4D4"> </span><span style="color: #9CDCFE">snmpd</span><span style="color: #D4D4D4"> </span><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">snmpd</span></span></code></pre></div>



<ol start="1" class="wp-block-list">
<li><strong>Open SNMP Port in Firewall</strong>: Allow SNMP traffic through the firewall:</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 firewall-cmd --add-service=snmp --permanent
sudo firewall-cmd --reload</textarea></pre><svg xmlns="http://www.w3.org/2000/svg" style="width:24px;height:24px" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2"><path class="with-check" stroke-linecap="round" stroke-linejoin="round" d="M4.5 12.75l6 6 9-13.5"></path><path class="without-check" stroke-linecap="round" stroke-linejoin="round" d="M16.5 8.25V6a2.25 2.25 0 00-2.25-2.25H6A2.25 2.25 0 003.75 6v8.25A2.25 2.25 0 006 16.5h2.25m8.25-8.25H18a2.25 2.25 0 012.25 2.25V18A2.25 2.25 0 0118 20.25h-7.5A2.25 2.25 0 018.25 18v-1.5m8.25-8.25h-6a2.25 2.25 0 00-2.25 2.25v6"></path></svg></span><pre class="shiki dark-plus" style="background-color: #1E1E1E" tabindex="0"><code><span class="line"><span style="color: #9CDCFE">sudo</span><span style="color: #D4D4D4"> </span><span style="color: #9CDCFE">firewall</span><span style="color: #D4D4D4">-</span><span style="color: #9CDCFE">cmd</span><span style="color: #D4D4D4"> --</span><span style="color: #9CDCFE">add</span><span style="color: #D4D4D4">-</span><span style="color: #9CDCFE">service</span><span style="color: #D4D4D4">=</span><span style="color: #9CDCFE">snmp</span><span style="color: #D4D4D4"> --</span><span style="color: #9CDCFE">permanent</span></span>
<span class="line"><span style="color: #9CDCFE">sudo</span><span style="color: #D4D4D4"> </span><span style="color: #9CDCFE">firewall</span><span style="color: #D4D4D4">-</span><span style="color: #9CDCFE">cmd</span><span style="color: #D4D4D4"> --</span><span style="color: #9CDCFE">reload</span></span></code></pre></div>



<ol start="1" class="wp-block-list">
<li><strong>Test SNMP</strong>: Verify that SNMP is working by querying it locally:</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>snmpwalk -v 2c -c your_community_string 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">v</span><span style="color: #D4D4D4"> 2</span><span style="color: #9CDCFE">c</span><span style="color: #D4D4D4"> -</span><span style="color: #9CDCFE">c</span><span style="color: #D4D4D4"> </span><span style="color: #9CDCFE">your_community_string</span><span style="color: #D4D4D4"> </span><span style="color: #9CDCFE">localhost</span></span></code></pre></div>



<hr class="wp-block-separator has-alpha-channel-opacity"/>



<h3 class="wp-block-heading"><strong>Part 2: Configure the Fedora 41 Workstation in Nagios XI</strong></h3>



<p class="wp-block-paragraph">1. Log into Nagios XI , hover over the gear icon and select &#8220;Configuration Wizards&#8221;.</p>



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



<figure class="wp-block-image size-full"><a href="https://library.nagios.com/wp-content/uploads/2025/03/Config-Wiz-1.png"><img loading="lazy" decoding="async" width="808" height="588" src="https://library.nagios.com/wp-content/uploads/2025/03/Config-Wiz-1.png" alt="Config Wiz 1" class="wp-image-53056" title="Getting SNMP on a Fedora 41 Workstation and Configuring in Nagios XI 14" srcset="https://library.nagios.com/wp-content/uploads/2025/03/Config-Wiz-1.png 808w, https://library.nagios.com/wp-content/uploads/2025/03/Config-Wiz-1-300x218.png 300w, https://library.nagios.com/wp-content/uploads/2025/03/Config-Wiz-1-768x559.png 768w" sizes="(max-width: 808px) 100vw, 808px" /></a><figcaption class="wp-element-caption">Config Wizards</figcaption></figure>



<p class="wp-block-paragraph">     2. Search &#8220;SNMP&#8221; in the search box above and select the Linux SNMP option shown in the picture below.</p>



<figure class="wp-block-image size-large"><a href="https://library.nagios.com/wp-content/uploads/2025/03/Linux-SNMP-Wiz.png"><img loading="lazy" decoding="async" width="1024" height="408" src="https://library.nagios.com/wp-content/uploads/2025/03/Linux-SNMP-Wiz-1024x408.png" alt="Linux SNMP Wiz" class="wp-image-53057" title="Getting SNMP on a Fedora 41 Workstation and Configuring in Nagios XI 15" srcset="https://library.nagios.com/wp-content/uploads/2025/03/Linux-SNMP-Wiz-1024x408.png 1024w, https://library.nagios.com/wp-content/uploads/2025/03/Linux-SNMP-Wiz-300x119.png 300w, https://library.nagios.com/wp-content/uploads/2025/03/Linux-SNMP-Wiz-768x306.png 768w, https://library.nagios.com/wp-content/uploads/2025/03/Linux-SNMP-Wiz-1536x612.png 1536w, https://library.nagios.com/wp-content/uploads/2025/03/Linux-SNMP-Wiz.png 1914w" sizes="(max-width: 1024px) 100vw, 1024px" /></a><figcaption class="wp-element-caption">Linux SNMP Wiz</figcaption></figure>



<p class="wp-block-paragraph">    3. Fill in the necessary information then hit finish at the end or &#8220;finish with defaults&#8221;  </p>



<figure class="wp-block-image size-large"><a href="https://library.nagios.com/wp-content/uploads/2025/03/Linux-Config-Wiz.png"><img loading="lazy" decoding="async" width="1024" height="397" src="https://library.nagios.com/wp-content/uploads/2025/03/Linux-Config-Wiz-1024x397.png" alt="Linux Config Wiz" class="wp-image-53059" title="Getting SNMP on a Fedora 41 Workstation and Configuring in Nagios XI 16" srcset="https://library.nagios.com/wp-content/uploads/2025/03/Linux-Config-Wiz-1024x397.png 1024w, https://library.nagios.com/wp-content/uploads/2025/03/Linux-Config-Wiz-300x116.png 300w, https://library.nagios.com/wp-content/uploads/2025/03/Linux-Config-Wiz-768x297.png 768w, https://library.nagios.com/wp-content/uploads/2025/03/Linux-Config-Wiz-1536x595.png 1536w, https://library.nagios.com/wp-content/uploads/2025/03/Linux-Config-Wiz.png 1898w" sizes="(max-width: 1024px) 100vw, 1024px" /></a><figcaption class="wp-element-caption">Linux Config Wiz</figcaption></figure>



<hr class="wp-block-separator has-alpha-channel-opacity"/>



<h3 class="wp-block-heading"><strong>Optional: Additional SNMP OIDs</strong></h3>



<p class="wp-block-paragraph">You can monitor additional metrics by adding more services with different OIDs. For example:</p>



<ul class="wp-block-list">
<li><strong>CPU Load</strong>:&nbsp;<code>.1.3.6.1.4.1.2021.10.1.3.1</code></li>



<li><strong>Memory Usage</strong>:&nbsp;<code>.1.3.6.1.4.1.2021.4.6.0</code></li>



<li><strong>Disk Usage</strong>:&nbsp;<code>.1.3.6.1.4.1.2021.9.1.7.1</code></li>
</ul>



<hr class="wp-block-separator has-alpha-channel-opacity"/>



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



<ul class="wp-block-list">
<li><strong>SNMP Not Responding</strong>: Ensure the SNMP service is running (<code>sudo systemctl status snmpd</code>) and the firewall allows SNMP traffic.</li>



<li><strong>Incorrect Community String</strong>: Double-check the community string in&nbsp;<code>/etc/snmp/snmpd.conf</code>&nbsp;and Nagios XI.</li>



<li><strong>Permissions</strong>: Ensure the Nagios XI server has network access to the Fedora workstation.</li>
</ul>



<hr class="wp-block-separator has-alpha-channel-opacity"/>



<p class="wp-block-paragraph">By following these steps, you should be able to monitor your Fedora 41 workstation using SNMP in Nagios XI. Let me know if you need further assistance!</p>



<hr class="wp-block-separator has-alpha-channel-opacity"/>



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



<p class="wp-block-paragraph">You have successfully installed and configured SNMP on your Fedora 41 workstation and set it up for monitoring in Nagios XI. This setup allows Nagios XI to collect system metrics, such as CPU usage, memory usage, disk space, and more, from your Fedora workstation.</p>



<p class="wp-block-paragraph">By utilizing SNMP and Nagios XI together, you can proactively monitor the health of your systems, reduce downtime, and ensure better network management.</p>



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



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



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



<p class="wp-block-paragraph">Visit Nagios Exchange:&nbsp;<a href="https://www.youtube.com/redirect?event=video_description&amp;redir_token=QUFFLUhqa1BfS283Z0JCWEg2TklqNFFTUjBGWmtoaFFnUXxBQ3Jtc0ttc2xTNnBFTUVzY2JDS3AzYUpRVk1CQ0R5Y1JnRjd0SGVQcmx5RjZ5ZTg0RHp1LXIxSHYxeXpXdThtTXFTaFd4dFZKdFZvdnVfYVM2UHQ3STcwXzdkaDU4OWk4cTgzRDB6M00yUnE2SklWTWJSd0hRSQ&amp;q=https%3A%2F%2Fexchange.nagios.org%2F&amp;v=flMcuXDNRWs" target="_blank" rel="noreferrer noopener">https://exchange.nagios.org/</a></p>
]]></content:encoded>
					
		
		
		<media:content url="https://www.youtube.com/embed/redir_token" medium="video">
			<media:player url="https://www.youtube.com/embed/redir_token" />
			<media:title type="plain">Getting SNMP on a Fedora 41 Workstation and Configuring in Nagios XI - Nagios Library</media:title>
			<media:description type="html"><![CDATA[The Simple Network Management Protocol (SNMP) is widely used for monitoring devices on a network, including servers, routers, switches, and workstations. Fedora 41, a modern Linux distribution, comes with a robust package manager and system tools that make it easy to install SNMP. This guide will walk you through installing SNMP on a Fedora 41 workstation and configuring it for use with Nagios XI, a popular open-source network monitoring software.]]></media:description>
			<media:thumbnail url="https://library.nagios.com/wp-content/uploads/2025/03/Fedora-41-2-2.png" />
			<media:rating scheme="urn:simple">nonadult</media:rating>
		</media:content>
	</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[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 class="wp-block-paragraph">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 class="wp-block-paragraph">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 class="wp-block-paragraph">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 class="wp-block-paragraph">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 class="wp-block-paragraph">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 class="wp-block-paragraph">     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 class="wp-block-paragraph">     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 class="wp-block-paragraph">        This command will build and install NCPA, including any required dependencies.</p>



<p class="wp-block-paragraph">     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 class="wp-block-paragraph">         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 class="wp-block-paragraph">         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 class="wp-block-paragraph">     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 class="wp-block-paragraph">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 class="wp-block-paragraph">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 class="wp-block-paragraph">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 class="wp-block-paragraph">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 wp-block-paragraph">      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 wp-block-paragraph">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 wp-block-paragraph"></p>



<p class="wp-block-paragraph">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 17" 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 class="wp-block-paragraph"></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 18" 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 class="wp-block-paragraph"></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 19" 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 class="wp-block-paragraph"></p>



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



<p class="wp-block-paragraph">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 class="wp-block-paragraph">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 class="wp-block-paragraph">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 class="wp-block-paragraph">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 class="wp-block-paragraph">For further assistance, refer to the <a href="https://support.nagios.com/forum/" target="_blank" rel="noreferrer noopener">Nagios Support Forum</a> or the<strong> </strong><a href="https://library.nagios.com/docs/" target="_blank" rel="noreferrer noopener">Nagios Documentation Hub</a><strong>.</strong></p>



<p class="wp-block-paragraph">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 class="wp-block-paragraph"></p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>Configuring Debian 12 Logs with Nagios Log Server 2024R2</title>
		<link>https://library.nagios.com/documentation/configuring-debian-12-logs-with-nagios-log-server-r2/</link>
		
		<dc:creator><![CDATA[Johnny Mengistu]]></dc:creator>
		<pubDate>Wed, 19 Mar 2025 21:10:12 +0000</pubDate>
				<category><![CDATA[Documentation]]></category>
		<category><![CDATA[Monitoring]]></category>
		<category><![CDATA[Debian 12]]></category>
		<guid isPermaLink="false">https://library.nagios.com/?p=46605</guid>

					<description><![CDATA[In this article, we will walk through the process of configuring log collection on a Debian 12 system using Nagios Log Server 2024R2. Nagios Log Server 2024R2 provides centralized log management, helping system administrators monitor, analyze, and store logs in a centralized repository. By the end of this guide, you will have configured your Debian [&#8230;]]]></description>
										<content:encoded><![CDATA[
<p class="wp-block-paragraph">In this article, we will walk through the process of configuring log collection on a Debian 12 system using Nagios Log Server 2024R2. Nagios Log Server 2024R2 provides centralized log management, helping system administrators monitor, analyze, and store logs in a centralized repository. By the end of this guide, you will have configured your Debian 12 system to forward logs to Nagios Log Server 2024R2 for easy monitoring. After configuration you should immediately start receiving the logs that you would normally view in the&nbsp;<code>/var/log/messages</code>&nbsp;file on the Linux system you configured.</p>



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



<p class="wp-block-paragraph">Before beginning the setup process, ensure that you meet the following requirements:</p>



<ul class="wp-block-list">
<li>A running Debian 12 system</li>



<li>Root or sudo privileges on the Debian 12 system</li>



<li>A Nagios Log Server 2024R2 instance (you can use Nagios Log Server 2024R2 in your own infrastructure or use Nagios XI or a hosted version)</li>



<li>Basic knowledge of Linux and command-line operations</li>



<li>Make sure you have a bridged connection before starting up your Debian workstation</li>
</ul>



<h3 class="wp-block-heading">Automatic Script &#8211; Supported Operating Systems</h3>



<ul class="wp-block-list">
<li>CentOS, Fedora, and RHEL</li>



<li>Ubuntu and Debian</li>
</ul>



<p class="wp-block-paragraph"><em>You must have rsyslog installed. If your operating system is not listed, you can manually configure syslog or rsyslog by going to the &#8220;<strong>Home</strong>&#8221; tab (after logging into Log Server), select &#8220;<strong>Add a log source&#8221;</strong> then click the &#8220;<strong>Linux</strong>&#8221; o</em>ption and select whichever manual configuration setup option you prefer..</p>



<figure class="wp-block-image size-large"><a href="https://library.nagios.com/wp-content/uploads/2025/03/Home-Button-LSR2-2.png"><img loading="lazy" decoding="async" width="1024" height="555" src="https://library.nagios.com/wp-content/uploads/2025/03/Home-Button-LSR2-2-1024x555.png" alt="Home Button LSR2 2" class="wp-image-52883" title="Configuring Debian 12 Logs with Nagios Log Server 2024R2 20" srcset="https://library.nagios.com/wp-content/uploads/2025/03/Home-Button-LSR2-2-1024x555.png 1024w, https://library.nagios.com/wp-content/uploads/2025/03/Home-Button-LSR2-2-300x162.png 300w, https://library.nagios.com/wp-content/uploads/2025/03/Home-Button-LSR2-2-768x416.png 768w, https://library.nagios.com/wp-content/uploads/2025/03/Home-Button-LSR2-2-1536x832.png 1536w, https://library.nagios.com/wp-content/uploads/2025/03/Home-Button-LSR2-2.png 1900w" sizes="(max-width: 1024px) 100vw, 1024px" /></a><figcaption class="wp-element-caption">Home Button LSR2</figcaption></figure>



<figure class="wp-block-image size-large"><a href="https://library.nagios.com/wp-content/uploads/2025/03/New-LSR2-Getting-Started-Linux-Add-a-Log-Source-1.png"><img loading="lazy" decoding="async" width="1024" height="568" src="https://library.nagios.com/wp-content/uploads/2025/03/New-LSR2-Getting-Started-Linux-Add-a-Log-Source-1-1024x568.png" alt="New LSR2 Getting Started Linux Add a Log Source 1" class="wp-image-52892" title="Configuring Debian 12 Logs with Nagios Log Server 2024R2 21" srcset="https://library.nagios.com/wp-content/uploads/2025/03/New-LSR2-Getting-Started-Linux-Add-a-Log-Source-1-1024x568.png 1024w, https://library.nagios.com/wp-content/uploads/2025/03/New-LSR2-Getting-Started-Linux-Add-a-Log-Source-1-300x167.png 300w, https://library.nagios.com/wp-content/uploads/2025/03/New-LSR2-Getting-Started-Linux-Add-a-Log-Source-1-768x426.png 768w, https://library.nagios.com/wp-content/uploads/2025/03/New-LSR2-Getting-Started-Linux-Add-a-Log-Source-1-1536x853.png 1536w, https://library.nagios.com/wp-content/uploads/2025/03/New-LSR2-Getting-Started-Linux-Add-a-Log-Source-1.png 1897w" sizes="(max-width: 1024px) 100vw, 1024px" /></a><figcaption class="wp-element-caption">LSR2 Add a Log Source</figcaption></figure>



<figure class="wp-block-image size-large"><a href="https://library.nagios.com/wp-content/uploads/2025/03/New-LSR2-Getting-Started-Linux-Circle-Penguin.png"><img loading="lazy" decoding="async" width="1024" height="534" src="https://library.nagios.com/wp-content/uploads/2025/03/New-LSR2-Getting-Started-Linux-Circle-Penguin-1024x534.png" alt="New LSR2 Getting Started Linux Circle Penguin" class="wp-image-52891" title="Configuring Debian 12 Logs with Nagios Log Server 2024R2 22" srcset="https://library.nagios.com/wp-content/uploads/2025/03/New-LSR2-Getting-Started-Linux-Circle-Penguin-1024x534.png 1024w, https://library.nagios.com/wp-content/uploads/2025/03/New-LSR2-Getting-Started-Linux-Circle-Penguin-300x156.png 300w, https://library.nagios.com/wp-content/uploads/2025/03/New-LSR2-Getting-Started-Linux-Circle-Penguin-768x401.png 768w, https://library.nagios.com/wp-content/uploads/2025/03/New-LSR2-Getting-Started-Linux-Circle-Penguin-1536x801.png 1536w, https://library.nagios.com/wp-content/uploads/2025/03/New-LSR2-Getting-Started-Linux-Circle-Penguin.png 1894w" sizes="(max-width: 1024px) 100vw, 1024px" /></a><figcaption class="wp-element-caption">LSR2 Linux Penguin</figcaption></figure>



<h3 class="wp-block-heading">Step 1: Install Required Dependencies on Debian 12</h3>



<p class="wp-block-paragraph">First, you will need to install rsyslog, which is the default logging service for Debian, and configure it to send logs to the Nagios Log Server 2024R2.</p>



<ol start="1" class="wp-block-list">
<li><strong>Update the System</strong></li>
</ol>



<p class="wp-block-paragraph">Make sure your Debian 12 system is up-to-date 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:#adbac7;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 github-dark-dimmed" style="background-color: #22272e" tabindex="0"><code><span class="line"><span style="color: #ADBAC7">bash</span></span>
<span class="line"></span>
<span class="line"><span style="color: #ADBAC7">sudo apt update</span></span></code></pre></div>



<ol start="2" class="wp-block-list">
<li><strong>Install rsyslog</strong></li>
</ol>



<p class="wp-block-paragraph">If <strong>rsyslog </strong>is not already installed, install it using the following command:</p>



<div class="wp-block-kevinbatdorf-code-block-pro" data-code-block-pro-font-family="Code-Pro-Geist-Mono" style="font-size:.875rem;font-family:Code-Pro-Geist-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:1.5rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)"><span role="button" tabindex="0" style="color:#adbac7;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 rsyslog</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 github-dark-dimmed" style="background-color: #22272e" tabindex="0"><code><span class="line"><span style="color: #ADBAC7">sudo apt install rsyslog</span></span></code></pre></div>



<h3 class="wp-block-heading">Step 2: Run the Script</h3>



<p class="wp-block-paragraph">On the system you want to send logs from, run the following commands to download and run the script to automatically setup rsyslog.</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:#adbac7;display:none" aria-label="Copy" class="code-block-pro-copy-button"><pre class="code-block-pro-copy-button-pre" aria-hidden="true"><textarea class="code-block-pro-copy-button-textarea" tabindex="-1" aria-hidden="true" readonly>curl -sS -O http://u0022your Nagios Log Server ip addressu0022/nagioslogserver/scripts/setup-linux.sh</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 github-dark-dimmed" style="background-color: #22272e" tabindex="0"><code><span class="line"><span style="color: #ADBAC7">curl </span><span style="color: #F47067">-</span><span style="color: #ADBAC7">sS </span><span style="color: #F47067">-</span><span style="color: #6CB6FF">O</span><span style="color: #ADBAC7"> </span><span style="color: #F69D50">http</span><span style="color: #ADBAC7">:</span><span style="color: #768390">//u0022your Nagios Log Server ip addressu0022/nagioslogserver/scripts/setup-linux.sh</span></span></code></pre></div>



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



<div class="wp-block-kevinbatdorf-code-block-pro" data-code-block-pro-font-family="Code-Pro-Geist-Mono" style="font-size:.875rem;font-family:Code-Pro-Geist-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:1.5rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)"><span role="button" tabindex="0" style="color:#adbac7;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 bash setup-linux.sh -s u0022your Nagios Log Server ip addressu0022 -p 5544</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 github-dark-dimmed" style="background-color: #22272e" tabindex="0"><code><span class="line"><span style="color: #ADBAC7">sudo bash setup</span><span style="color: #F47067">-</span><span style="color: #ADBAC7">linux.sh </span><span style="color: #F47067">-</span><span style="color: #ADBAC7">s u0022your Nagios Log Server ip addressu0022 </span><span style="color: #F47067">-</span><span style="color: #ADBAC7">p </span><span style="color: #6CB6FF">5544</span></span></code></pre></div>



<p class="wp-block-paragraph">Afterwards you should see a message in your terminal that looks like this:<br><br><em><strong>&#8220;rsyslog is running with the new configuration. Visit your Nagios Log Server dashboard to verify that logs are being received&#8221;</strong></em></p>



<h3 class="wp-block-heading">Step 3: Get IP address and verify incoming logs</h3>



<p class="wp-block-paragraph">To get your IP address go into the terminal and type:</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:#adbac7;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>ip a</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 github-dark-dimmed" style="background-color: #22272e" tabindex="0"><code><span class="line"><span style="color: #ADBAC7">ip a</span></span></code></pre></div>



<p class="wp-block-paragraph">Then take that address and past it into the IP Address field under &#8220;<strong>Verify Incoming Logs</strong>&#8220;. You should then see however many logs come through similar to the image below.</p>



<figure class="wp-block-image size-large"><a href="https://library.nagios.com/wp-content/uploads/2025/02/New-LSR2-IP-Addy-removed.png"><img loading="lazy" decoding="async" width="1024" height="552" src="https://library.nagios.com/wp-content/uploads/2025/02/New-LSR2-IP-Addy-removed-1024x552.png" alt="New LSR2 IP Addy removed" class="wp-image-46740" title="Configuring Debian 12 Logs with Nagios Log Server 2024R2 23" srcset="https://library.nagios.com/wp-content/uploads/2025/02/New-LSR2-IP-Addy-removed-1024x552.png 1024w, https://library.nagios.com/wp-content/uploads/2025/02/New-LSR2-IP-Addy-removed-300x162.png 300w, https://library.nagios.com/wp-content/uploads/2025/02/New-LSR2-IP-Addy-removed-768x414.png 768w, https://library.nagios.com/wp-content/uploads/2025/02/New-LSR2-IP-Addy-removed-1536x828.png 1536w, https://library.nagios.com/wp-content/uploads/2025/02/New-LSR2-IP-Addy-removed-360x194.png 360w, https://library.nagios.com/wp-content/uploads/2025/02/New-LSR2-IP-Addy-removed.png 1899w" sizes="(max-width: 1024px) 100vw, 1024px" /></a><figcaption class="wp-element-caption">LSR2 Verify Incoming Logs</figcaption></figure>



<p class="wp-block-paragraph">After you have verified go to the &#8220;<strong>Dashboards</strong>&#8221; tab on the lefthand side to see various syslog data coming from your Debian 12 machine. </p>



<figure class="wp-block-image size-large"><a href="https://library.nagios.com/wp-content/uploads/2025/02/New-LSR2-Dash-arrow.png"><img loading="lazy" decoding="async" width="1024" height="547" src="https://library.nagios.com/wp-content/uploads/2025/02/New-LSR2-Dash-arrow-1024x547.png" alt="New LSR2 Dash arrow" class="wp-image-46716" title="Configuring Debian 12 Logs with Nagios Log Server 2024R2 24" srcset="https://library.nagios.com/wp-content/uploads/2025/02/New-LSR2-Dash-arrow-1024x547.png 1024w, https://library.nagios.com/wp-content/uploads/2025/02/New-LSR2-Dash-arrow-300x160.png 300w, https://library.nagios.com/wp-content/uploads/2025/02/New-LSR2-Dash-arrow-768x410.png 768w, https://library.nagios.com/wp-content/uploads/2025/02/New-LSR2-Dash-arrow-1536x820.png 1536w, https://library.nagios.com/wp-content/uploads/2025/02/New-LSR2-Dash-arrow-360x192.png 360w, https://library.nagios.com/wp-content/uploads/2025/02/New-LSR2-Dash-arrow.png 1907w" sizes="(max-width: 1024px) 100vw, 1024px" /></a><figcaption class="wp-element-caption">LSR2 Dashboards</figcaption></figure>



<p class="wp-block-paragraph">You can even zoom in further to a certain time frame to see more syslog data like shown here:</p>



<figure class="wp-block-image size-large"><a href="https://library.nagios.com/wp-content/uploads/2025/02/New-LSR2-Dash.png"><img loading="lazy" decoding="async" width="1024" height="557" src="https://library.nagios.com/wp-content/uploads/2025/02/New-LSR2-Dash-1024x557.png" alt="New LSR2 Dash" class="wp-image-46717" title="Configuring Debian 12 Logs with Nagios Log Server 2024R2 25" srcset="https://library.nagios.com/wp-content/uploads/2025/02/New-LSR2-Dash-1024x557.png 1024w, https://library.nagios.com/wp-content/uploads/2025/02/New-LSR2-Dash-300x163.png 300w, https://library.nagios.com/wp-content/uploads/2025/02/New-LSR2-Dash-768x418.png 768w, https://library.nagios.com/wp-content/uploads/2025/02/New-LSR2-Dash-1536x835.png 1536w, https://library.nagios.com/wp-content/uploads/2025/02/New-LSR2-Dash-360x196.png 360w, https://library.nagios.com/wp-content/uploads/2025/02/New-LSR2-Dash.png 1896w" sizes="(max-width: 1024px) 100vw, 1024px" /></a><figcaption class="wp-element-caption">LSR@ Syslog Data</figcaption></figure>



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



<p class="wp-block-paragraph">To watch a video on how to do this click <a href="https://www.youtube.com/watch?v=flMcuXDNRWs" data-type="link" data-id="https://www.youtube.com/watch?v=flMcuXDNRWs" target="_blank" rel="noopener">here </a>and follow us on YouTube to stay up to date on new releases and features.</p>



<p class="wp-block-paragraph">Documentation: Monitoring a New Log Source: <a href="https://www.youtube.com/redirect?event=video_description&amp;redir_token=QUFFLUhqbE9NVWNoSkYxRGFKWEZmcGh6Qld1ejd2S2Zwd3xBQ3Jtc0tudU9tVVVQdnV3Y0tMMmd4TGNtbEtlVVI0ZTB3U1AxWW9qc1BqbXlScW5BUHBQQnJyei1PcFFGTG53TFFFY1psZmUwQzc0cXdKRlFVdWZ1WXBVRk44SDdobVBLRW9jbXE1STZwSE9lb21KbElhUEZaNA&amp;q=https%3A%2F%2Fassets.nagios.com%2Fdownloads%2Fnagios-log-server%2Fdocs%2FMonitoring-A-New-Log-Source-With-Nagios-Log-Server.pdf&amp;v=flMcuXDNRWs" target="_blank" rel="noreferrer noopener">https://assets.nagios.com/downloads/n&#8230;</a></p>



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



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



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



<p class="wp-block-paragraph"></p>
]]></content:encoded>
					
		
		
		<media:content url="https://www.youtube.com/embed/redir_token" medium="video">
			<media:player url="https://www.youtube.com/embed/redir_token" />
			<media:title type="plain">Configuring Debian 12 Logs with Nagios Log Server 2024R2 - Nagios Library</media:title>
			<media:description type="html"><![CDATA[Enjoy the videos and music you love, upload original content, and share it all with friends, family, and the world on YouTube.]]></media:description>
			<media:thumbnail url="https://library.nagios.com/wp-content/uploads/2025/03/NagiosLogo.webp" />
			<media:rating scheme="urn:simple">nonadult</media:rating>
		</media:content>
	</item>
		<item>
		<title>Installing Nagios Cross-Platform Agent on Fedora 39 Workstation</title>
		<link>https://library.nagios.com/documentation/installing-nagios-cross-platform-agent-on-fedora-40-workstation/</link>
		
		<dc:creator><![CDATA[Johnny Mengistu]]></dc:creator>
		<pubDate>Mon, 17 Mar 2025 19:34:22 +0000</pubDate>
				<category><![CDATA[Documentation]]></category>
		<category><![CDATA[Fedora 40]]></category>
		<category><![CDATA[NCPA]]></category>
		<guid isPermaLink="false">https://library.nagios.com/?p=52225</guid>

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



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



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



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



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



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



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



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



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



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



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



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



<p class="wp-block-paragraph">Open a terminal and run the following command to update the system:</p>



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



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



<p class="wp-block-paragraph">Next, install the necessary packages for compiling and running Nagios NCPA:</p>



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



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



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



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



<p class="wp-block-paragraph">Visit the NCPA Downloads Page to find the link to the latest version. Alternatively, you can use the <code>wget</code> command to fetch the <code>.rpm</code> package directly.</p>



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



<p class="wp-block-paragraph"><strong>Note:</strong> Ensure you replace the URL with the latest version number available on the website.</p>



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



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



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



<p class="wp-block-paragraph">Run the following command to install NCPA:</p>



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



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



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



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



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



<p class="wp-block-paragraph">The NCPA configuration file is located at <code>/usr/local/ncpa/etc/ncpa.cfg</code>. Open the configuration file in a text editor like <code>nano</code> or <code>vi</code>:</p>



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



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



<ul class="wp-block-list">
<li><strong>API Token</strong>: NCPA uses an API token for authentication. By default, it will be set to a random value during installation. You can change it to something more secure and memorable. Find the line that starts with <code>api_token</code> and change its value: </li>
</ul>



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



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



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



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



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



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



<p class="wp-block-paragraph">Now, you&#8217;ll need to enable and start the NCPA service to run it in the background:</p>



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



<p class="wp-block-paragraph">Check the status of the service to ensure that it&#8217;s running correctly:</p>



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



<p class="wp-block-paragraph">You should see output indicating that the NCPA service is active and running. If your screen looks similar to the one below then you can skip Step 5. If not continue to Step 5.</p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="672" src="https://library.nagios.com/wp-content/uploads/2025/03/Fedora-41-Firewall-1024x672.png" alt="Fedora 41 Firewall" class="wp-image-52426" title="Installing Nagios Cross-Platform Agent on Fedora 39 Workstation 26" srcset="https://library.nagios.com/wp-content/uploads/2025/03/Fedora-41-Firewall-1024x672.png 1024w, https://library.nagios.com/wp-content/uploads/2025/03/Fedora-41-Firewall-300x197.png 300w, https://library.nagios.com/wp-content/uploads/2025/03/Fedora-41-Firewall-768x504.png 768w, https://library.nagios.com/wp-content/uploads/2025/03/Fedora-41-Firewall.png 1098w" sizes="(max-width: 1024px) 100vw, 1024px" /><figcaption class="wp-element-caption">Fedora Firewall</figcaption></figure>



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



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



<p class="wp-block-paragraph">To allow NCPA traffic through the firewall, run:</p>



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



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



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



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



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



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



<p class="wp-block-paragraph">You should see the NCPA web interface login page. Use the <code>api_token</code> you set in the configuration file to log in. You can also use the NCPA command-line interface (CLI) to query the agent&#8217;s status or get system metrics. To test the API locally, you can use the following curl command:</p>



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



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



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



<p class="wp-block-paragraph">1. Log in to Nagios XI.</p>



<p class="wp-block-paragraph">2. Open the NCPA Wizard by selecting <strong>Configure &gt; Run a Monitoring Wizard &gt; NCPA</strong>. In the search bar type <code>NCPA</code> to find it easily.</p>



<figure class="wp-block-image size-large"><a href="https://library.nagios.com/wp-content/uploads/2025/02/ConfigurationWizard-NCPA.png"><img loading="lazy" decoding="async" width="1024" height="495" src="https://library.nagios.com/wp-content/uploads/2025/02/ConfigurationWizard-NCPA-1024x495.png" alt="ConfigurationWizard NCPA" class="wp-image-70668" title="Installing Nagios Cross-Platform Agent on Fedora 39 Workstation 27" srcset="https://library.nagios.com/wp-content/uploads/2025/02/ConfigurationWizard-NCPA-1024x495.png 1024w, https://library.nagios.com/wp-content/uploads/2025/02/ConfigurationWizard-NCPA-300x145.png 300w, https://library.nagios.com/wp-content/uploads/2025/02/ConfigurationWizard-NCPA-768x371.png 768w, https://library.nagios.com/wp-content/uploads/2025/02/ConfigurationWizard-NCPA-1536x742.png 1536w, https://library.nagios.com/wp-content/uploads/2025/02/ConfigurationWizard-NCPA.png 1920w" sizes="(max-width: 1024px) 100vw, 1024px" /></a><figcaption class="wp-element-caption">NCPA Wizard</figcaption></figure>



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



<figure class="wp-block-image size-large"><a href="https://library.nagios.com/wp-content/uploads/2025/03/NCPA-Config-Info-Step1-Generic-e1791385909933.png"><img loading="lazy" decoding="async" width="1024" height="905" src="https://library.nagios.com/wp-content/uploads/2025/03/NCPA-Config-Info-Step1-Generic-e1791385909933-1024x905.png" alt="NCPA Config Info Step1 Generic e1791385909933" class="wp-image-70675" title="Installing Nagios Cross-Platform Agent on Fedora 39 Workstation 28" srcset="https://library.nagios.com/wp-content/uploads/2025/03/NCPA-Config-Info-Step1-Generic-e1791385909933-1024x905.png 1024w, https://library.nagios.com/wp-content/uploads/2025/03/NCPA-Config-Info-Step1-Generic-e1791385909933-300x265.png 300w, https://library.nagios.com/wp-content/uploads/2025/03/NCPA-Config-Info-Step1-Generic-e1791385909933-768x679.png 768w, https://library.nagios.com/wp-content/uploads/2025/03/NCPA-Config-Info-Step1-Generic-e1791385909933.png 1050w" sizes="(max-width: 1024px) 100vw, 1024px" /></a><figcaption class="wp-element-caption">NCPA Wizard Step 1</figcaption></figure>



<p class="wp-block-paragraph">4. Complete the wizard setup by filling in the rest of the information in the remaining steps to your liking and click&nbsp;<strong>Finish</strong>,&nbsp;or click&nbsp;<strong>Finish w/Defaults</strong>.</p>



<p class="wp-block-paragraph">5. After completing the Wizard, Nagios XI should display the monitored host and its services.</p>



<p class="wp-block-paragraph">6. Navigate to the <strong>Host Status Detail</strong> page to confirm that the system is being monitored.</p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="414" src="https://library.nagios.com/wp-content/uploads/2025/02/NCPA-Fedora-41-Host-Detail-1024x414.png" alt="NCPA Fedora 41 Host Detail" class="wp-image-50615" title="Installing Nagios Cross-Platform Agent on Fedora 39 Workstation 29"><figcaption class="wp-element-caption">NCPA Fedora &#8211; Host Detail</figcaption></figure>



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



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



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



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



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



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



<p class="wp-block-paragraph"><a href="https://www.nagios.org/projects/ncpa/" target="_blank" rel="noreferrer noopener">Visit Our Website</a></p>



<p class="wp-block-paragraph"><a href="https://support.nagios.com/forum" target="_blank" rel="noreferrer noopener">Visit Nagios Support Forum</a></p>



<p class="wp-block-paragraph"><a href="https://exchange.nagios.org/" target="_blank" rel="noreferrer noopener">Visit Nagios Exchange</a></p>



<p class="wp-block-paragraph"><a href="https://library.nagios.com/docs" target="_blank" rel="noreferrer noopener">Visit Nagios Documentation Hub</a></p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>Installing Nagios Cross-Platform Agent on a Fedora 41 Workstation</title>
		<link>https://library.nagios.com/monitoring/installing-nagios-cross-platform-agent-on-a-fedora-41-workstation/</link>
		
		<dc:creator><![CDATA[Johnny Mengistu]]></dc:creator>
		<pubDate>Wed, 26 Feb 2025 22:48:57 +0000</pubDate>
				<category><![CDATA[Monitoring]]></category>
		<category><![CDATA[Solutions]]></category>
		<category><![CDATA[Training]]></category>
		<category><![CDATA[Command Line]]></category>
		<category><![CDATA[Fedora 41]]></category>
		<category><![CDATA[NCPA]]></category>
		<guid isPermaLink="false">https://library.nagios.com/?p=50111</guid>

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



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



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



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



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



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



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



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



<p class="wp-block-paragraph">Before installing any new software, it&#8217;s a good practice to update your system to ensure that all existing packages are up to date with this script:</p>



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



<h3 class="wp-block-heading"><strong>Step 2: Download NCPA</strong></h3>



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



<p class="wp-block-paragraph">Download NCPA by navigating to the <a href="https://www.nagios.org/projects/ncpa/" target="_blank" rel="noreferrer noopener">NCPA page</a> and download the latest version of NCPA for Linux. Alternatively, you can use <strong><code>wget</code> </strong>to download the package directly from the terminal.</p>



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



<p class="wp-block-paragraph">          Your screen should look something like the one below after running that <strong>wget </strong>script:</p>



<figure class="wp-block-image size-large"><a href="https://library.nagios.com/wp-content/uploads/2025/02/Fedora-NCPA-Wget-Script.png"><img loading="lazy" decoding="async" width="650" height="440" src="https://library.nagios.com/wp-content/uploads/2025/02/Fedora-NCPA-Wget-Script.png" alt="Fedora NCPA Wget Script" class="wp-image-50601" title="Installing Nagios Cross-Platform Agent on a Fedora 41 Workstation 30" srcset="https://library.nagios.com/wp-content/uploads/2025/02/Fedora-NCPA-Wget-Script.png 650w, https://library.nagios.com/wp-content/uploads/2025/02/Fedora-NCPA-Wget-Script-300x203.png 300w" sizes="(max-width: 650px) 100vw, 650px" /></a><figcaption class="wp-element-caption">Fedora NCPA Wget Script</figcaption></figure>



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



<p class="wp-block-paragraph">Once the download is complete, install the package using the <code>dnf</code> package manager. During the installation, you may be prompted to confirm the installation of the package. Type <code>y</code> and press <strong>Enter</strong> to proceed.</p>



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



<p class="wp-block-paragraph">During the installation, you may be prompted to confirm the installation of the package. Type <code>y</code> and press <strong>Enter </strong>to proceed.</p>



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



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



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



<p class="wp-block-paragraph">Your screen should look similar to the one below after the script:</p>



<figure class="wp-block-image size-full"><a href="https://library.nagios.com/wp-content/uploads/2025/02/NCPA-Main-Config-File-e1791384306558.png"><img loading="lazy" decoding="async" width="785" height="407" src="https://library.nagios.com/wp-content/uploads/2025/02/NCPA-Main-Config-File-e1791384306558.png" alt="NCPA Main Config File e1791384306558" class="wp-image-48478" title="Installing Nagios Cross-Platform Agent on a Fedora 41 Workstation 31" srcset="https://library.nagios.com/wp-content/uploads/2025/02/NCPA-Main-Config-File-e1791384306558.png 785w, https://library.nagios.com/wp-content/uploads/2025/02/NCPA-Main-Config-File-e1791384306558-300x156.png 300w, https://library.nagios.com/wp-content/uploads/2025/02/NCPA-Main-Config-File-e1791384306558-768x398.png 768w" sizes="(max-width: 785px) 100vw, 785px" /></a><figcaption class="wp-element-caption">NCPA Main Config File</figcaption></figure>



<p class="wp-block-paragraph"><strong>Set a Password for the NCPA API</strong><br>In the configuration file, look for the API key parameter. This is used to authenticate API requests. You should set a strong password for the API key. It should look like this below:</p>



<figure class="wp-block-image size-full"><a href="https://library.nagios.com/wp-content/uploads/2025/02/NCPA-Main-Config-File-API-Comm-String-Token_rev2.png"><img loading="lazy" decoding="async" width="767" height="389" src="https://library.nagios.com/wp-content/uploads/2025/02/NCPA-Main-Config-File-API-Comm-String-Token_rev2.png" alt="NCPA Main Config File API Comm String Token rev2" class="wp-image-70664" title="Installing Nagios Cross-Platform Agent on a Fedora 41 Workstation 32" srcset="https://library.nagios.com/wp-content/uploads/2025/02/NCPA-Main-Config-File-API-Comm-String-Token_rev2.png 767w, https://library.nagios.com/wp-content/uploads/2025/02/NCPA-Main-Config-File-API-Comm-String-Token_rev2-300x152.png 300w" sizes="(max-width: 767px) 100vw, 767px" /></a><figcaption class="wp-element-caption">NCPA API Community String</figcaption></figure>



<p class="wp-block-paragraph">The community string token, by default, might have a series of numbers or it might say <code>my_token</code>. Replace <code>mytoken</code> with a secure API token of your choice. Save the file (<strong>CTRL</strong> + <strong>X</strong>, then <strong>Y</strong>, and <strong>Enter</strong>).</p>



<h3 class="wp-block-heading"><strong>Step 5: Check</strong>,<strong> Install, &amp; Enable Firewall</strong> (UFW)</h3>



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



<p class="wp-block-paragraph">To check the status of&nbsp;<code>firewalld</code>&nbsp;on Fedora 41, you can use the following command:</p>



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



<p class="wp-block-paragraph">Your screen should look like this:</p>



<figure class="wp-block-image size-large"><a href="https://library.nagios.com/wp-content/uploads/2025/02/Fedora-41-Firewall.png"><img loading="lazy" decoding="async" width="1024" height="672" src="https://library.nagios.com/wp-content/uploads/2025/02/Fedora-41-Firewall-1024x672.png" alt="Fedora 41 Firewall" class="wp-image-50569" title="Installing Nagios Cross-Platform Agent on a Fedora 41 Workstation 33" srcset="https://library.nagios.com/wp-content/uploads/2025/02/Fedora-41-Firewall-1024x672.png 1024w, https://library.nagios.com/wp-content/uploads/2025/02/Fedora-41-Firewall-300x197.png 300w, https://library.nagios.com/wp-content/uploads/2025/02/Fedora-41-Firewall-768x504.png 768w, https://library.nagios.com/wp-content/uploads/2025/02/Fedora-41-Firewall.png 1098w" sizes="(max-width: 1024px) 100vw, 1024px" /></a><figcaption class="wp-element-caption">Fedora 41 Firewall</figcaption></figure>



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



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



<p class="wp-block-paragraph">Start the NCPA service:</p>



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



<p class="wp-block-paragraph">Enable the service to start on boot:</p>



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



<p class="wp-block-paragraph">Verify that the service is running:</p>



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



<p class="wp-block-paragraph">You should see an output indicating that the service is active and running. Your screen should look like this:</p>



<figure class="wp-block-image size-large"><a href="https://library.nagios.com/wp-content/uploads/2025/02/Fedora-41-Enable-NCPA-Service-1.png"><img loading="lazy" decoding="async" width="1024" height="381" src="https://library.nagios.com/wp-content/uploads/2025/02/Fedora-41-Enable-NCPA-Service-1-1024x381.png" alt="Fedora 41 Enable NCPA Service 1" class="wp-image-50599" title="Installing Nagios Cross-Platform Agent on a Fedora 41 Workstation 34" srcset="https://library.nagios.com/wp-content/uploads/2025/02/Fedora-41-Enable-NCPA-Service-1-1024x381.png 1024w, https://library.nagios.com/wp-content/uploads/2025/02/Fedora-41-Enable-NCPA-Service-1-300x111.png 300w, https://library.nagios.com/wp-content/uploads/2025/02/Fedora-41-Enable-NCPA-Service-1-768x285.png 768w, https://library.nagios.com/wp-content/uploads/2025/02/Fedora-41-Enable-NCPA-Service-1.png 1087w" sizes="(max-width: 1024px) 100vw, 1024px" /></a><figcaption class="wp-element-caption">Fedora 41 Enable NCPA Service</figcaption></figure>



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



<p class="wp-block-paragraph">1. Open a web browser and go to: <code>https://&lt;NCPA_IP_Address&gt;:5693/</code></p>



<p class="wp-block-paragraph">2. You will see the error message below saying that site isn’t safe to continue. Simply click <strong>Advanced</strong> and proceed to the site.</p>



<p class="wp-block-paragraph">3. On the NCPA login page, enter the community string API token you configured earlier in Step 4 and click <strong>Log In</strong>.</p>



<figure class="wp-block-image size-large"><a href="https://library.nagios.com/wp-content/uploads/2025/02/Web-GUI-Log-In-1.png"><img loading="lazy" decoding="async" width="1024" height="399" src="https://library.nagios.com/wp-content/uploads/2025/02/Web-GUI-Log-In-1-1024x399.png" alt="Web GUI Log In" class="wp-image-50591" title="Installing Nagios Cross-Platform Agent on a Fedora 41 Workstation 35" srcset="https://library.nagios.com/wp-content/uploads/2025/02/Web-GUI-Log-In-1-1024x399.png 1024w, https://library.nagios.com/wp-content/uploads/2025/02/Web-GUI-Log-In-1-300x117.png 300w, https://library.nagios.com/wp-content/uploads/2025/02/Web-GUI-Log-In-1-768x299.png 768w, https://library.nagios.com/wp-content/uploads/2025/02/Web-GUI-Log-In-1-1536x598.png 1536w, https://library.nagios.com/wp-content/uploads/2025/02/Web-GUI-Log-In-1.png 1900w" sizes="(max-width: 1024px) 100vw, 1024px" /></a><figcaption class="wp-element-caption">Web GUI Log In</figcaption></figure>



<p class="wp-block-paragraph">4. You will be directed to the NCPA Dashboard and your screen should look like the one below. Click <strong>See Live Stats</strong> to continue.</p>



<figure class="wp-block-image size-large"><a href="https://library.nagios.com/wp-content/uploads/2025/02/NCPA-Check-Status-1.png"><img loading="lazy" decoding="async" width="804" height="487" src="https://library.nagios.com/wp-content/uploads/2025/02/NCPA-Check-Status-1.png" alt="NCPA Check Status 1" class="wp-image-50578" title="Installing Nagios Cross-Platform Agent on a Fedora 41 Workstation 36" srcset="https://library.nagios.com/wp-content/uploads/2025/02/NCPA-Check-Status-1.png 804w, https://library.nagios.com/wp-content/uploads/2025/02/NCPA-Check-Status-1-300x182.png 300w, https://library.nagios.com/wp-content/uploads/2025/02/NCPA-Check-Status-1-768x465.png 768w" sizes="(max-width: 804px) 100vw, 804px" /></a><figcaption class="wp-element-caption">NCPA Check Status</figcaption></figure>



<figure class="wp-block-image size-large"><a href="https://library.nagios.com/wp-content/uploads/2025/02/NCPA-Dashboard-2.png"><img loading="lazy" decoding="async" width="1024" height="490" src="https://library.nagios.com/wp-content/uploads/2025/02/NCPA-Dashboard-2-1024x490.png" alt="NCPA Dashboard 2" class="wp-image-50597" title="Installing Nagios Cross-Platform Agent on a Fedora 41 Workstation 37" srcset="https://library.nagios.com/wp-content/uploads/2025/02/NCPA-Dashboard-2-1024x490.png 1024w, https://library.nagios.com/wp-content/uploads/2025/02/NCPA-Dashboard-2-300x144.png 300w, https://library.nagios.com/wp-content/uploads/2025/02/NCPA-Dashboard-2-768x367.png 768w, https://library.nagios.com/wp-content/uploads/2025/02/NCPA-Dashboard-2-1536x735.png 1536w, https://library.nagios.com/wp-content/uploads/2025/02/NCPA-Dashboard-2.png 1906w" sizes="(max-width: 1024px) 100vw, 1024px" /></a><figcaption class="wp-element-caption">NCPA Dashboard</figcaption></figure>



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



<p class="wp-block-paragraph">1. Log into Nagios XI.</p>



<p class="wp-block-paragraph">2. Open the NCPA Wizard by selecting <strong>Configure &gt; Run a Monitoring Wizard &gt; NCPA</strong>. In the search bar type <code>NCPA</code> to find it easily.</p>



<figure class="wp-block-image size-large"><a href="https://library.nagios.com/wp-content/uploads/2025/02/ConfigurationWizard-NCPA.png"><img loading="lazy" decoding="async" width="1024" height="495" src="https://library.nagios.com/wp-content/uploads/2025/02/ConfigurationWizard-NCPA-1024x495.png" alt="ConfigurationWizard NCPA" class="wp-image-70668" title="Installing Nagios Cross-Platform Agent on a Fedora 41 Workstation 38" srcset="https://library.nagios.com/wp-content/uploads/2025/02/ConfigurationWizard-NCPA-1024x495.png 1024w, https://library.nagios.com/wp-content/uploads/2025/02/ConfigurationWizard-NCPA-300x145.png 300w, https://library.nagios.com/wp-content/uploads/2025/02/ConfigurationWizard-NCPA-768x371.png 768w, https://library.nagios.com/wp-content/uploads/2025/02/ConfigurationWizard-NCPA-1536x742.png 1536w, https://library.nagios.com/wp-content/uploads/2025/02/ConfigurationWizard-NCPA.png 1920w" sizes="(max-width: 1024px) 100vw, 1024px" /></a><figcaption class="wp-element-caption">NCPA configuration Wizards</figcaption></figure>



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



<p class="wp-block-paragraph">4. Complete the wizard setup by filling in the rest of the information in the remaining steps to your liking and click&nbsp;<strong>Finish</strong>,&nbsp;or click&nbsp;<strong>Finish w/Defaults</strong>.</p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="905" src="https://library.nagios.com/wp-content/uploads/2025/03/NCPA-Config-Info-Step1-Generic-e1791385909933-1024x905.png" alt="NCPA Config Info Step1 Generic e1791385909933" class="wp-image-70675" title="Installing Nagios Cross-Platform Agent on a Fedora 41 Workstation 39" srcset="https://library.nagios.com/wp-content/uploads/2025/03/NCPA-Config-Info-Step1-Generic-e1791385909933-1024x905.png 1024w, https://library.nagios.com/wp-content/uploads/2025/03/NCPA-Config-Info-Step1-Generic-e1791385909933-300x265.png 300w, https://library.nagios.com/wp-content/uploads/2025/03/NCPA-Config-Info-Step1-Generic-e1791385909933-768x679.png 768w, https://library.nagios.com/wp-content/uploads/2025/03/NCPA-Config-Info-Step1-Generic-e1791385909933.png 1050w" sizes="(max-width: 1024px) 100vw, 1024px" /><figcaption class="wp-element-caption">NCPA Wizard Step 1</figcaption></figure>



<p class="wp-block-paragraph">5. After completing the Wizard, Nagios XI should display the monitored host and its services.</p>



<p class="wp-block-paragraph">6. Navigate to the <strong>Host Status Detail</strong> page to confirm that the system is being monitored.</p>



<figure class="wp-block-image size-large"><a href="https://library.nagios.com/wp-content/uploads/2025/02/NCPA-Fedora-41-Host-Detail.png"><img loading="lazy" decoding="async" width="1024" height="414" src="https://library.nagios.com/wp-content/uploads/2025/02/NCPA-Fedora-41-Host-Detail-1024x414.png" alt="NCPA Fedora 41 Host Detail" class="wp-image-50615" title="Installing Nagios Cross-Platform Agent on a Fedora 41 Workstation 40"></a><figcaption class="wp-element-caption">NCPA Fedora 41 &#8211; Host Detail</figcaption></figure>



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



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



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



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



<p class="wp-block-paragraph"><a href="https://www.nagios.org/projects/ncpa/" target="_blank" rel="noreferrer noopener">Visit Our Website</a></p>



<p class="wp-block-paragraph"><a href="https://support.nagios.com/forum" target="_blank" rel="noreferrer noopener">Visit Nagios Support Forum</a></p>



<p class="wp-block-paragraph"><a href="https://exchange.nagios.org/" target="_blank" rel="noreferrer noopener">Visit Nagios Exchange</a></p>



<p class="wp-block-paragraph"><a href="https://library.nagios.com/docs" target="_blank" rel="noreferrer noopener">Visit Nagios Documentation Hub</a></p>
]]></content:encoded>
					
		
		
		<media:content url="https://www.youtube.com/embed/redir_token" medium="video">
			<media:player url="https://www.youtube.com/embed/redir_token" />
			<media:title type="plain">Installing Nagios Cross-Platform Agent on a Fedora 41 Workstation - Nagios Library</media:title>
			<media:description type="html"><![CDATA[Enjoy the videos and music you love, upload original content, and share it all with friends, family, and the world on YouTube.]]></media:description>
			<media:thumbnail url="https://library.nagios.com/wp-content/uploads/2025/02/Fedora-41.png" />
			<media:rating scheme="urn:simple">nonadult</media:rating>
		</media:content>
	</item>
		<item>
		<title>Installing Nagios Cross-Platform Agent on a Debian 12 Workstation</title>
		<link>https://library.nagios.com/documentation/installing-nagios-cross-platform-agent-on-a-debian-12-workstation/</link>
		
		<dc:creator><![CDATA[Johnny Mengistu]]></dc:creator>
		<pubDate>Wed, 19 Feb 2025 23:33:34 +0000</pubDate>
				<category><![CDATA[Documentation]]></category>
		<category><![CDATA[Monitoring]]></category>
		<category><![CDATA[Debian 12]]></category>
		<category><![CDATA[NCPA]]></category>
		<guid isPermaLink="false">https://library.nagios.com/?p=48141</guid>

					<description><![CDATA[Nagios Core is one of the most widely used monitoring solutions for IT infrastructure, and the Nagios Cross-Platform Agent (NCPA) is a versatile and powerful tool for monitoring both Linux and Windows systems. NCPA allows you to monitor system metrics such as CPU usage, memory consumption, disk space, and more. In this guide, we will [&#8230;]]]></description>
										<content:encoded><![CDATA[
<p class="wp-block-paragraph">Nagios Core is one of the most widely used monitoring solutions for IT infrastructure, and the Nagios Cross-Platform Agent (NCPA) is a versatile and powerful tool for monitoring both Linux and Windows systems. NCPA allows you to monitor system metrics such as CPU usage, memory consumption, disk space, and more. In this guide, we will walk you through the steps to install NCPA on a Debian 12 workstation.</p>



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



<p class="wp-block-paragraph">Before starting the installation, ensure that you have the following prerequisites in place:</p>



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



<li>A user with sudo privileges.</li>



<li>Basic knowledge of using the terminal and text editors like nano or vim.</li>



<li>Knowledge of bash scripting </li>



<li>A working instance of Nagios XI</li>
</ul>



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



<p class="wp-block-paragraph">It is always a good idea to make sure your system is up to date before installing any new software. Open a terminal and run the following commands to update the package lists and upgrade existing packages:</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 update
sudo apt upgrade -y</textarea></pre><svg xmlns="http://www.w3.org/2000/svg" style="width:24px;height:24px" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2"><path class="with-check" stroke-linecap="round" stroke-linejoin="round" d="M4.5 12.75l6 6 9-13.5"></path><path class="without-check" stroke-linecap="round" stroke-linejoin="round" d="M16.5 8.25V6a2.25 2.25 0 00-2.25-2.25H6A2.25 2.25 0 003.75 6v8.25A2.25 2.25 0 006 16.5h2.25m8.25-8.25H18a2.25 2.25 0 012.25 2.25V18A2.25 2.25 0 0118 20.25h-7.5A2.25 2.25 0 018.25 18v-1.5m8.25-8.25h-6a2.25 2.25 0 00-2.25 2.25v6"></path></svg></span><pre class="shiki dark-plus" style="background-color: #1E1E1E" tabindex="0"><code><span class="line"><span style="color: #9CDCFE">sudo</span><span style="color: #D4D4D4"> </span><span style="color: #9CDCFE">apt</span><span style="color: #D4D4D4"> </span><span style="color: #9CDCFE">update</span></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">upgrade</span><span style="color: #D4D4D4"> -</span><span style="color: #9CDCFE">y</span></span></code></pre></div>



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



<p class="wp-block-paragraph">Now, you&#8217;ll need to download the NCPA package from Nagios’s official website. You can do this using the wget command. First, navigate to the directory where you want to store the downloaded package. For simplicity, we’ll use the /tmp directory:</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>cd /tmp</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">cd</span><span style="color: #D4D4D4"> /</span><span style="color: #9CDCFE">tmp</span></span></code></pre></div>



<p class="wp-block-paragraph">Next, download the latest NCPA package for Debian. The following command downloads the latest .deb package for Debian systems:</p>



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



<p class="wp-block-paragraph">You should see an image similar to this below if done correctly:</p>



<figure class="wp-block-image size-large"><a href="https://library.nagios.com/wp-content/uploads/2025/02/Download-the-NCPA-Package.png"><img loading="lazy" decoding="async" width="1009" height="292" src="https://library.nagios.com/wp-content/uploads/2025/02/Download-the-NCPA-Package.png" alt="Download the NCPA Package" class="wp-image-48455" title="Installing Nagios Cross-Platform Agent on a Debian 12 Workstation 41" srcset="https://library.nagios.com/wp-content/uploads/2025/02/Download-the-NCPA-Package.png 1009w, https://library.nagios.com/wp-content/uploads/2025/02/Download-the-NCPA-Package-300x87.png 300w, https://library.nagios.com/wp-content/uploads/2025/02/Download-the-NCPA-Package-768x222.png 768w, https://library.nagios.com/wp-content/uploads/2025/02/Download-the-NCPA-Package-360x104.png 360w" sizes="(max-width: 1009px) 100vw, 1009px" /></a><figcaption class="wp-element-caption">NCPA Package</figcaption></figure>



<p class="wp-block-paragraph"><strong>Note</strong>: Ensure that you check the <a href="https://github.com/NagiosEnterprises/ncpa/releases" target="_blank" rel="noopener">NCPA GitHub releases page</a> for the most recent version of NCPA and replace the link above accordingly.</p>



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



<p class="wp-block-paragraph">Once the package is downloaded, you can install it using the<strong> </strong>dpkg command:</p>



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



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



<p class="wp-block-paragraph">After installation, you’ll need to configure the NCPA agent. The configuration file is located at <code>/usr/local/ncpa/etc/ncpa.cfg</code>.</p>



<p class="wp-block-paragraph">To edit the configuration, you can use the script below:</p>



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



<p class="wp-block-paragraph">Your screen should look similar to the one below after running the script:</p>



<figure class="wp-block-image size-large"><a href="https://library.nagios.com/wp-content/uploads/2025/02/NCPA-Main-Config-File-e1791384306558.png"><img loading="lazy" decoding="async" width="785" height="407" src="https://library.nagios.com/wp-content/uploads/2025/02/NCPA-Main-Config-File-e1791384306558.png" alt="NCPA Main Config File e1791384306558" class="wp-image-48478" title="Installing Nagios Cross-Platform Agent on a Debian 12 Workstation 42" srcset="https://library.nagios.com/wp-content/uploads/2025/02/NCPA-Main-Config-File-e1791384306558.png 785w, https://library.nagios.com/wp-content/uploads/2025/02/NCPA-Main-Config-File-e1791384306558-300x156.png 300w, https://library.nagios.com/wp-content/uploads/2025/02/NCPA-Main-Config-File-e1791384306558-768x398.png 768w" sizes="(max-width: 785px) 100vw, 785px" /></a><figcaption class="wp-element-caption">NCPA Config</figcaption></figure>



<h4 class="wp-block-heading"><strong>Set a Password for the NCPA API</strong></h4>



<p class="wp-block-paragraph">In the configuration file, look for the API key parameter. This is used to authenticate API requests. You should set a strong password for the API key. It should look like this below:</p>



<figure class="wp-block-image size-full"><a href="https://library.nagios.com/wp-content/uploads/2025/02/NCPA-Main-Config-File-API-Comm-String-Token_rev2.png"><img loading="lazy" decoding="async" width="767" height="389" src="https://library.nagios.com/wp-content/uploads/2025/02/NCPA-Main-Config-File-API-Comm-String-Token_rev2.png" alt="NCPA Main Config File API Comm String Token rev2" class="wp-image-70664" title="Installing Nagios Cross-Platform Agent on a Debian 12 Workstation 43" srcset="https://library.nagios.com/wp-content/uploads/2025/02/NCPA-Main-Config-File-API-Comm-String-Token_rev2.png 767w, https://library.nagios.com/wp-content/uploads/2025/02/NCPA-Main-Config-File-API-Comm-String-Token_rev2-300x152.png 300w" sizes="(max-width: 767px) 100vw, 767px" /></a><figcaption class="wp-element-caption">Listener Config</figcaption></figure>



<p class="wp-block-paragraph">The community string token, by default, might have a series of numbers or it might say <code>my_token</code>. Replace <code>mytoken</code> with a secure API token of your choice. Save the file (<strong>CTRL</strong> + <strong>X</strong>, then <strong>Y</strong>, and <strong>Enter</strong>).</p>



<h2 class="wp-block-heading"><strong>Step 5: Install &amp; Enable UFW</strong></h2>



<p class="wp-block-paragraph">If you already have UFW (Uncomplicated Firewall) installed and enabled skip this step. If you don&#8217;t, you&#8217;ll need to install UFW with the following scripts. First we&#8217;ll check the status:</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 status</textarea></pre><svg xmlns="http://www.w3.org/2000/svg" style="width:24px;height:24px" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2"><path class="with-check" stroke-linecap="round" stroke-linejoin="round" d="M4.5 12.75l6 6 9-13.5"></path><path class="without-check" stroke-linecap="round" stroke-linejoin="round" d="M16.5 8.25V6a2.25 2.25 0 00-2.25-2.25H6A2.25 2.25 0 003.75 6v8.25A2.25 2.25 0 006 16.5h2.25m8.25-8.25H18a2.25 2.25 0 012.25 2.25V18A2.25 2.25 0 0118 20.25h-7.5A2.25 2.25 0 018.25 18v-1.5m8.25-8.25h-6a2.25 2.25 0 00-2.25 2.25v6"></path></svg></span><pre class="shiki dark-plus" style="background-color: #1E1E1E" tabindex="0"><code><span class="line"><span style="color: #9CDCFE">sudo</span><span style="color: #D4D4D4"> </span><span style="color: #9CDCFE">ufw</span><span style="color: #D4D4D4"> </span><span style="color: #9CDCFE">status</span></span></code></pre></div>



<p class="wp-block-paragraph">Then if it&#8217;s not installed we&#8217;ll need install it, check the status again to make sure it&#8217;s there, enable then reload it. Enter each script individually, not at the same time:</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 ufw
sudo ufw status
sudo ufw enable
sudo ufw reload</textarea></pre><svg xmlns="http://www.w3.org/2000/svg" style="width:24px;height:24px" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2"><path class="with-check" stroke-linecap="round" stroke-linejoin="round" d="M4.5 12.75l6 6 9-13.5"></path><path class="without-check" stroke-linecap="round" stroke-linejoin="round" d="M16.5 8.25V6a2.25 2.25 0 00-2.25-2.25H6A2.25 2.25 0 003.75 6v8.25A2.25 2.25 0 006 16.5h2.25m8.25-8.25H18a2.25 2.25 0 012.25 2.25V18A2.25 2.25 0 0118 20.25h-7.5A2.25 2.25 0 018.25 18v-1.5m8.25-8.25h-6a2.25 2.25 0 00-2.25 2.25v6"></path></svg></span><pre class="shiki dark-plus" style="background-color: #1E1E1E" tabindex="0"><code><span class="line"><span style="color: #9CDCFE">sudo</span><span style="color: #D4D4D4"> </span><span style="color: #9CDCFE">apt</span><span style="color: #D4D4D4"> </span><span style="color: #9CDCFE">install</span><span style="color: #D4D4D4"> </span><span style="color: #9CDCFE">ufw</span></span>
<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">status</span></span>
<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">enable</span></span>
<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">reload</span></span></code></pre></div>



<h2 class="wp-block-heading"><strong>Step 6: Start the NCPA Service</strong></h2>



<p class="wp-block-paragraph">Once you have configured NCPA to your liking and installed UFW, you need to restart 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>systemctl restart 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">systemctl</span><span style="color: #D4D4D4"> </span><span style="color: #9CDCFE">restart</span><span style="color: #D4D4D4"> </span><span style="color: #9CDCFE">ncpa</span></span></code></pre></div>



<p class="wp-block-paragraph">This will restart the service, and NCPA will now use the newly configured token.</p>



<h2 class="wp-block-heading"><strong>Step 7: Configure Firewall</strong></h2>



<p class="wp-block-paragraph">Next we&#8217;ll configure the firewall and allow traffic on port 5693 which is used by NCPA</p>



<p class="wp-block-paragraph">1. Create the necessary directory for UFW application profiles:</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 mkdir -p /etc/ufw/applications.d</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">mkdir</span><span style="color: #D4D4D4"> -</span><span style="color: #9CDCFE">p</span><span style="color: #D4D4D4"> /</span><span style="color: #9CDCFE">etc</span><span style="color: #D4D4D4">/</span><span style="color: #9CDCFE">ufw</span><span style="color: #D4D4D4">/</span><span style="color: #9CDCFE">applications</span><span style="color: #D4D4D4">.</span><span style="color: #9CDCFE">d</span></span></code></pre></div>



<p class="wp-block-paragraph">     2. Create a custom application profile for NCPA. Make sure to enter each script individually and not at the same time.</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 sh -c "echo '&#91;NCPA&#93;' > /etc/ufw/applications.d/ncpa"
sudo sh -c "echo 'title=Nagios Cross Platform Agent' >> /etc/ufw/applications.d/ncpa"
sudo sh -c "echo 'description=Nagios Monitoring Agent' >> /etc/ufw/applications.d/ncpa"
sudo sh -c "echo 'ports=5693/tcp' >> /etc/ufw/applications.d/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">sh</span><span style="color: #D4D4D4"> -</span><span style="color: #9CDCFE">c</span><span style="color: #D4D4D4"> </span><span style="color: #CE9178">&quot;echo &#39;&#91;NCPA&#93;&#39; &gt; /etc/ufw/applications.d/ncpa&quot;</span></span>
<span class="line"><span style="color: #9CDCFE">sudo</span><span style="color: #D4D4D4"> </span><span style="color: #9CDCFE">sh</span><span style="color: #D4D4D4"> -</span><span style="color: #9CDCFE">c</span><span style="color: #D4D4D4"> </span><span style="color: #CE9178">&quot;echo &#39;title=Nagios Cross Platform Agent&#39; &gt;&gt; /etc/ufw/applications.d/ncpa&quot;</span></span>
<span class="line"><span style="color: #9CDCFE">sudo</span><span style="color: #D4D4D4"> </span><span style="color: #9CDCFE">sh</span><span style="color: #D4D4D4"> -</span><span style="color: #9CDCFE">c</span><span style="color: #D4D4D4"> </span><span style="color: #CE9178">&quot;echo &#39;description=Nagios Monitoring Agent&#39; &gt;&gt; /etc/ufw/applications.d/ncpa&quot;</span></span>
<span class="line"><span style="color: #9CDCFE">sudo</span><span style="color: #D4D4D4"> </span><span style="color: #9CDCFE">sh</span><span style="color: #D4D4D4"> -</span><span style="color: #9CDCFE">c</span><span style="color: #D4D4D4"> </span><span style="color: #CE9178">&quot;echo &#39;ports=5693/tcp&#39; &gt;&gt; /etc/ufw/applications.d/ncpa&quot;</span></span></code></pre></div>



<p class="wp-block-paragraph">3. Allow NCPA traffic through the firewall:</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 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">ufw</span><span style="color: #D4D4D4"> </span><span style="color: #9CDCFE">allow</span><span style="color: #D4D4D4"> </span><span style="color: #4FC1FF">NCPA</span></span></code></pre></div>



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



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



<p class="wp-block-paragraph">1. Open a web browser and go to: <code>https://&lt;NCPA_IP_Address&gt;:5693/</code></p>



<p class="wp-block-paragraph">2. You will see the error message below saying that site isn&#8217;t safe to continue. Simply click <strong>Advanced</strong> and proceed to the site.</p>



<figure class="wp-block-image size-large"><a href="https://library.nagios.com/wp-content/uploads/2025/02/NCPA-Warning-Message.png"><img loading="lazy" decoding="async" width="836" height="328" src="https://library.nagios.com/wp-content/uploads/2025/02/NCPA-Warning-Message.png" alt="NCPA Warning Message" class="wp-image-48583" title="Installing Nagios Cross-Platform Agent on a Debian 12 Workstation 44" srcset="https://library.nagios.com/wp-content/uploads/2025/02/NCPA-Warning-Message.png 836w, https://library.nagios.com/wp-content/uploads/2025/02/NCPA-Warning-Message-300x118.png 300w, https://library.nagios.com/wp-content/uploads/2025/02/NCPA-Warning-Message-768x301.png 768w, https://library.nagios.com/wp-content/uploads/2025/02/NCPA-Warning-Message-360x141.png 360w" sizes="(max-width: 836px) 100vw, 836px" /></a><figcaption class="wp-element-caption">Warning Message</figcaption></figure>



<p class="wp-block-paragraph">3. On the NCPA login page, enter the community string API token you configured earlier in Step 4 and click <strong>Log In</strong>.</p>



<p class="wp-block-paragraph">4. You will be directed to the NCPA Dashboard and your screen should look like the one below. Click <strong>See Live Stats</strong> to continue.</p>



<figure class="wp-block-image size-large"><a href="https://library.nagios.com/wp-content/uploads/2025/02/NCPA-Check-Status.png"><img loading="lazy" decoding="async" width="804" height="487" src="https://library.nagios.com/wp-content/uploads/2025/02/NCPA-Check-Status.png" alt="NCPA Check Status" class="wp-image-48581" title="Installing Nagios Cross-Platform Agent on a Debian 12 Workstation 45" srcset="https://library.nagios.com/wp-content/uploads/2025/02/NCPA-Check-Status.png 804w, https://library.nagios.com/wp-content/uploads/2025/02/NCPA-Check-Status-300x182.png 300w, https://library.nagios.com/wp-content/uploads/2025/02/NCPA-Check-Status-768x465.png 768w, https://library.nagios.com/wp-content/uploads/2025/02/NCPA-Check-Status-360x218.png 360w" sizes="(max-width: 804px) 100vw, 804px" /></a><figcaption class="wp-element-caption">NCPA Dashboard &gt; See Live Stats</figcaption></figure>



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



<p class="wp-block-paragraph">1. Log into Nagios XI.</p>



<p class="wp-block-paragraph">2. Open the NCPA Wizard by selecting <strong>Configure &gt; Run a Monitoring Wizard &gt; NCPA</strong>.</p>



<figure class="wp-block-image size-large"><a href="https://library.nagios.com/wp-content/uploads/2025/02/ConfigurationWizard-NCPA.png"><img loading="lazy" decoding="async" width="1024" height="495" src="https://library.nagios.com/wp-content/uploads/2025/02/ConfigurationWizard-NCPA-1024x495.png" alt="ConfigurationWizard NCPA" class="wp-image-70668" title="Installing Nagios Cross-Platform Agent on a Debian 12 Workstation 46" srcset="https://library.nagios.com/wp-content/uploads/2025/02/ConfigurationWizard-NCPA-1024x495.png 1024w, https://library.nagios.com/wp-content/uploads/2025/02/ConfigurationWizard-NCPA-300x145.png 300w, https://library.nagios.com/wp-content/uploads/2025/02/ConfigurationWizard-NCPA-768x371.png 768w, https://library.nagios.com/wp-content/uploads/2025/02/ConfigurationWizard-NCPA-1536x742.png 1536w, https://library.nagios.com/wp-content/uploads/2025/02/ConfigurationWizard-NCPA.png 1920w" sizes="(max-width: 1024px) 100vw, 1024px" /></a><figcaption class="wp-element-caption">NCPA Wizard</figcaption></figure>



<p class="wp-block-paragraph">3. Enter the IP address of the server, the API token you configured in Step 4, and select <strong>Debian</strong> as the system you are using. Click <strong>Next</strong>.</p>



<p class="wp-block-paragraph">4. Complete the Wizard setup and apply configuration changes.</p>



<figure class="wp-block-image size-full"><a href="https://library.nagios.com/wp-content/uploads/2025/02/NCPA-Config-Info-Step1.png"><img loading="lazy" decoding="async" width="621" height="631" src="https://library.nagios.com/wp-content/uploads/2025/02/NCPA-Config-Info-Step1.png" alt="NCPA Config Info Step1" class="wp-image-70669" title="Installing Nagios Cross-Platform Agent on a Debian 12 Workstation 47" srcset="https://library.nagios.com/wp-content/uploads/2025/02/NCPA-Config-Info-Step1.png 621w, https://library.nagios.com/wp-content/uploads/2025/02/NCPA-Config-Info-Step1-295x300.png 295w" sizes="(max-width: 621px) 100vw, 621px" /></a><figcaption class="wp-element-caption">NCPA Wizard Step 1</figcaption></figure>



<p class="wp-block-paragraph">5. After completing the Wizard, Nagios XI should display the monitored host and its services.</p>



<p class="wp-block-paragraph">6. Navigate to the <strong>Host Status Detail</strong> page to confirm that the system is being monitored.</p>



<figure class="wp-block-image size-large"><a href="https://library.nagios.com/wp-content/uploads/2025/02/NCPA-Host-Status-Detail-Debian12.png"><img loading="lazy" decoding="async" width="1024" height="584" src="https://library.nagios.com/wp-content/uploads/2025/02/NCPA-Host-Status-Detail-Debian12-1024x584.png" alt="NCPA Host Status Detail Debian12" class="wp-image-70670" title="Installing Nagios Cross-Platform Agent on a Debian 12 Workstation 48" srcset="https://library.nagios.com/wp-content/uploads/2025/02/NCPA-Host-Status-Detail-Debian12-1024x584.png 1024w, https://library.nagios.com/wp-content/uploads/2025/02/NCPA-Host-Status-Detail-Debian12-300x171.png 300w, https://library.nagios.com/wp-content/uploads/2025/02/NCPA-Host-Status-Detail-Debian12-768x438.png 768w, https://library.nagios.com/wp-content/uploads/2025/02/NCPA-Host-Status-Detail-Debian12.png 1045w" sizes="(max-width: 1024px) 100vw, 1024px" /></a><figcaption class="wp-element-caption">Host Status Detail page</figcaption></figure>



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



<p class="wp-block-paragraph">Installing NCPA on a Debian 12 workstation is a straightforward process that allows you to collect valuable system metrics and monitor your system from Nagios Core. By following these steps, you can ensure that your workstation is integrated into your monitoring setup, providing real-time insights into your system&#8217;s performance and health.</p>



<p class="wp-block-paragraph">Once installed, you can further customize the NCPA configuration to suit your environment, add it to your Nagios monitoring setup, and ensure that your system is continuously monitored for performance issues.</p>



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



<p class="wp-block-paragraph"><a href="https://www.nagios.com" target="_blank" rel="noreferrer noopener">Visit Our Website</a></p>



<p class="wp-block-paragraph"><a href="https://support.nagios.com/forum" target="_blank" rel="noreferrer noopener">Visit Nagios Support Forum</a></p>



<p class="wp-block-paragraph"><a href="https://exchange.nagios.org/" target="_blank" rel="noreferrer noopener">Visit Nagios Exchange</a></p>



<p class="wp-block-paragraph"><a href="https://library.nagios.com/docs" target="_blank" rel="noreferrer noopener">Visit Nagios Documentation Hub</a></p>
]]></content:encoded>
					
		
		
		<media:content url="https://www.youtube.com/embed/redir_token" medium="video">
			<media:player url="https://www.youtube.com/embed/redir_token" />
			<media:title type="plain">Installing Nagios Cross-Platform Agent on a Debian 12 Workstation - Nagios Library</media:title>
			<media:description type="html"><![CDATA[Enjoy the videos and music you love, upload original content, and share it all with friends, family, and the world on YouTube.]]></media:description>
			<media:thumbnail url="https://library.nagios.com/wp-content/uploads/2025/02/Debian-12.jpg" />
			<media:rating scheme="urn:simple">nonadult</media:rating>
		</media:content>
	</item>
	</channel>
</rss>
