<?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>Ayoub Louragli &#8211; Nagios Library</title>
	<atom:link href="https://library.nagios.com/author/alouragli/feed/" rel="self" type="application/rss+xml" />
	<link>https://library.nagios.com</link>
	<description>Complete Nagios monitoring resources and documentation</description>
	<lastBuildDate>Thu, 05 Nov 2026 16:13:09 +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>Ayoub Louragli &#8211; Nagios Library</title>
	<link>https://library.nagios.com</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>Monitoring Pop!_OS 24.04 LTS with NCPA in Nagios XI: A Comprehensive Guide</title>
		<link>https://library.nagios.com/documentation/monitoring-pop_os-24-04-lts-with-ncpa-in-nagios-xi-a-comprehensive-guide/</link>
		
		<dc:creator><![CDATA[Ayoub Louragli]]></dc:creator>
		<pubDate>Mon, 31 Mar 2025 21:56:39 +0000</pubDate>
				<category><![CDATA[Documentation]]></category>
		<category><![CDATA[Monitoring]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[NCPA]]></category>
		<category><![CDATA[Operating System Monitoring]]></category>
		<category><![CDATA[Pop!_OS]]></category>
		<guid isPermaLink="false">https://library.nagios.com/?p=53922</guid>

					<description><![CDATA[Pop!_OS 24.04 LTS, developed by System76, is a performance-oriented Linux distribution tailored for developers, creators, and professionals. Built upon Ubuntu 24.04, it ensures robust compatibility and security. Monitoring Pop!_OS effectively with Nagios XI using the Nagios Cross-Platform Agent (NCPA) allows proactive tracking of critical metrics such as CPU usage, memory consumption, disk space, and active [&#8230;]]]></description>
										<content:encoded><![CDATA[
<p class="wp-block-paragraph">Pop!_OS 24.04 LTS, developed by System76, is a performance-oriented Linux distribution tailored for developers, creators, and professionals. Built upon Ubuntu 24.04, it ensures robust compatibility and security. Monitoring Pop!_OS effectively with Nagios XI using the Nagios Cross-Platform Agent (NCPA) allows proactive tracking of critical metrics such as CPU usage, memory consumption, disk space, and active processes. This guide provides a detailed walkthrough for installing and configuring NCPA v3 on Pop!_OS 24.04 and integrating it seamlessly with Nagios XI.</p>



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



<p class="wp-block-paragraph">Ensure you have:</p>



<ul class="wp-block-list">
<li>A Pop!_OS 24.04 LTS system with sudo privileges</li>



<li>An operational Nagios XI server</li>



<li>Network connectivity between Pop!_OS and Nagios XI (Port 5693 open)</li>



<li>Stable internet access for downloading required packages</li>
</ul>



<h3 class="wp-block-heading"><strong>Step 1: Install NCPA Using DEB Package</strong></h3>



<p class="wp-block-paragraph">Since Pop!_OS is Ubuntu-based, the DEB package method is recommended:</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
wget https://assets.nagios.com/downloads/ncpa3/ncpa-latest.amd64.deb
sudo dpkg -i ncpa-latest.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: #D4D4D4">cd /tmp</span></span>
<span class="line"><span style="color: #D4D4D4">wget https://assets.nagios.com/downloads/ncpa3/ncpa-latest.amd64.deb</span></span>
<span class="line"><span style="color: #D4D4D4">sudo dpkg -i ncpa-latest.amd64.deb</span></span></code></pre></div>



<p class="wp-block-paragraph">Resolve dependency issues if encountered:</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-get install -f</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">sudo apt-get install -f</span></span></code></pre></div>



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



<p class="wp-block-paragraph">NCPA requires an authentication token (community string):</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: #D4D4D4">sudo nano /usr/local/ncpa/etc/ncpa.cfg</span></span></code></pre></div>



<p class="wp-block-paragraph">Modify the line:</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>community_string = mytoken</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">community_string = mytoken</span></span></code></pre></div>



<p class="wp-block-paragraph">to a secure, unique token:</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>community_string = Str0ngT0k3n2025</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">community_string = Str0ngT0k3n2025</span></span></code></pre></div>



<p class="wp-block-paragraph">Save the file and exit (<code>Ctrl+O</code>, <code>Enter</code>, <code>Ctrl+X</code>).</p>



<h3 class="wp-block-heading"><strong>Step 3: Restart NCPA Service</strong></h3>



<p class="wp-block-paragraph">Apply the new 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>sudo systemctl restart ncpa
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: #D4D4D4">sudo systemctl restart ncpa</span></span>
<span class="line"><span style="color: #D4D4D4">sudo systemctl status ncpa</span></span></code></pre></div>



<p class="wp-block-paragraph">Ensure the service shows as <code>active (running)</code>.</p>



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



<p class="wp-block-paragraph">Allow NCPA communication on port 5693:</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/tcp
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: #D4D4D4">sudo ufw allow 5693/tcp</span></span>
<span class="line"><span style="color: #D4D4D4">sudo ufw reload</span></span>
<span class="line"><span style="color: #D4D4D4"></span></span></code></pre></div>



<h3 class="wp-block-heading"><strong>Step 5: Test NCPA Interface</strong></h3>



<p class="wp-block-paragraph">Open your browser and navigate to:</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>https://&lt;PopOS-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: #D4D4D4">https://&lt;PopOS-IP&gt;:5693/</span></span></code></pre></div>



<p class="wp-block-paragraph">Accept SSL warnings (self-signed certificate). Login using your token (<code><strong>Str0ngT0k3n2025</strong></code>) to access the NCPA dashboard.</p>



<h3 class="wp-block-heading"><strong>Step 6: Integrate Pop!_OS Host into Nagios XI</strong></h3>



<ol class="wp-block-list">
<li>Log into Nagios XI.</li>



<li>Navigate to <strong>Configure &gt; Configuration Wizards</strong>.</li>



<li>Select <strong>NCPA</strong> from the wizard list.</li>



<li>Input the following details:
<ul class="wp-block-list">
<li><strong>Host IP:</strong> Your Pop!_OS machine&#8217;s IP</li>



<li><strong>Token:</strong> <code>Str0ngT0k3n2025</code></li>



<li><strong>Port:</strong> <code>5693</code></li>
</ul>
</li>



<li>Select desired metrics for monitoring (CPU, Memory, Disk, Processes).</li>



<li>Complete the wizard and apply the configuration.</li>
</ol>



<p class="wp-block-paragraph">Verify the host addition by navigating to <strong>Monitoring &gt; Hosts</strong>.</p>



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



<ul class="wp-block-list">
<li><strong>NCPA not running:</strong></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>sudo systemctl restart ncpa
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: #D4D4D4">sudo systemctl restart ncpa</span></span>
<span class="line"><span style="color: #D4D4D4">sudo systemctl status ncpa</span></span></code></pre></div>



<ul class="wp-block-list">
<li><strong>Firewall Issues:</strong></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>sudo ufw status | grep 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: #D4D4D4">sudo ufw status | grep 5693</span></span></code></pre></div>



<ul class="wp-block-list">
<li><strong>Token mismatch:</strong></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>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: #D4D4D4">sudo nano /usr/local/ncpa/etc/ncpa.cfg</span></span></code></pre></div>



<p class="wp-block-paragraph">Confirm your token matches the Nagios XI configuration.</p>



<ul class="wp-block-list">
<li><strong>Checking logs:</strong></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>cat /usr/local/ncpa/var/log/ncpa.log</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">cat /usr/local/ncpa/var/log/ncpa.log</span></span></code></pre></div>



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



<p class="wp-block-paragraph">You have successfully configured NCPA on Pop!_OS 24.04 LTS and integrated it with Nagios XI. This setup ensures proactive monitoring and quick troubleshooting of system performance and health issues. For more advanced capabilities, explore passive checks and custom plugins available through the Nagios Knowledgebase and the NCPA documentation.</p>



<p class="wp-block-paragraph"></p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>How to Monitor openSUSE 15 Logs with Nagios Log Server 2024R2</title>
		<link>https://library.nagios.com/monitoring/how-to-monitor-opensuse-15-logs-with-nagios-log-server-2024r2/</link>
		
		<dc:creator><![CDATA[Ayoub Louragli]]></dc:creator>
		<pubDate>Fri, 28 Mar 2025 21:16:10 +0000</pubDate>
				<category><![CDATA[Monitoring]]></category>
		<category><![CDATA[Documentation]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Log Monitoring]]></category>
		<category><![CDATA[openSUSE 15]]></category>
		<category><![CDATA[Operating System Monitoring]]></category>
		<guid isPermaLink="false">https://library.nagios.com/?p=53783</guid>

					<description><![CDATA[Monitoring logs from openSUSE 15 with Nagios Log Server 2024R2 provides crucial visibility into system events, security incidents, and performance anomalies. This guide explains how to configure openSUSE to forward logs to Nagios Log Server and verify their integration with Nagios XI. Step 1: Add a Log Source in Nagios Log Server Step 2: Run [&#8230;]]]></description>
										<content:encoded><![CDATA[
<p class="wp-block-paragraph">Monitoring logs from openSUSE 15 with Nagios Log Server 2024R2 provides crucial visibility into system events, security incidents, and performance anomalies. This guide explains how to configure openSUSE to forward logs to Nagios Log Server and verify their integration with Nagios XI.</p>



<h3 class="wp-block-heading"><strong>Step 1: Add a Log Source in Nagios Log Server</strong></h3>



<ol class="wp-block-list">
<li>Log in to <strong>Nagios Log Server</strong>.</li>



<li>Click <strong>+ Add Log Source</strong>.</li>



<li>Select <strong>Linux</strong> as the source type.</li>
</ol>



<h3 class="wp-block-heading"><strong>Step 2: Run the Auto-Configuration Script on openSUSE</strong></h3>



<ol class="wp-block-list">
<li>Copy the script command from the <strong>Linux Source Setup</strong> page.</li>



<li>On the openSUSE server, run: </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" data-code="curl -sS -O http://&lt;NagiosLogServerIP&gt;/nagioslogserver/scripts/setup-linux.sh sudo bash setup-linux.sh -s &lt;NagiosLogServerIP&gt; -p 5544" style="color:#D4D4D4;display:none" aria-label="Copy" class="code-block-pro-copy-button"><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">curl -sS -O http://&lt;NagiosLogServerIP&gt;/nagioslogserver/scripts/setup-linux.sh sudo bash setup-linux.sh -s &lt;NagiosLogServerIP&gt; -p 5544</span></span></code></pre></div>



<p class="wp-block-paragraph">This sets up <code>rsyslog</code> to forward logs to the Log Server.</p>



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



<h3 class="wp-block-heading"><strong>Step 3: Verify Logs are Received</strong></h3>



<ul class="wp-block-list">
<li>Return to the setup page in <strong>Nagios Log Server</strong>.</li>



<li>Enter the openSUSE server’s IP in the <strong>Verify Incoming Logs</strong> section.</li>



<li>Or run a host query from <strong>Dashboards > Search</strong>: </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" data-code="host.ip:&lt;openSUSE-IP&gt;" style="color:#D4D4D4;display:none" aria-label="Copy" class="code-block-pro-copy-button"><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">host.ip:&lt;openSUSE-IP&gt;</span></span></code></pre></div>



<ul class="wp-block-list">
<li>To test manually, run:</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" data-code="logger &quot;This is a test log entry&quot;" style="color:#D4D4D4;display:none" aria-label="Copy" class="code-block-pro-copy-button"><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">logger &quot;This is a test log entry&quot;</span></span></code></pre></div>



<h3 class="wp-block-heading"><strong>Step 4: (Optional) Manual Configuration</strong></h3>



<p class="wp-block-paragraph">1.Check the <code>rsyslog</code> work directory: </p>



<ol class="wp-block-list"></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" data-code="ls -d /var/lib/rsyslog || ls -d /var/spool/rsyslog" style="color:#D4D4D4;display:none" aria-label="Copy" class="code-block-pro-copy-button"><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">ls -d /var/lib/rsyslog || ls -d /var/spool/rsyslog</span></span></code></pre></div>



<p class="wp-block-paragraph">2.Manually create or edit the forwarding config: </p>



<ol class="wp-block-list"></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" data-code="sudo vi /etc/rsyslog.d/99-nagioslogserver.conf" style="color:#D4D4D4;display:none" aria-label="Copy" class="code-block-pro-copy-button"><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">sudo vi /etc/rsyslog.d/99-nagioslogserver.conf</span></span></code></pre></div>



<p class="wp-block-paragraph">Add the following line: </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" data-code="*.* @&lt;NagiosLogServerIP&gt;:5544;RSYSLOG_SyslogProtocol23Format" style="color:#D4D4D4;display:none" aria-label="Copy" class="code-block-pro-copy-button"><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">*.* @&lt;NagiosLogServerIP&gt;:5544;RSYSLOG_SyslogProtocol23Format</span></span></code></pre></div>



<p class="wp-block-paragraph">3.Restart 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" data-code="sudo systemctl restart rsyslog.service" style="color:#D4D4D4;display:none" aria-label="Copy" class="code-block-pro-copy-button"><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">sudo systemctl restart rsyslog.service</span></span></code></pre></div>



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



<h3 class="wp-block-heading"><strong>Step 5: Link to Nagios XI</strong></h3>



<ul class="wp-block-list">
<li>Utilize queries and alert conditions in <strong>Nagios Log Server</strong> to trigger alerts in <strong>Nagios XI</strong> via API or event handlers.</li>



<li>Integrate log monitoring with service checks for a comprehensive system overview.</li>
</ul>



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



<ul class="wp-block-list">
<li>Logs are forwarded over port 5544; ensure openSUSE’s firewall allows outbound traffic on this port.</li>



<li>The <strong>+ Add Log Source</strong> feature in <strong>Nagios Log Server</strong> allows you to add additional log sources as needed.</li>



<li>Regularly review logs in <strong>Nagios Log Server</strong> to detect system anomalies and security threats.</li>
</ul>



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



<p class="wp-block-paragraph">By following this guide, you can successfully monitor and analyze openSUSE 15 logs with Nagios Log Server 2024R2 in Nagios XI. This setup ensures proactive issue detection and enhances overall system observability. For best results, maintain regular log audits and optimize alert configurations to capture critical events.</p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>How to Monitor openSUSE 15 with SNMP in Nagios XI</title>
		<link>https://library.nagios.com/monitoring/how-to-monitor-opensuse-15-with-snmp-in-nagios-xi/</link>
		
		<dc:creator><![CDATA[Ayoub Louragli]]></dc:creator>
		<pubDate>Fri, 28 Mar 2025 20:51:02 +0000</pubDate>
				<category><![CDATA[Monitoring]]></category>
		<category><![CDATA[Documentation]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[openSUSE 15]]></category>
		<category><![CDATA[Operating System Monitoring]]></category>
		<category><![CDATA[SNMP]]></category>
		<guid isPermaLink="false">https://library.nagios.com/?p=53774</guid>

					<description><![CDATA[Monitoring openSUSE 15 using SNMP in Nagios XI is a powerful way to track system health and performance metrics without installing additional agents. This guide covers SNMP setup on openSUSE and integrating it with Nagios XI. Step 1: Install SNMP on openSUSE 15 As root, run: Step 2: Configure SNMP v2c Access 1. Backup the [&#8230;]]]></description>
										<content:encoded><![CDATA[
<p class="wp-block-paragraph">Monitoring openSUSE 15 using SNMP in Nagios XI is a powerful way to track system health and performance metrics without installing additional agents. This guide covers SNMP setup on openSUSE and integrating it with Nagios XI.</p>



<h3 class="wp-block-heading"><strong>Step 1: Install SNMP on openSUSE 15</strong></h3>



<p class="wp-block-paragraph">As root, 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 zypper install net-snmp net-snmp-tools</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">sudo zypper install net-snmp net-snmp-tools</span></span></code></pre></div>



<h3 class="wp-block-heading"><strong>Step 2: Configure SNMP v2c Access</strong></h3>



<p class="wp-block-paragraph">1. Backup the default 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>sudo cp /etc/snmp/snmpd.conf /etc/snmp/snmpd.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: #D4D4D4">sudo cp /etc/snmp/snmpd.conf /etc/snmp/snmpd.bak</span></span></code></pre></div>



<p class="wp-block-paragraph">2. Replace the configuration with:</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> echo 'rocommunity Str0ngC0mmunity &lt;Nagios-XI-IP>' | sudo tee /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: #D4D4D4"> echo &#39;rocommunity Str0ngC0mmunity &lt;Nagios-XI-IP&gt;&#39; | sudo tee /etc/snmp/snmpd.conf</span></span></code></pre></div>



<p class="wp-block-paragraph">3. Restart 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>sudo systemctl restart snmpd.service</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">sudo systemctl restart snmpd.service</span></span></code></pre></div>



<h3 class="wp-block-heading"><strong>Step 3: Open Firewall Port 161/UDP</strong></h3>



<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 --zone=public --add-port=161/udp
sudo firewall-cmd --zone=public --add-port=161/udp --permanent</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">sudo firewall-cmd --zone=public --add-port=161/udp</span></span>
<span class="line"><span style="color: #D4D4D4">sudo firewall-cmd --zone=public --add-port=161/udp --permanent</span></span></code></pre></div>



<h3 class="wp-block-heading"><strong>Step 4: Enable SNMP on Boot</strong></h3>



<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 snmpd.service</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">sudo systemctl enable snmpd.service</span></span></code></pre></div>



<h3 class="wp-block-heading"><strong>Step 5: Test SNMP Connectivity</strong></h3>



<p class="wp-block-paragraph">From your 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>cd /usr/local/nagios/libexec
./check_snmp_storage.pl -H &lt;openSUSE-IP> -C Str0ngC0mmunity -m "^/$" -w 2 -c 4</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">cd /usr/local/nagios/libexec</span></span>
<span class="line"><span style="color: #D4D4D4">./check_snmp_storage.pl -H &lt;openSUSE-IP&gt; -C Str0ngC0mmunity -m &quot;^/$&quot; -w 2 -c 4</span></span></code></pre></div>



<p class="wp-block-paragraph">You should receive disk usage output. If not, review SNMP and firewall settings.</p>



<h3 class="wp-block-heading"><strong>Step 6: Use the Linux SNMP Wizard in Nagios XI</strong></h3>



<ol class="wp-block-list">
<li>Go to <strong>Configure &gt; Run a Configuration Wizard &gt; Linux SNMP</strong>.</li>



<li>Enter the openSUSE server&#8217;s IP and SNMP community string.</li>



<li>Select the metrics you want (disk usage, processes, etc.).</li>



<li>Adjust thresholds as needed.</li>



<li>Finish the wizard to apply the configuration.</li>
</ol>



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



<ul class="wp-block-list">
<li>openSUSE uses the same net-snmp tools as other Linux distributions.</li>



<li>Port 161/UDP must be open to receive SNMP queries.</li>



<li>SNMP v3 setup is also supported if stronger security is required.</li>
</ul>



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



<p class="wp-block-paragraph">By configuring SNMP on openSUSE 15 and integrating it with Nagios XI, you gain detailed visibility into system performance without installing additional agents. Regularly reviewing Nagios XI dashboards and refining SNMP configurations ensures optimal monitoring and proactive issue resolution.</p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>How to Monitor openSUSE 15 with NCPA in Nagios XI</title>
		<link>https://library.nagios.com/documentation/how-to-monitor-opensuse-15-with-ncpa-in-nagios-xi/</link>
		
		<dc:creator><![CDATA[Ayoub Louragli]]></dc:creator>
		<pubDate>Fri, 28 Mar 2025 19:34:44 +0000</pubDate>
				<category><![CDATA[Documentation]]></category>
		<category><![CDATA[Monitoring]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[NCPA]]></category>
		<category><![CDATA[openSUSE 15]]></category>
		<category><![CDATA[Operating System Monitoring]]></category>
		<guid isPermaLink="false">https://library.nagios.com/?p=53755</guid>

					<description><![CDATA[Monitoring openSUSE 15 with Nagios XI using the NCPA (Nagios Cross Platform Agent) is a simple and powerful method for collecting system metrics like CPU, memory, disk usage, and more. This guide walks through the installation and integration process using accurate instructions from the official NCPA documentation. Step 1: Install NCPA on openSUSE 15 Option [&#8230;]]]></description>
										<content:encoded><![CDATA[
<p class="wp-block-paragraph">Monitoring openSUSE 15 with Nagios XI using the NCPA (Nagios Cross Platform Agent) is a simple and powerful method for collecting system metrics like CPU, memory, disk usage, and more. This guide walks through the installation and integration process using accurate instructions from the official NCPA documentation.</p>



<h3 class="wp-block-heading"><strong>Step 1: Install NCPA on openSUSE 15</strong></h3>



<h4 class="wp-block-heading"><strong>Option 1: Using Nagios Repository (Recommended)</strong></h4>



<ul class="wp-block-list">
<li>Add the Nagios repository for SUSE 15+ (available from <a href="https://repo.nagios.com/" target="_blank" rel="noreferrer noopener">https://repo.nagios.com</a>).</li>



<li>Run: </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> sudo zypper install 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: #D4D4D4"> sudo zypper install ncpa</span></span></code></pre></div>



<h4 class="wp-block-heading"><strong>Option 2: Manual RPM Installation</strong></h4>



<ul class="wp-block-list">
<li>Run the following: </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>cd /tmp wget https://assets.nagios.com/downloads/ncpa3/ncpa-&lt;version>.rpm sudo rpm -ivh ncpa-&lt;version>.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: #D4D4D4">cd /tmp wget https://assets.nagios.com/downloads/ncpa3/ncpa-&lt;version&gt;.rpm sudo rpm -ivh ncpa-&lt;version&gt;.rpm</span></span></code></pre></div>



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



<p class="wp-block-paragraph">1. Edit the configuration file:</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>sudo vi /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: #D4D4D4">sudo vi /usr/local/ncpa/etc/ncpa.cfg</span></span></code></pre></div>



<p class="wp-block-paragraph">2. Set a secure token by modifying:</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>community_string = Str0ngT0k3n</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">community_string = Str0ngT0k3n</span></span></code></pre></div>



<p class="wp-block-paragraph">3. Save and exit (<code>:wq</code>).</p>



<h3 class="wp-block-heading"><strong>Step 3: Restart the NCPA Service</strong></h3>



<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 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: #D4D4D4">sudo systemctl restart ncpa</span></span></code></pre></div>



<h3 class="wp-block-heading"><strong>Step 4: Allow NCPA Port Through the Firewall</strong></h3>



<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 --zone=public --add-port=5693/tcp
sudo firewall-cmd --zone=public --add-port=5693/tcp --permanent</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">sudo firewall-cmd --zone=public --add-port=5693/tcp</span></span>
<span class="line"><span style="color: #D4D4D4">sudo firewall-cmd --zone=public --add-port=5693/tcp --permanent</span></span></code></pre></div>



<h3 class="wp-block-heading"><strong>Step 5: Verify the NCPA Web Interface</strong></h3>



<p class="wp-block-paragraph">1. Open a web browser and go to:</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>https://&lt;openSUSE-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: #D4D4D4">https://&lt;openSUSE-IP&gt;:5693</span></span></code></pre></div>



<p class="wp-block-paragraph">2. Accept any SSL warnings.</p>



<p class="wp-block-paragraph">3. Log in using your configured token.</p>



<h3 class="wp-block-heading"><strong>Step 6: Add the Host in Nagios XI</strong></h3>



<ol class="wp-block-list">
<li>Log in to <strong>Nagios XI</strong>.</li>



<li>Navigate to <strong>Configure &gt; Monitoring Wizard &gt; NCPA</strong>.</li>



<li>Enter your openSUSE IP and token.</li>



<li>Select services (CPU, memory, etc.) to monitor.</li>



<li>Complete the wizard to apply monitoring.</li>
</ol>



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



<ul class="wp-block-list">
<li>NCPA listens on TCP port 5693.</li>



<li>Use a strong token to prevent unauthorized access.</li>



<li>The NCPA web interface includes built-in help and endpoint documentation.</li>
</ul>



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



<p class="wp-block-paragraph">By following this guide, you can successfully monitor openSUSE 15 with Nagios XI using NCPA. This setup allows you to track essential system metrics efficiently and receive alerts on performance issues. Regularly check Nagios XI dashboards to ensure accurate data collection and troubleshoot any connectivity issues by reviewing firewall rules and service statuses.</p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>How to Monitor Ubuntu 20.04 Logs with Nagios Log Server 2024R2</title>
		<link>https://library.nagios.com/techtips/how-to-monitor-ubuntu-20-logs-with-nagios-log-server-2024r2-in-nagios-xi/</link>
		
		<dc:creator><![CDATA[Ayoub Louragli]]></dc:creator>
		<pubDate>Fri, 28 Mar 2025 14:58:01 +0000</pubDate>
				<category><![CDATA[Techtips]]></category>
		<category><![CDATA[Support Tips]]></category>
		<category><![CDATA[Log Monitoring]]></category>
		<category><![CDATA[Ubuntu 20]]></category>
		<guid isPermaLink="false">https://library.nagios.com/?p=53541</guid>

					<description><![CDATA[Monitoring logs from Ubuntu 20.04 using Nagios Log Server 2024R2 is essential for tracking system events, errors, and service activity. This guide walks you through setting up Ubuntu as a log source and verifying log flow in the Nagios XI dashboard. Step 1: Add a New Log Source in Nagios Log Server Step 2: Run [&#8230;]]]></description>
										<content:encoded><![CDATA[
<p class="wp-block-paragraph">Monitoring logs from Ubuntu 20.04 using Nagios Log Server 2024R2 is essential for tracking system events, errors, and service activity. This guide walks you through setting up Ubuntu as a log source and verifying log flow in the Nagios XI dashboard.</p>



<h3 class="wp-block-heading"><strong>Step 1: Add a New Log Source in Nagios Log Server</strong></h3>



<ol class="wp-block-list">
<li>Log in to <strong>Nagios Log Server</strong>.</li>



<li>Click <strong>+ Add Log Source</strong> or navigate to the <strong>Add a Log Source</strong> section.</li>



<li>Select <strong>Linux</strong> from the available source types.</li>
</ol>



<h3 class="wp-block-heading"><strong>Step 2: Run the Auto-Configuration Script on Ubuntu</strong></h3>



<ol class="wp-block-list">
<li>On the <strong>Linux Source Setup</strong> page, copy the provided curl command.</li>



<li>SSH into your Ubuntu 20 machine as a root user.</li>



<li>Paste and execute the script: </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>curl -sS -O http://&lt;NagiosLogServerIP>/nagioslogserver/scripts/setup-linux.sh sudo bash setup-linux.sh -s &lt;NagiosLogServerIP> -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 dark-plus" style="background-color: #1E1E1E" tabindex="0"><code><span class="line"><span style="color: #D4D4D4">curl -sS -O http://&lt;NagiosLogServerIP&gt;/nagioslogserver/scripts/setup-linux.sh sudo bash setup-linux.sh -s &lt;NagiosLogServerIP&gt; -p 5544</span></span></code></pre></div>



<p class="wp-block-paragraph">This sets up <code>rsyslog</code> to forward logs to your Nagios Log Server.</p>



<h3 class="wp-block-heading"><strong>Step 3: Verify Incoming Logs</strong></h3>



<ul class="wp-block-list">
<li>Use the <strong>Verify Incoming Logs</strong> field by entering the Ubuntu machine&#8217;s IP.</li>



<li>Or navigate to <strong>Dashboards &gt; Nagios Log Server Search</strong> and run: </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>host.ip:&lt;Ubuntu-IP></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">host.ip:&lt;Ubuntu-IP&gt;</span></span></code></pre></div>



<ul class="wp-block-list">
<li>Test log submission with: </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>logger "This is a test log entry"</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">logger &quot;This is a test log entry&quot;</span></span></code></pre></div>



<ul class="wp-block-list">
<li>Check if the test log appears in <strong>Nagios Log Server</strong>.</li>
</ul>



<h3 class="wp-block-heading"><strong>Step 4: Manually Configure rsyslog (Advanced Users)</strong></h3>



<p class="wp-block-paragraph">If you prefer a manual setup:</p>



<p class="wp-block-paragraph">1. Verify your rsyslog working 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>ls -d /var/lib/rsyslog || ls -d /var/spool/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: #D4D4D4">ls -d /var/lib/rsyslog || ls -d /var/spool/rsyslog</span></span></code></pre></div>



<p class="wp-block-paragraph">2. Edit the config 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>sudo nano /etc/rsyslog.d/99-nagioslogserver.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: #D4D4D4">sudo nano /etc/rsyslog.d/99-nagioslogserver.conf</span></span></code></pre></div>



<p class="wp-block-paragraph">Add the following line:</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>*.* @&lt;NagiosLogServerIP>:5544;RSYSLOG_SyslogProtocol23Format</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">*.* @&lt;NagiosLogServerIP&gt;:5544;RSYSLOG_SyslogProtocol23Format</span></span></code></pre></div>



<p class="wp-block-paragraph">3. Restart <code>rsyslog</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 systemctl restart rsyslog.service</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">sudo systemctl restart rsyslog.service</span></span></code></pre></div>



<p class="wp-block-paragraph">4. Confirm logs are reaching the 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>tail -f /var/log/syslog | grep 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: #D4D4D4">tail -f /var/log/syslog | grep rsyslog</span></span></code></pre></div>



<h3 class="wp-block-heading"><strong>Step 5: Integrate Log Server with Nagios XI (Optional Alerting)</strong></h3>



<ul class="wp-block-list">
<li>Configure <strong>Nagios XI</strong> to receive alerts for specific log patterns from <strong>Nagios Log Server</strong>.</li>



<li>Set up alert queries within Nagios Log Server to trigger notifications in XI.</li>



<li>Use <strong>Event Handlers</strong> or the <strong>Nagios XI API</strong> for automated responses based on log events.</li>
</ul>



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



<ul class="wp-block-list">
<li>Ensure the Ubuntu system allows outbound traffic to Nagios Log Server on port 5544.</li>



<li>Check <code>/var/log/syslog</code> for local log activity.</li>



<li>Review <code>/var/log/rsyslog.log</code> for configuration errors.</li>



<li>Run the following to confirm rsyslog is active: </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>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: #D4D4D4">sudo systemctl status rsyslog</span></span></code></pre></div>



<ul class="wp-block-list">
<li>Use <code>tcpdump</code> to check if logs are sent to Nagios Log Server: </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>sudo tcpdump -i any port 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">sudo tcpdump -i any port 5544</span></span></code></pre></div>



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



<ul class="wp-block-list">
<li>Logs are forwarded over port 5544 by default.</li>



<li>Use secure log transmission if required by enabling TLS in <code>rsyslog</code>.</li>



<li>Regularly review log retention and indexing settings in Nagios Log Server.</li>
</ul>



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



<ul class="wp-block-list">
<li><a href="https://support.nagios.com/forum/" target="_blank" rel="noopener">Nagios Forum</a></li>



<li><a href="https://library.nagios.com/products/nagios-xi/documentation/" target="_blank" rel="noreferrer noopener">Nagios XI Documentation</a></li>
</ul>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>How to Monitor Ubuntu 20.04 Using SNMP in Nagios XI</title>
		<link>https://library.nagios.com/documentation/how-to-monitor-ubuntu-20-04-using-snmp-in-nagios-xi/</link>
		
		<dc:creator><![CDATA[Ayoub Louragli]]></dc:creator>
		<pubDate>Wed, 26 Mar 2025 19:39:56 +0000</pubDate>
				<category><![CDATA[Documentation]]></category>
		<category><![CDATA[Monitoring]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Operating System Monitoring]]></category>
		<category><![CDATA[SNMP]]></category>
		<category><![CDATA[Ubuntu 20]]></category>
		<guid isPermaLink="false">https://library.nagios.com/?p=53530</guid>

					<description><![CDATA[Monitoring Ubuntu 20.04 using SNMP (Simple Network Management Protocol) in Nagios XI provides an agentless monitoring solution for tracking critical system metrics such as CPU load, disk usage, and running processes. SNMP is lightweight and widely used but requires proper configuration for security and performance. This guide will walk you through setting up SNMP and [&#8230;]]]></description>
										<content:encoded><![CDATA[
<p class="wp-block-paragraph">Monitoring Ubuntu 20.04 using SNMP (Simple Network Management Protocol) in Nagios XI provides an agentless monitoring solution for tracking critical system metrics such as CPU load, disk usage, and running processes. SNMP is lightweight and widely used but requires proper configuration for security and performance. This guide will walk you through setting up SNMP and integrating it with Nagios XI.</p>



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



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



<ul class="wp-block-list">
<li>An Ubuntu 20.04 system with root or sudo access.</li>



<li>A Nagios XI server with SNMP monitoring enabled.</li>



<li>A valid SNMP community string (for SNMP v2c) or a secure SNMPv3 user.</li>



<li>Open UDP port 161 for SNMP traffic.</li>
</ul>



<h3 class="wp-block-heading"><strong>Step 1: Install SNMP on Ubuntu 20.04</strong></h3>



<p class="wp-block-paragraph">Update your package list and install 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>sudo apt-get update
sudo apt-get install snmpd libsnmp-dev -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: #D4D4D4">sudo apt-get update</span></span>
<span class="line"><span style="color: #D4D4D4">sudo apt-get install snmpd libsnmp-dev -y</span></span></code></pre></div>



<h3 class="wp-block-heading"><strong>Step 2: Configure SNMP v2c</strong></h3>



<p class="wp-block-paragraph">1. Backup the default 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>sudo cp /etc/snmp/snmpd.conf /etc/snmp/snmpd.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: #D4D4D4">sudo cp /etc/snmp/snmpd.conf /etc/snmp/snmpd.bak</span></span></code></pre></div>



<p class="wp-block-paragraph">2. Replace it with a new 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> sudo sh -c "echo 'rocommunity Str0ngC0mmunity &lt;Nagios-XI-IP> default' > /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: #D4D4D4"> sudo sh -c &quot;echo &#39;rocommunity Str0ngC0mmunity &lt;Nagios-XI-IP&gt; default&#39; &gt; /etc/snmp/snmpd.conf&quot;</span></span></code></pre></div>



<p class="wp-block-paragraph"> Replace <code>&lt;Nagios-XI-IP&gt;</code> with the actual IP address of your Nagios XI server.</p>



<p class="wp-block-paragraph">3. Restart the SNMP 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 restart snmpd.service</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">sudo systemctl restart snmpd.service</span></span></code></pre></div>



<p class="wp-block-paragraph">4. Verify that SNMP 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 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: #D4D4D4">sudo systemctl status snmpd</span></span></code></pre></div>



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



<p class="wp-block-paragraph">:small_blue_diamond: <strong>Security Note</strong>: SNMP v2c does not support encryption. For better security, use SNMP v3, which includes authentication and encryption.</p>



<h3 class="wp-block-heading"><strong>Step 3: Configure Firewall</strong></h3>



<p class="wp-block-paragraph">To allow SNMP traffic through UFW (Uncomplicated 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 ufw allow 161/udp
sudo ufw reload
sudo ufw status | grep 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">sudo ufw allow 161/udp</span></span>
<span class="line"><span style="color: #D4D4D4">sudo ufw reload</span></span>
<span class="line"><span style="color: #D4D4D4">sudo ufw status | grep 161</span></span></code></pre></div>



<h3 class="wp-block-heading"><strong>Step 4: Enable SNMP on Boot</strong></h3>



<p class="wp-block-paragraph">Ensure SNMP starts automatically after reboots:</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 snmpd.service</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">sudo systemctl enable snmpd.service</span></span></code></pre></div>



<h3 class="wp-block-heading"><strong>Step 5: Test SNMP Communication</strong></h3>



<p class="wp-block-paragraph">From your Nagios XI server, test if SNMP is responding:</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 Str0ngC0mmunity &lt;Ubuntu-IP> system</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">snmpwalk -v2c -c Str0ngC0mmunity &lt;Ubuntu-IP&gt; system</span></span></code></pre></div>



<p class="wp-block-paragraph">Expected output:</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>SNMPv2-MIB::sysDescr.0 = STRING: Linux ubuntu20 5.4.0-91-generic x86_64</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">SNMPv2-MIB::sysDescr.0 = STRING: Linux ubuntu20 5.4.0-91-generic x86_64</span></span></code></pre></div>



<p class="wp-block-paragraph">:small_blue_diamond: <strong>Troubleshooting</strong>: If SNMP doesn’t respond, check logs:</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 journalctl -u snmpd --no-pager | tail -20</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">sudo journalctl -u snmpd --no-pager | tail -20</span></span></code></pre></div>



<h3 class="wp-block-heading"><strong>Step 6: Integrate SNMP with Nagios XI</strong></h3>



<ol class="wp-block-list">
<li>Log in to Nagios XI.</li>



<li>Go to <strong>Configure &gt; Run a Configuration Wizard &gt; Linux SNMP</strong>.</li>



<li>Enter the Ubuntu IP and SNMP community string (<code>Str0ngC0mmunity</code>).</li>



<li>Select SNMP v2c or SNMP v3 (recommended for security).</li>



<li>Choose the metrics you want to monitor (CPU, disk, processes, etc.).</li>



<li>Set warning/critical thresholds.</li>



<li>Finish the wizard and apply the configuration.</li>
</ol>



<h3 class="wp-block-heading"><strong>Troubleshooting &amp; Common Issues</strong></h3>



<p class="wp-block-paragraph"><strong>1. SNMP Service Not Responding</strong></p>



<ul class="wp-block-list">
<li>Check if SNMP is running: </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>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: #D4D4D4">sudo systemctl status snmpd</span></span></code></pre></div>



<ul class="wp-block-list">
<li>Restart if needed: </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>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: #D4D4D4">sudo systemctl restart snmpd</span></span></code></pre></div>



<p class="wp-block-paragraph"><strong>2. SNMP Query Fails from Nagios XI</strong></p>



<ul class="wp-block-list">
<li>Ensure port 161/UDP is open: </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>sudo netstat -tulnp | grep 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">sudo netstat -tulnp | grep 161</span></span></code></pre></div>



<ul class="wp-block-list">
<li>If SNMP is not listening, restart the service.</li>
</ul>



<p class="wp-block-paragraph"><strong>3. Incorrect Community String</strong></p>



<ul class="wp-block-list">
<li>Verify the correct community string in <code>/etc/snmp/snmpd.conf</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>cat /etc/snmp/snmpd.conf | grep rocommunity</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">cat /etc/snmp/snmpd.conf | grep rocommunity</span></span></code></pre></div>



<p class="wp-block-paragraph"><strong>4. Test from Nagios XI Server</strong> Run an SNMP check:</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 /usr/local/nagios/libexec
./check_snmp_storage.pl -H &lt;Ubuntu-IP> -C Str0ngC0mmunity -m "^/$" -w 80 -c 90</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">cd /usr/local/nagios/libexec</span></span>
<span class="line"><span style="color: #D4D4D4">./check_snmp_storage.pl -H &lt;Ubuntu-IP&gt; -C Str0ngC0mmunity -m &quot;^/$&quot; -w 80 -c 90</span></span></code></pre></div>



<p class="wp-block-paragraph">This checks disk usage, warning at 80% and critical at 90%.</p>



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



<ul class="wp-block-list">
<li>SNMP v2c is simple but lacks encryption. Use SNMP v3 for secure monitoring.</li>



<li>Ensure port 161/UDP is open between Nagios XI and Ubuntu.</li>



<li>Test SNMP connectivity before integrating with Nagios XI.</li>



<li>For advanced monitoring, configure SNMP traps for event-based alerts.</li>
</ul>



<h3 class="wp-block-heading"><strong>For More Details</strong></h3>



<ul class="wp-block-list">
<li><a href="https://support.nagios.com/kb/" target="_blank" rel="noopener">Nagios XI Documentation</a></li>



<li><a href="https://support.nagios.com/forum/" target="_blank" rel="noopener">Nagios Forum</a></li>
</ul>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>Step-by-Step Guide: Monitoring Ubuntu 20.04 with NCPA in Nagios XI</title>
		<link>https://library.nagios.com/documentation/step-by-step-guide-monitoring-ubuntu-20-04-with-ncpa-in-nagios-xi/</link>
		
		<dc:creator><![CDATA[Ayoub Louragli]]></dc:creator>
		<pubDate>Wed, 26 Mar 2025 19:13:59 +0000</pubDate>
				<category><![CDATA[Documentation]]></category>
		<category><![CDATA[Monitoring]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[NCPA]]></category>
		<category><![CDATA[Operating System Monitoring]]></category>
		<category><![CDATA[Ubuntu 20]]></category>
		<guid isPermaLink="false">https://library.nagios.com/?p=53514</guid>

					<description><![CDATA[Effective system monitoring is vital for ensuring optimal performance and identifying issues early. The Nagios Cross-Platform Agent (NCPA) offers a lightweight, secure, and modern method for monitoring Linux systems like Ubuntu 20.04. Unlike traditional tools such as SNMP, NCPA uses a RESTful API and provides detailed system metrics through an easy-to-use interface. This guide walks [&#8230;]]]></description>
										<content:encoded><![CDATA[
<p class="wp-block-paragraph">Effective system monitoring is vital for ensuring optimal performance and identifying issues early. The Nagios Cross-Platform Agent (NCPA) offers a lightweight, secure, and modern method for monitoring Linux systems like Ubuntu 20.04. Unlike traditional tools such as SNMP, NCPA uses a RESTful API and provides detailed system metrics through an easy-to-use interface. This guide walks you through the installation and configuration of NCPA on Ubuntu 20.04, enabling full integration with Nagios XI.</p>



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



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



<ul class="wp-block-list">
<li>A system running Ubuntu 20.04 or newer with root/sudo access</li>



<li>Nagios XI installed and accessible (with the NCPA wizard enabled)</li>



<li>Network connectivity between the Ubuntu host and Nagios XI</li>



<li>A stable internet connection for package installation</li>
</ul>



<h3 class="wp-block-heading"><strong>Step 1: Install the Nagios Repository</strong></h3>



<p class="wp-block-paragraph">The recommended method is to install NCPA using the Nagios repository:</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>echo "deb https://repo.nagios.com/deb/$(lsb_release -cs) /" | sudo tee /etc/apt/sources.list.d/nagios.list
wget -qO - https://repo.nagios.com/GPG-KEY-NAGIOS-V3 | sudo apt-key add -
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: #D4D4D4">echo &quot;deb https://repo.nagios.com/deb/$(lsb_release -cs) /&quot; | sudo tee /etc/apt/sources.list.d/nagios.list</span></span>
<span class="line"><span style="color: #D4D4D4">wget -qO - https://repo.nagios.com/GPG-KEY-NAGIOS-V3 | sudo apt-key add -</span></span>
<span class="line"><span style="color: #D4D4D4">sudo apt update</span></span></code></pre></div>



<h3 class="wp-block-heading"><strong>Step 2: Install NCPA on Ubuntu 20.04</strong></h3>



<p class="wp-block-paragraph">Install the NCPA agent:</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 ncpa -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: #D4D4D4">sudo apt install ncpa -y</span></span></code></pre></div>



<p class="wp-block-paragraph">Alternatively, download and install the DEB 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>cd /tmp
wget https://assets.nagios.com/downloads/ncpa3/ncpa-latest.amd64.deb
sudo dpkg -i ncpa-latest.amd64.deb
sudo apt-get install -f</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">cd /tmp</span></span>
<span class="line"><span style="color: #D4D4D4">wget https://assets.nagios.com/downloads/ncpa3/ncpa-latest.amd64.deb</span></span>
<span class="line"><span style="color: #D4D4D4">sudo dpkg -i ncpa-latest.amd64.deb</span></span>
<span class="line"><span style="color: #D4D4D4">sudo apt-get install -f</span></span></code></pre></div>



<p class="wp-block-paragraph">Verify installation:</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>ncpa --version</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">ncpa --version</span></span></code></pre></div>



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



<p class="wp-block-paragraph">Set your API token by editing the config 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>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: #D4D4D4">sudo nano /usr/local/ncpa/etc/ncpa.cfg</span></span></code></pre></div>



<p class="wp-block-paragraph">Find the line:</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>community_string = mytoken</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">community_string = mytoken</span></span></code></pre></div>



<p class="wp-block-paragraph">Replace <code>mytoken</code> with a strong, unique token (e.g., <code>K9pL3mX7vR2tQ8nJ</code>). Save and close.</p>



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



<p class="wp-block-paragraph">Ensure NCPA runs at boot and is currently 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>sudo systemctl enable ncpa
sudo systemctl restart ncpa
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: #D4D4D4">sudo systemctl enable ncpa</span></span>
<span class="line"><span style="color: #D4D4D4">sudo systemctl restart ncpa</span></span>
<span class="line"><span style="color: #D4D4D4">sudo systemctl status ncpa</span></span></code></pre></div>



<p class="wp-block-paragraph">Check for <code>active (running)</code> status.</p>



<h3 class="wp-block-heading"><strong>Step 5: Configure Firewall Rules</strong></h3>



<p class="wp-block-paragraph">If using UFW, open port 5693:</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/tcp
sudo ufw reload
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: #D4D4D4">sudo ufw allow 5693/tcp</span></span>
<span class="line"><span style="color: #D4D4D4">sudo ufw reload</span></span>
<span class="line"><span style="color: #D4D4D4">sudo ufw status</span></span></code></pre></div>



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



<p class="wp-block-paragraph">Visit the NCPA interface in your browser:</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>https://&lt;Ubuntu-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: #D4D4D4">https://&lt;Ubuntu-IP&gt;:5693/</span></span></code></pre></div>



<p class="wp-block-paragraph">Accept the browser’s self-signed certificate warning. Enter your token and verify the dashboard loads.</p>



<h3 class="wp-block-heading"><strong>Step 7: Add Ubuntu Host to Nagios XI Using NCPA Wizard</strong></h3>



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



<p class="wp-block-paragraph">2. Navigate to <strong>Configure &gt; Configuration Wizards</strong>.</p>



<p class="wp-block-paragraph">3. Select <strong>NCPA</strong>.</p>



<figure class="wp-block-image size-large"><a href="https://library.nagios.com/wp-content/uploads/2025/03/NCPA-8.png"><img fetchpriority="high" decoding="async" width="1024" height="521" src="https://library.nagios.com/wp-content/uploads/2025/03/NCPA-8-1024x521.png" alt="NCPA 8" class="wp-image-53526" title="Step-by-Step Guide: Monitoring Ubuntu 20.04 with NCPA in Nagios XI 1" srcset="https://library.nagios.com/wp-content/uploads/2025/03/NCPA-8-1024x521.png 1024w, https://library.nagios.com/wp-content/uploads/2025/03/NCPA-8-300x153.png 300w, https://library.nagios.com/wp-content/uploads/2025/03/NCPA-8-768x391.png 768w, https://library.nagios.com/wp-content/uploads/2025/03/NCPA-8-1536x781.png 1536w, https://library.nagios.com/wp-content/uploads/2025/03/NCPA-8.png 1595w" sizes="(max-width: 1024px) 100vw, 1024px" /></a><figcaption class="wp-element-caption">ncpa wizard</figcaption></figure>



<p class="wp-block-paragraph">4. Enter the Ubuntu system’s IP address and API token.</p>



<p class="wp-block-paragraph">5. Choose which services to monitor (CPU, memory, disk, etc.).</p>



<p class="wp-block-paragraph">6. Apply configuration and confirm data collection.</p>



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



<h3 class="wp-block-heading"><strong>Common Issues &amp; Fixes</strong></h3>



<p class="wp-block-paragraph"><strong>NCPA Service Not Running</strong></p>



<ul class="wp-block-list">
<li>Check logs: <code>sudo journalctl -u ncpa --no-pager | tail -20</code></li>



<li>Restart service: <code>sudo systemctl restart ncpa</code></li>
</ul>



<p class="wp-block-paragraph"><strong>Host Appears &#8220;Down&#8221; in Nagios XI</strong></p>



<ul class="wp-block-list">
<li>Confirm the firewall is open on port 5693</li>



<li>Verify NCPA is running</li>



<li>Recheck Nagios XI host and service definitions</li>
</ul>



<p class="wp-block-paragraph"><strong>Incorrect API Token</strong></p>



<ul class="wp-block-list">
<li>Ensure the correct token is set in <code>ncpa.cfg</code></li>



<li>Restart NCPA after updating the token: <code>sudo systemctl restart ncpa</code></li>
</ul>



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



<p class="wp-block-paragraph">You have now installed and configured NCPA on Ubuntu 20.04 and integrated it with Nagios XI for comprehensive system monitoring. This setup provides a secure and powerful way to track server performance and gain operational visibility.</p>



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



<ul class="wp-block-list">
<li><a href="https://support.nagios.com/forum/" target="_blank" rel="noopener">Nagios Support Forum</a></li>



<li><a href="https://library.nagios.com/docs" target="_blank" rel="noreferrer noopener">Nagios Documentation</a></li>



<li><a href="https://www.nagios.org/ncpa/" target="_blank" rel="noopener">NCPA Downloads</a></li>
</ul>



<p class="wp-block-paragraph"></p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>How to Monitor Websensor EM08 in Nagios XI: Step-by-Step Guide for IT Administrators</title>
		<link>https://library.nagios.com/documentation/how-to-monitor-websensor-em08-in-nagios-xi-step-by-step-guide-for-it-administrators/</link>
		
		<dc:creator><![CDATA[Ayoub Louragli]]></dc:creator>
		<pubDate>Fri, 07 Mar 2025 22:41:45 +0000</pubDate>
				<category><![CDATA[Documentation]]></category>
		<category><![CDATA[Monitoring]]></category>
		<category><![CDATA[Websensor]]></category>
		<guid isPermaLink="false">https://library.nagios.com/?p=51734</guid>

					<description><![CDATA[Monitoring environmental conditions is essential for data centers, server rooms, and industrial facilities to prevent overheating, humidity issues, or excessive light exposure. The Websensor EM08 from eSensors provides real-time environmental data, including temperature, relative humidity, and light levels. By integrating the Websensor EM08 with Nagios XI, administrators can: &#8211; Monitor environmental conditions continuously. &#8211; Receive [&#8230;]]]></description>
										<content:encoded><![CDATA[
<p class="wp-block-paragraph">Monitoring environmental conditions is essential for <strong>data centers, server rooms, and industrial facilities</strong> to prevent overheating, humidity issues, or excessive light exposure. The <strong>Websensor EM08</strong> from <strong>eSensors</strong> provides real-time environmental data, including <strong>temperature, relative humidity, and light levels</strong>.</p>



<p class="wp-block-paragraph">By integrating the Websensor EM08 with <strong>Nagios XI</strong>, administrators can:<br> &#8211; <strong>Monitor environmental conditions continuously.</strong><br> &#8211; <strong>Receive alerts when conditions exceed predefined thresholds.</strong><br> &#8211; <strong>Ensure IT infrastructure remains within safe operating conditions.</strong></p>



<p class="wp-block-paragraph">This guide outlines the steps to configure <strong>Nagios XI</strong> to monitor a <strong>Websensor EM08</strong> using its built-in <strong>Esensors Websensor wizard</strong>.</p>



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



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



<ul class="wp-block-list">
<li><strong>Nagios XI (latest version) installed and running.</strong></li>



<li><strong>A Websensor EM08</strong> configured on your network.</li>



<li><strong>Administrator access</strong> to both <strong>Nagios XI</strong> and the Websensor EM08.</li>



<li><strong>A static IP address or DHCP reservation</strong> assigned to the Websensor.</li>
</ul>



<h2 class="wp-block-heading">Setting Up the Websensor EM08</h2>



<p class="wp-block-paragraph"><strong>Configure Network Settings</strong></p>



<p class="wp-block-paragraph">The <strong>Websensor EM08</strong> must be reachable from the <strong>Nagios XI server</strong>:</p>



<ol class="wp-block-list">
<li><strong>Login</strong> to the Websensor’s web interface.</li>



<li>Navigate to <strong>Network Settings</strong> and set a <strong>static IP address</strong> (or ensure a DHCP reservation is assigned).</li>



<li>Enable <strong>HTTP access</strong> (default port <strong>80</strong>) for web-based monitoring.</li>
</ol>



<h2 class="wp-block-heading">Running the Websensor Wizard in Nagios XI</h2>



<p class="wp-block-paragraph">Nagios XI includes a built-in <strong>Esensors Websensor wizard</strong>, which simplifies the monitoring setup.</p>



<ol class="wp-block-list">
<li><strong>Login to Nagios XI</strong> as an administrator.</li>



<li><strong>Navigate to:</strong>
<ul class="wp-block-list">
<li><strong>Configure &gt; Run a Configuration Wizard.</strong></li>



<li>In the search bar, type <strong>&#8220;Esensors Websensor&#8221;</strong> and select the wizard.</li>
</ul>
</li>
</ol>



<figure class="wp-block-image size-full"><a href="https://library.nagios.com/wp-content/uploads/2025/03/Picture21.jpg"><img decoding="async" width="530" height="178" src="https://library.nagios.com/wp-content/uploads/2025/03/Picture21.jpg" alt="Picture21" class="wp-image-51735" title="How to Monitor Websensor EM08 in Nagios XI: Step-by-Step Guide for IT Administrators 2" srcset="https://library.nagios.com/wp-content/uploads/2025/03/Picture21.jpg 530w, https://library.nagios.com/wp-content/uploads/2025/03/Picture21-300x101.jpg 300w" sizes="(max-width: 530px) 100vw, 530px" /></a><figcaption class="wp-element-caption">Esensors Websensor wizard</figcaption></figure>



<h3 class="wp-block-heading">Step 1: Enter Websensor Details</h3>



<ol class="wp-block-list">
<li>Enter the <strong>Websensor EM08’s IP address or hostname</strong>.</li>



<li>Select <strong>EM-08T</strong> as the <strong>Websensor Model</strong>.</li>



<li>Click <strong>Next</strong> to continue.</li>
</ol>



<figure class="wp-block-image size-full"><a href="https://library.nagios.com/wp-content/uploads/2025/03/Picture22.jpg"><img decoding="async" width="621" height="242" src="https://library.nagios.com/wp-content/uploads/2025/03/Picture22.jpg" alt="Picture22" class="wp-image-51736" title="How to Monitor Websensor EM08 in Nagios XI: Step-by-Step Guide for IT Administrators 3" srcset="https://library.nagios.com/wp-content/uploads/2025/03/Picture22.jpg 621w, https://library.nagios.com/wp-content/uploads/2025/03/Picture22-300x117.jpg 300w" sizes="(max-width: 621px) 100vw, 621px" /></a><figcaption class="wp-element-caption">IP address or hostname and model</figcaption></figure>



<h3 class="wp-block-heading">Step 2: Select Metrics &amp; Thresholds</h3>



<p class="wp-block-paragraph">The wizard allows you to monitor <strong>specific environmental metrics</strong>:</p>



<ul class="wp-block-list">
<li><strong>Temperature</strong> (specified in <strong>Fahrenheit</strong>).</li>



<li><strong>Relative Humidity</strong> (percentage).</li>



<li><strong>Illumination</strong> (measured in <strong>lux</strong>).</li>
</ul>



<p class="wp-block-paragraph"> <strong>Set Warning &amp; Critical thresholds</strong>:</p>



<ul class="wp-block-list">
<li>Example for <strong>Temperature</strong>:
<ul class="wp-block-list">
<li><strong>Warning</strong>: <code>85°F</code></li>



<li><strong>Critical</strong>: <code>95°F</code></li>
</ul>
</li>



<li>Example for <strong>Humidity</strong>:
<ul class="wp-block-list">
<li><strong>Warning</strong>: <code>60%</code></li>



<li><strong>Critical</strong>: <code>80%</code></li>
</ul>
</li>
</ul>



<p class="wp-block-paragraph">Click <strong>Next</strong> to proceed.</p>



<figure class="wp-block-image size-full"><a href="https://library.nagios.com/wp-content/uploads/2025/03/Picture33.jpg"><img loading="lazy" decoding="async" width="487" height="571" src="https://library.nagios.com/wp-content/uploads/2025/03/Picture33.jpg" alt="Picture33" class="wp-image-51737" title="How to Monitor Websensor EM08 in Nagios XI: Step-by-Step Guide for IT Administrators 4" srcset="https://library.nagios.com/wp-content/uploads/2025/03/Picture33.jpg 487w, https://library.nagios.com/wp-content/uploads/2025/03/Picture33-256x300.jpg 256w" sizes="(max-width: 487px) 100vw, 487px" /></a><figcaption class="wp-element-caption">Thresholds</figcaption></figure>



<h3 class="wp-block-heading">Step 3: Completing the Wizard</h3>



<ol class="wp-block-list">
<li>Configure <strong>notification preferences</strong> for alerts.</li>



<li>Assign the <strong>Websensor to host groups and contacts</strong>.</li>



<li>Click <strong>Finish</strong> to apply the configuration.</li>
</ol>



<h3 class="wp-block-heading">Step 4: Viewing Monitoring Results</h3>



<p class="wp-block-paragraph">Once the wizard applies the configuration:</p>



<ol class="wp-block-list">
<li>Navigate to <strong>Home &gt; Service Status</strong> in Nagios XI.</li>



<li>Click <strong>View status details for your Websensor</strong>.</li>



<li>The <strong>current environmental conditions</strong> will be displayed.</li>
</ol>



<h2 class="wp-block-heading">Step 3: Setting Up Alerts in Nagios XI</h2>



<p class="wp-block-paragraph"><strong>Configure Notifications</strong></p>



<p class="wp-block-paragraph">To ensure IT staff is notified when conditions exceed safe levels:</p>



<ol class="wp-block-list">
<li>Navigate to <strong>Configure &gt; Notifications</strong>.</li>



<li>Select the <strong>Websensor’s monitored service (e.g., temperature, humidity, light level)</strong>.</li>



<li>Define <strong>notification settings</strong> for:
<ul class="wp-block-list">
<li><strong>Email alerts</strong></li>



<li><strong>SMS alerts (if enabled)</strong></li>



<li><strong>Custom scripts for automation</strong></li>
</ul>
</li>
</ol>



<p class="wp-block-paragraph"><strong>Test Alerts</strong></p>



<p class="wp-block-paragraph">To verify alert functionality:</p>



<ul class="wp-block-list">
<li>Temporarily set a <strong>low threshold</strong> to trigger a <strong>warning or critical state</strong>.</li>



<li>Verify <strong>Nagios XI sends an alert</strong> when the condition occurs.</li>
</ul>



<h2 class="wp-block-heading">Step 4: Customizing Dashboards and Reports</h2>



<h3 class="wp-block-heading">Creating a Websensor Monitoring Dashboard</h3>



<ol class="wp-block-list">
<li>Navigate to <strong>Dashboards &gt; Add a New Dashboard</strong>.</li>



<li>Name it <strong>“Environmental Monitoring”</strong>.</li>



<li>Add widgets for:
<ul class="wp-block-list">
<li>Temperature graphs.</li>



<li>Humidity trends.</li>



<li>Light level charts.</li>
</ul>
</li>



<li>Save the dashboard for <strong>quick access to environmental data</strong>.</li>
</ol>



<h3 class="wp-block-heading">Generating Reports</h3>



<ol class="wp-block-list">
<li>Go to <strong>Reports &gt; Availability Reports</strong> to view uptime and performance.</li>



<li>Use <strong>Performance Graphs</strong> to analyze temperature and humidity over time.</li>
</ol>



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



<p class="wp-block-paragraph">Integrating the <strong>Websensor EM08</strong> with <strong>Nagios XI</strong> ensures real-time <strong>environmental monitoring</strong>, helping <strong>data centers and IT teams</strong> maintain safe operating conditions. By using the <strong>Esensors Websensor wizard</strong>, administrators can quickly set up monitoring, configure alerts, and generate reports for proactive decision-making.</p>



<p class="wp-block-paragraph">For further support, visit:</p>



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



<li><a href="https://library.nagios.com/docs" target="_blank" rel="noreferrer noopener">Nagios Documentation</a></li>
</ul>



<p class="wp-block-paragraph"></p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>How to Integrate MultiTech MTR API with Nagios XI</title>
		<link>https://library.nagios.com/documentation/how-to-integrate-multitech-mtr-api-with-nagios-xi/</link>
		
		<dc:creator><![CDATA[Ayoub Louragli]]></dc:creator>
		<pubDate>Fri, 07 Mar 2025 21:06:20 +0000</pubDate>
				<category><![CDATA[Documentation]]></category>
		<category><![CDATA[Monitoring]]></category>
		<category><![CDATA[API]]></category>
		<category><![CDATA[Integration]]></category>
		<guid isPermaLink="false">https://library.nagios.com/?p=51712</guid>

					<description><![CDATA[Nagios XI is a robust network monitoring system that can be extended with various integrations to enhance its functionality. One such integration is with MultiTech’s MultiConnect® rCell Series Router (MTR) API, allowing administrators to send SMS notifications directly from Nagios XI. This guide will walk you through the process of integrating the MultiTech MTR API [&#8230;]]]></description>
										<content:encoded><![CDATA[
<p class="wp-block-paragraph">Nagios XI is a robust network monitoring system that can be extended with various integrations to enhance its functionality. One such integration is with <strong>MultiTech’s MultiConnect® rCell Series Router (MTR) API</strong>, allowing administrators to send <strong>SMS notifications</strong> directly from Nagios XI.</p>



<p class="wp-block-paragraph">This guide will walk you through the process of integrating the MultiTech MTR API with Nagios XI, covering configuration, installation, and enabling SMS alerts for users.</p>



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



<p class="wp-block-paragraph">Before proceeding with the integration, ensure you have the following:</p>



<ul class="wp-block-list">
<li><strong>Nagios XI (version 5.5 or newer)</strong> installed and running.</li>



<li><strong>MultiConnect rCell Series Router</strong> from MultiTech.</li>



<li><strong>Administrator access</strong> to both Nagios XI and the MultiTech MTR device.</li>



<li><strong>Network access</strong> between the Nagios XI server and the MTR device.</li>
</ul>



<h2 class="wp-block-heading">Step 1: Configure MultiTech MTR</h2>



<figure class="wp-block-image size-full"><a href="https://library.nagios.com/wp-content/uploads/2025/03/Picture4.jpg"><img loading="lazy" decoding="async" width="561" height="285" src="https://library.nagios.com/wp-content/uploads/2025/03/Picture4.jpg" alt="Picture4" class="wp-image-51715" title="How to Integrate MultiTech MTR API with Nagios XI 5" srcset="https://library.nagios.com/wp-content/uploads/2025/03/Picture4.jpg 561w, https://library.nagios.com/wp-content/uploads/2025/03/Picture4-300x152.jpg 300w" sizes="(max-width: 561px) 100vw, 561px" /></a><figcaption class="wp-element-caption">MTR</figcaption></figure>



<h3 class="wp-block-heading">Enable HTTPS Access</h3>



<p class="wp-block-paragraph">Nagios XI communicates with the MultiTech MTR device via <strong>HTTPS</strong> (port 443 by default). Ensure this is enabled in the router settings:</p>



<ol class="wp-block-list">
<li><strong>Login</strong> to the MTR device.</li>



<li>Navigate to <strong>Administration &gt; Access Configuration &gt; Web Server &gt; HTTPS</strong>.</li>



<li>Ensure the port is set to <strong>443</strong> (or another preferred port).</li>
</ol>



<h3 class="wp-block-heading">Enable SMS Functionality</h3>



<p class="wp-block-paragraph">For SMS alerts to work, ensure that SMS functionality is enabled on the MTR device:</p>



<ol class="wp-block-list">
<li>Go to <strong>SMS &gt; SMS Configuration &gt; SMS Settings</strong>.</li>



<li><strong>Enable SMS messaging</strong> if it is not already active.</li>
</ol>



<h3 class="wp-block-heading">Create a Dedicated User for Nagios XI</h3>



<p class="wp-block-paragraph">To avoid authentication conflicts, create an administrator account specifically for Nagios XI:</p>



<ol class="wp-block-list">
<li>Navigate to <strong>Administration &gt; User Accounts</strong>.</li>



<li><strong>Create a new user account</strong> for Nagios XI.</li>
</ol>



<h2 class="wp-block-heading">Step 2: Install the MTR Component in Nagios XI</h2>



<p class="wp-block-paragraph">To integrate MultiTech MTR API with Nagios XI, you need to install the <strong>Nagios XI MTR Component</strong>:</p>



<ol class="wp-block-list">
<li>Download the MTR component:
<ul class="wp-block-list">
<li><strong>URL</strong>: <a href="https://assets.nagios.com/downloads/nagiosxi/components/xi55/mtr.zip" target="_blank" rel="noopener">https://assets.nagios.com/downloads/nagiosxi/components/xi55/mtr.zip</a></li>
</ul>
</li>



<li><strong>Login</strong> to Nagios XI as an administrator.</li>



<li>Navigate to <strong>Admin &gt; System Extensions &gt; Manage Components</strong>.</li>



<li>Upload the <strong>mtr.zip</strong> file.</li>
</ol>



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



<p class="wp-block-paragraph">Once the component is installed, configure it as follows:</p>



<ol class="wp-block-list">
<li>Navigate to <strong>Admin &gt; System Extensions &gt; Manage Components</strong>.</li>



<li>Locate the <strong>MultiTech MTR Component</strong> and click the settings icon.</li>



<li>On the <strong>MultiTech MTR Integration screen</strong>, configure the following:
<ul class="wp-block-list">
<li><strong>Enable Integration</strong>: Check this box.</li>



<li><strong>IP Address or Hostname</strong>: Enter the IP address or domain of the MTR device.</li>



<li><strong>HTTPS Port</strong>: Ensure this matches the MTR configuration (default <strong>443</strong>).</li>



<li><strong>Username and Password</strong>: Enter the credentials for the dedicated Nagios XI user.</li>
</ul>
</li>



<li>Click <strong>Apply Settings</strong> to save the configuration.</li>
</ol>



<figure class="wp-block-image size-full"><a href="https://library.nagios.com/wp-content/uploads/2025/03/Picture5.jpg"><img loading="lazy" decoding="async" width="415" height="430" src="https://library.nagios.com/wp-content/uploads/2025/03/Picture5.jpg" alt="Picture5" class="wp-image-51716" title="How to Integrate MultiTech MTR API with Nagios XI 6" srcset="https://library.nagios.com/wp-content/uploads/2025/03/Picture5.jpg 415w, https://library.nagios.com/wp-content/uploads/2025/03/Picture5-290x300.jpg 290w" sizes="(max-width: 415px) 100vw, 415px" /></a><figcaption class="wp-element-caption">Component configuration</figcaption></figure>



<h2 class="wp-block-heading">Step 4: Enable SMS Alerts for Users</h2>



<p class="wp-block-paragraph">Each user in Nagios XI who wants to receive SMS notifications must enable them manually:</p>



<ol class="wp-block-list">
<li>Navigate to <strong>User Account Settings</strong>.</li>



<li>Select <strong>Notification Methods</strong> and click the <strong>MTR tab</strong>.</li>



<li>Check the <strong>SMS Text Message</strong> option.</li>



<li>Enter the <strong>mobile phone number</strong> where alerts should be sent.</li>



<li>Click <strong>Update Settings</strong> to enable SMS notifications.</li>
</ol>



<h2 class="wp-block-heading">Step 5: Customize SMS Alert Messages</h2>



<p class="wp-block-paragraph">Nagios XI allows users to customize SMS alerts using notification macros:</p>



<ol class="wp-block-list">
<li>Navigate to <strong>User Account Settings</strong>.</li>



<li>Click on <strong>Notification Messages</strong> and go to the <strong>MTR tab</strong>.</li>



<li>Customize the format for <strong>host and service alerts</strong> using macros.</li>



<li>Save the changes.</li>
</ol>



<p class="wp-block-paragraph">For more details on macros, refer to:<br><a href="https://assets.nagios.com/downloads/nagiosxi/docs/Understanding-Nagios-XI-Notification-Variables.pdf" target="_blank" rel="noopener">Understanding Nagios XI Notification Variables</a></p>



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



<p class="wp-block-paragraph">Integrating MultiTech MTR API with Nagios XI allows administrators to send SMS alerts directly from Nagios XI, enhancing real-time monitoring and response capabilities. By following the steps outlined above, you can successfully configure and enable this integration.</p>



<p class="wp-block-paragraph">For additional support, visit:</p>



<ul class="wp-block-list">
<li><a href="https://support.nagios.com/forum/" target="_blank" rel="noreferrer noopener">Nagios Support Forums</a></li>



<li><a href="https://library.nagios.com/docs" target="_blank" rel="noreferrer noopener">Nagios Documentation</a></li>



<li><a href="https://library.nagios.com/apis/">Nagios APIs</a></li>
</ul>

]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>Monitoring Unconfigured Objects with Nagios XI: A Comprehensive Guide</title>
		<link>https://library.nagios.com/documentation/monitoring-unconfigured-objects-with-nagios-xi-a-comprehensive-guide/</link>
		
		<dc:creator><![CDATA[Ayoub Louragli]]></dc:creator>
		<pubDate>Fri, 07 Mar 2025 16:29:38 +0000</pubDate>
				<category><![CDATA[Documentation]]></category>
		<category><![CDATA[Monitoring]]></category>
		<category><![CDATA[API]]></category>
		<guid isPermaLink="false">https://library.nagios.com/?p=51626</guid>

					<description><![CDATA[Nagios XI provides a robust monitoring solution that can track the health of various IT infrastructures. One key feature is its ability to process passive check results from external agents via the NSCA (Nagios Service Check Acceptor) or NRDP (Nagios Remote Data Processor) APIs. However, passive check results for hosts and services are not automatically [&#8230;]]]></description>
										<content:encoded><![CDATA[
<p class="wp-block-paragraph">Nagios XI provides a robust monitoring solution that can track the health of various IT infrastructures. One key feature is its ability to process passive check results from external agents via the NSCA (Nagios Service Check Acceptor) or NRDP (Nagios Remote Data Processor) APIs. However, passive check results for hosts and services are not automatically processed unless they are pre-configured in Nagios XI. This article outlines the steps to monitor unconfigured objects in Nagios XI effectively.</p>



<h2 class="wp-block-heading">Understanding Passive Check Processing</h2>



<p class="wp-block-paragraph">Passive check results can be submitted by external applications and agents to Nagios XI. However, when a passive result is received for a host or service that has not been configured, it is ignored by the monitoring engine. Instead, such hosts and services appear in the <strong>Unconfigured Objects</strong> interface of Nagios XI, allowing administrators to take action.</p>



<figure class="wp-block-image size-full"><a href="https://library.nagios.com/wp-content/uploads/2025/03/Pic.jpg"><img loading="lazy" decoding="async" width="322" height="320" src="https://library.nagios.com/wp-content/uploads/2025/03/Pic.jpg" alt="Pic" class="wp-image-51633" title="Monitoring Unconfigured Objects with Nagios XI: A Comprehensive Guide 7" srcset="https://library.nagios.com/wp-content/uploads/2025/03/Pic.jpg 322w, https://library.nagios.com/wp-content/uploads/2025/03/Pic-300x298.jpg 300w, https://library.nagios.com/wp-content/uploads/2025/03/Pic-150x150.jpg 150w" sizes="(max-width: 322px) 100vw, 322px" /></a><figcaption class="wp-element-caption">Unconfigured Objects Processing Diagram </figcaption></figure>



<h2 class="wp-block-heading">Managing Unconfigured Objects in Nagios XI</h2>



<h3 class="wp-block-heading">Navigating to Unconfigured Objects</h3>



<p class="wp-block-paragraph">To review unconfigured objects:</p>



<ol start="1" class="wp-block-list">
<li>Go to <strong>Admin &gt; Monitoring Config &gt; Unconfigured Objects</strong>.</li>



<li>The list will display hosts or services that have received passive results but are not yet monitored.</li>
</ol>



<figure class="wp-block-image size-full"><a href="https://library.nagios.com/wp-content/uploads/2025/03/Pic1.jpg"><img loading="lazy" decoding="async" width="707" height="405" src="https://library.nagios.com/wp-content/uploads/2025/03/Pic1.jpg" alt="Pic1" class="wp-image-51635" title="Monitoring Unconfigured Objects with Nagios XI: A Comprehensive Guide 8" srcset="https://library.nagios.com/wp-content/uploads/2025/03/Pic1.jpg 707w, https://library.nagios.com/wp-content/uploads/2025/03/Pic1-300x172.jpg 300w" sizes="(max-width: 707px) 100vw, 707px" /></a><figcaption class="wp-element-caption">Unconfigured Objects</figcaption></figure>



<h3 class="wp-block-heading">Adding Unconfigured Objects to Monitoring</h3>



<p class="wp-block-paragraph">To integrate unconfigured objects into Nagios XI monitoring:</p>



<h4 class="wp-block-heading">Adding a Single Host with Services</h4>



<ul class="wp-block-list">
<li>Click the <strong>play button</strong> next to the unconfigured host to run the <strong>Unconfigured Passive Object wizard</strong>.</li>
</ul>



<h4 class="wp-block-heading">Adding Multiple Hosts with Services</h4>



<ul class="wp-block-list">
<li>Select multiple hosts from the list by checking their boxes.</li>



<li>Click the <strong>gear icon</strong> at the bottom of the list.</li>



<li>Follow the wizard steps, configure settings (notifications, groups, parents), and apply the configuration.</li>



<li>Once applied, these objects will disappear from the Unconfigured Objects section and appear in the monitoring dashboard.</li>
</ul>



<figure class="wp-block-image size-full"><a href="https://library.nagios.com/wp-content/uploads/2025/03/Pic3.jpg"><img loading="lazy" decoding="async" width="705" height="163" src="https://library.nagios.com/wp-content/uploads/2025/03/Pic3.jpg" alt="Pic3" class="wp-image-51641" title="Monitoring Unconfigured Objects with Nagios XI: A Comprehensive Guide 9" srcset="https://library.nagios.com/wp-content/uploads/2025/03/Pic3.jpg 705w, https://library.nagios.com/wp-content/uploads/2025/03/Pic3-300x69.jpg 300w" sizes="(max-width: 705px) 100vw, 705px" /></a><figcaption class="wp-element-caption">status details</figcaption></figure>



<h2 class="wp-block-heading">Automating the Configuration of Unconfigured Objects</h2>



<p class="wp-block-paragraph">Nagios XI version 5.5 introduced <strong>Auto Configure Settings</strong>, which allows automatic creation of monitoring objects from passive check results. To enable this feature:</p>



<ol start="1" class="wp-block-list">
<li>Go to the <strong>Auto Configure Settings</strong> tab.</li>



<li>Check <strong>Enable Auto Import</strong> to allow Nagios XI to import objects into the Core Config Manager (CCM).</li>



<li>(Optional) Enable <strong>Apply Configuration</strong> to automatically add newly imported objects to Nagios XI’s running configuration.</li>
</ol>



<h3 class="wp-block-heading">Customizing Auto Configuration</h3>



<ul class="wp-block-list">
<li><strong>Notifications</strong>: Define notification settings for new objects.</li>



<li><strong>Groups</strong>: Assign objects to specific host or service groups.</li>



<li><strong>Advanced Settings</strong>: Configure stalking, volatility, and use templates such as <code>xiwizard_passive_host</code> or <code>xiwizard_snmptrap_host</code> for SNMP Traps.</li>
</ul>



<p class="wp-block-paragraph"><strong>Note</strong>: Automatic imports occur every 60 seconds as part of Nagios XI’s background processes.</p>



<h2 class="wp-block-heading">Removing Unwanted Unconfigured Objects</h2>



<p class="wp-block-paragraph">Unwanted unconfigured objects can be removed using:</p>



<ul class="wp-block-list">
<li><strong>Remove All</strong>: Click <strong>Clear Unconfigured Objects List</strong> to delete all.</li>



<li><strong>Remove One Host with Services</strong>: Click <strong>Delete</strong> next to the host.</li>



<li><strong>Remove Multiple Hosts with Services</strong>: Select hosts and click the <strong>X icon</strong>.</li>
</ul>



<p class="wp-block-paragraph"><strong>Important</strong>: Deleted objects will reappear if more passive results are received. To prevent this, stop unwanted passive checks to conserve system resources.</p>



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



<p class="wp-block-paragraph">Monitoring unconfigured objects in Nagios XI ensures that all relevant hosts and services are properly integrated into the system. By leveraging the <strong>Unconfigured Objects</strong> interface, administrators can manually or automatically import necessary hosts and services into monitoring. Proper configuration management helps maintain an efficient and reliable monitoring environment.</p>



<p class="wp-block-paragraph">For further guidance, visit the <a href="https://support.nagios.com/forum" target="_blank" rel="noopener">Nagios Support Forums</a> or check <a href="https://library.nagios.com/docs" target="_blank" rel="noreferrer noopener">Nagios Documentation</a>.</p>
]]></content:encoded>
					
		
		
			</item>
	</channel>
</rss>
