<?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>SUSE Linux &#8211; Nagios Library</title>
	<atom:link href="https://library.nagios.com/tag/suse/feed/" rel="self" type="application/rss+xml" />
	<link>https://library.nagios.com</link>
	<description>Complete Nagios monitoring resources and documentation</description>
	<lastBuildDate>Mon, 23 Feb 2026 17:39:33 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.9.4</generator>

<image>
	<url>https://library.nagios.com/wp-content/uploads/2024/11/Nagios-Blue-N.svg</url>
	<title>SUSE Linux &#8211; Nagios Library</title>
	<link>https://library.nagios.com</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>How to Install Nagios Cross-Platform Agent (NCPA) on SLES 15</title>
		<link>https://library.nagios.com/documentation/how-to-install-nagios-cross-platform-agent-ncpa-on-sles-15/</link>
		
		<dc:creator><![CDATA[Tucker Falen]]></dc:creator>
		<pubDate>Tue, 18 Feb 2025 20:38:57 +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[SUSE 15]]></category>
		<category><![CDATA[SUSE Linux]]></category>
		<guid isPermaLink="false">https://library.nagios.com/?p=47895</guid>

					<description><![CDATA[Nagios Cross-Platform Agent (NCPA) is a flexible and modern monitoring agent designed for Nagios Core and Nagios XI. It allows administrators to monitor system metrics, processes, services, and custom plugins with ease. In this guide, we’ll walk through the steps to install and configure NCPA on SUSE Linux Enterprise Server (SLES) 15. Please note that [&#8230;]]]></description>
										<content:encoded><![CDATA[
<p>Nagios Cross-Platform Agent (<strong>NCPA</strong>) is a flexible and modern monitoring agent designed for <strong>Nagios Core</strong> and <strong>Nagios XI</strong>. It allows administrators to monitor system metrics, processes, services, and custom plugins with ease.</p>



<p>In this guide, we’ll walk through the steps to <strong>install and configure NCPA on SUSE Linux Enterprise Server (SLES) 15</strong>. Please note that <strong>a registered copy of SLES 15 is required</strong> to access official SUSE repositories and install dependencies.</p>



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



<p>Before proceeding with the installation, ensure that you meet the following requirements:</p>



<ul class="wp-block-list">
<li>A <strong>registered copy of SLES 15</strong> (required for package installation).</li>



<li>Root or <strong>sudo privileges</strong> for installation and configuration.</li>



<li>An active <strong>Nagios Core or Nagios XI server</strong> to receive monitoring data.</li>
</ul>



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



<p>If your system is not registered, you must register it with <strong>SUSE Customer Center (SCC)</strong> to access the necessary repositories. Run the following command to register:</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 SUSEConnect --registration-url https://scc.suse.com</textarea></pre><svg xmlns="http://www.w3.org/2000/svg" style="width:24px;height:24px" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2"><path class="with-check" stroke-linecap="round" stroke-linejoin="round" d="M4.5 12.75l6 6 9-13.5"></path><path class="without-check" stroke-linecap="round" stroke-linejoin="round" d="M16.5 8.25V6a2.25 2.25 0 00-2.25-2.25H6A2.25 2.25 0 003.75 6v8.25A2.25 2.25 0 006 16.5h2.25m8.25-8.25H18a2.25 2.25 0 012.25 2.25V18A2.25 2.25 0 0118 20.25h-7.5A2.25 2.25 0 018.25 18v-1.5m8.25-8.25h-6a2.25 2.25 0 00-2.25 2.25v6"></path></svg></span><pre class="shiki dark-plus" style="background-color: #1E1E1E" tabindex="0"><code><span class="line"><span style="color: #D4D4D4">sudo SUSEConnect --registration-url https://scc.suse.com</span></span></code></pre></div>



<p>Enter your <strong>SUSE Customer Center credentials</strong> when prompted.</p>



<p>Once registered, refresh the repositories to ensure they are up to date:</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 refresh</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 refresh</span></span></code></pre></div>



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



<p>Nagios does not provide NCPA in SUSE’s official repositories, so you need to <strong>download the NCPA package manually</strong> from the official Nagios website.</p>



<ol class="wp-block-list">
<li>Navigate to the <a href="https://www.nagios.org/projects/ncpa/#download-ncpa-section" target="_blank" rel="noopener">Nagios NCPA Downloads</a> page.</li>



<li>Select the latest version for <strong>SUSE Linux Enterprise Server 15 (x86_64)</strong>.</li>



<li>Download the package using <code>wget</code> (replace the URL with the latest available version):</li>
</ol>



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



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



<p>Once the package is downloaded, install it using the <code>rpm</code> command:</p>



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



<p>If you encounter missing dependencies, use <code>zypper</code> to install them (insserv-compat):</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 &lt;dependency name></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 &lt;dependency name&gt;</span></span></code></pre></div>



<p>After installing dependencies, re-run the RPM installation command if necessary.</p>



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



<p>Once installed, enable and start the <strong>NCPA agent</strong> so that it runs on boot:</p>



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



<p>Start the services:</p>



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



<p>Check the service status to confirm that it is running:</p>



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



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



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



<p>The NCPA configuration file is located at:</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>Modify the following settings as needed:</p>



<ul class="wp-block-list">
<li><strong>API Token</strong>: This is required for secure communication with Nagios. Update the <code>community_string</code> field to something that you can remember:</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>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>



<figure class="wp-block-image size-full"><a href="https://library.nagios.com/wp-content/uploads/2025/02/Screenshot-2025-02-11-105914-1.png"><img fetchpriority="high" decoding="async" width="818" height="562" src="https://library.nagios.com/wp-content/uploads/2025/02/Screenshot-2025-02-11-105914-1.png" alt="Screenshot 2025 02 11 105914 1" class="wp-image-47933" title="How to Install Nagios Cross-Platform Agent (NCPA) on SLES 15 1" srcset="https://library.nagios.com/wp-content/uploads/2025/02/Screenshot-2025-02-11-105914-1.png 818w, https://library.nagios.com/wp-content/uploads/2025/02/Screenshot-2025-02-11-105914-1-300x206.png 300w, https://library.nagios.com/wp-content/uploads/2025/02/Screenshot-2025-02-11-105914-1-768x528.png 768w, https://library.nagios.com/wp-content/uploads/2025/02/Screenshot-2025-02-11-105914-1-360x247.png 360w" sizes="(max-width: 818px) 100vw, 818px" /></a><figcaption class="wp-element-caption">ncpa.conf file</figcaption></figure>



<ul class="wp-block-list">
<li><strong>Allowed IPs</strong>: Restrict access to trusted Nagios servers by adding their IP addresses:</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>allowed_hosts = &lt;Nagios IP address></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">allowed_hosts = &lt;Nagios IP address&gt;</span></span></code></pre></div>



<p>Save the file and exit (<code>CTRL+X</code>, then <code>Y</code>, then <code>Enter</code>).</p>



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



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



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



<h3 class="wp-block-heading"><strong>6.1 Check the NCPA Web Interface</strong></h3>



<p>By default, NCPA runs on port <code>5693</code>. You can access the web interface by opening a web browser and navigating 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;your_sles_server>: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;your_sles_server&gt;:5693</span></span></code></pre></div>



<p>Log in using the <strong>API token</strong> you configured earlier.</p>



<h3 class="wp-block-heading"><strong>6.2 Test NCPA with Nagios</strong></h3>



<p>To check if your Nagios server can communicate with the NCPA agent, run the following command from your <strong>Nagios monitoring server</strong>:</p>



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



<p>You should see a JSON response indicating the system&#8217;s status.</p>



<h2 class="wp-block-heading"><strong>Step 7: Add NCPA to Nagios</strong></h2>



<p>On your Nagios XI web GUI navigate to <strong>Run a Wizard</strong>.</p>



<figure class="wp-block-image size-large"><a href="https://library.nagios.com/wp-content/uploads/2025/02/Screenshot-2025-02-11-102801-4.png"><img decoding="async" width="1024" height="538" src="https://library.nagios.com/wp-content/uploads/2025/02/Screenshot-2025-02-11-102801-4-1024x538.png" alt="Screenshot 2025 02 11 102801 4" class="wp-image-47930" title="How to Install Nagios Cross-Platform Agent (NCPA) on SLES 15 2" srcset="https://library.nagios.com/wp-content/uploads/2025/02/Screenshot-2025-02-11-102801-4-1024x538.png 1024w, https://library.nagios.com/wp-content/uploads/2025/02/Screenshot-2025-02-11-102801-4-300x158.png 300w, https://library.nagios.com/wp-content/uploads/2025/02/Screenshot-2025-02-11-102801-4-768x403.png 768w, https://library.nagios.com/wp-content/uploads/2025/02/Screenshot-2025-02-11-102801-4-1536x807.png 1536w, https://library.nagios.com/wp-content/uploads/2025/02/Screenshot-2025-02-11-102801-4-360x189.png 360w, https://library.nagios.com/wp-content/uploads/2025/02/Screenshot-2025-02-11-102801-4.png 1805w" sizes="(max-width: 1024px) 100vw, 1024px" /></a><figcaption class="wp-element-caption">Nagios XI main page</figcaption></figure>



<p>Click <strong>NCPA</strong>.</p>



<figure class="wp-block-image size-large"><a href="https://library.nagios.com/wp-content/uploads/2025/02/Screenshot-2025-02-11-102857-1.png"><img decoding="async" width="1024" height="524" src="https://library.nagios.com/wp-content/uploads/2025/02/Screenshot-2025-02-11-102857-1-1024x524.png" alt="Screenshot 2025 02 11 102857 1" class="wp-image-47942" title="How to Install Nagios Cross-Platform Agent (NCPA) on SLES 15 3" srcset="https://library.nagios.com/wp-content/uploads/2025/02/Screenshot-2025-02-11-102857-1-1024x524.png 1024w, https://library.nagios.com/wp-content/uploads/2025/02/Screenshot-2025-02-11-102857-1-300x154.png 300w, https://library.nagios.com/wp-content/uploads/2025/02/Screenshot-2025-02-11-102857-1-768x393.png 768w, https://library.nagios.com/wp-content/uploads/2025/02/Screenshot-2025-02-11-102857-1-1536x786.png 1536w, https://library.nagios.com/wp-content/uploads/2025/02/Screenshot-2025-02-11-102857-1-360x184.png 360w, https://library.nagios.com/wp-content/uploads/2025/02/Screenshot-2025-02-11-102857-1.png 1745w" sizes="(max-width: 1024px) 100vw, 1024px" /></a><figcaption class="wp-element-caption">Wizards page</figcaption></figure>



<p>Now, fill out the IP address of your SLES system and enter the token you created in the conf file. Hit <strong>Next</strong>.</p>



<figure class="wp-block-image size-large"><a href="https://library.nagios.com/wp-content/uploads/2025/02/Screenshot-2025-02-11-103046-1.png"><img loading="lazy" decoding="async" width="1024" height="673" src="https://library.nagios.com/wp-content/uploads/2025/02/Screenshot-2025-02-11-103046-1-1024x673.png" alt="Screenshot 2025 02 11 103046 1" class="wp-image-47943" title="How to Install Nagios Cross-Platform Agent (NCPA) on SLES 15 4" srcset="https://library.nagios.com/wp-content/uploads/2025/02/Screenshot-2025-02-11-103046-1-1024x673.png 1024w, https://library.nagios.com/wp-content/uploads/2025/02/Screenshot-2025-02-11-103046-1-300x197.png 300w, https://library.nagios.com/wp-content/uploads/2025/02/Screenshot-2025-02-11-103046-1-768x504.png 768w, https://library.nagios.com/wp-content/uploads/2025/02/Screenshot-2025-02-11-103046-1-360x236.png 360w, https://library.nagios.com/wp-content/uploads/2025/02/Screenshot-2025-02-11-103046-1.png 1346w" sizes="(max-width: 1024px) 100vw, 1024px" /></a><figcaption class="wp-element-caption">NCPA page</figcaption></figure>



<p>Now, you can pick any system metrics you want to monitor or just leave everything as default, hit <strong>Next</strong>, and then <strong>Finish with Defaults</strong>.</p>



<figure class="wp-block-image size-large"><a href="https://library.nagios.com/wp-content/uploads/2025/02/Screenshot-2025-02-11-135250-1.png"><img loading="lazy" decoding="async" width="1024" height="784" src="https://library.nagios.com/wp-content/uploads/2025/02/Screenshot-2025-02-11-135250-1-1024x784.png" alt="Screenshot 2025 02 11 135250 1" class="wp-image-47949" title="How to Install Nagios Cross-Platform Agent (NCPA) on SLES 15 5" srcset="https://library.nagios.com/wp-content/uploads/2025/02/Screenshot-2025-02-11-135250-1-1024x784.png 1024w, https://library.nagios.com/wp-content/uploads/2025/02/Screenshot-2025-02-11-135250-1-300x230.png 300w, https://library.nagios.com/wp-content/uploads/2025/02/Screenshot-2025-02-11-135250-1-768x588.png 768w, https://library.nagios.com/wp-content/uploads/2025/02/Screenshot-2025-02-11-135250-1-360x276.png 360w, https://library.nagios.com/wp-content/uploads/2025/02/Screenshot-2025-02-11-135250-1.png 1182w" sizes="(max-width: 1024px) 100vw, 1024px" /></a><figcaption class="wp-element-caption">NCPA options</figcaption></figure>



<p>By following these steps, you have successfully installed <strong>Nagios Cross-Platform Agent (NCPA) on SLES 15</strong>. This allows your <strong>Nagios monitoring server</strong> to collect system metrics and monitor your SLES instance in real time.</p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>How to Set up SNMP on SUSE Linux Enterprise Server 15 and Monitor with Nagios XI</title>
		<link>https://library.nagios.com/documentation/snmp-on-sles-15-monitor-nagios-xi/</link>
		
		<dc:creator><![CDATA[Tucker Falen]]></dc:creator>
		<pubDate>Mon, 17 Feb 2025 21:41:35 +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[SUSE 15]]></category>
		<category><![CDATA[SUSE Linux]]></category>
		<guid isPermaLink="false">https://library.nagios.com/?p=47521</guid>

					<description><![CDATA[SUSE Linux Enterprise Server (SLES) 15 is a powerful and reliable platform for running enterprise applications and managing IT infrastructure. One of the essential tools for monitoring and managing network devices is Simple Network Management Protocol (SNMP). This guide walks you through the process of installing and configuring SNMP on SLES 15 and then integrating [&#8230;]]]></description>
										<content:encoded><![CDATA[
<p>SUSE Linux Enterprise Server (SLES) 15 is a powerful and reliable platform for running enterprise applications and managing IT infrastructure. One of the essential tools for monitoring and managing network devices is Simple Network Management Protocol (SNMP). This guide walks you through the process of installing and configuring SNMP on SLES 15 and then integrating it into Nagios XI, with a focus on the required steps for a registered copy of the operating system.</p>



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



<p>Before you begin, ensure that you meet the following prerequisites:</p>



<ul class="wp-block-list">
<li><strong>A registered copy of SLES 15</strong>: Registration is necessary to access official SUSE repositories and receive support. If your system is not registered, you may not be able to install SNMP via official repositories.</li>



<li><strong>Root or sudo access</strong>: You will need root access or sudo privileges to install software and configure SNMP.</li>
</ul>



<h3 class="wp-block-heading">Step 1: Register SLES 15</h3>



<p>If you haven&#8217;t registered your system yet, you can do so by running the following command:</p>



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



<p>You will need to provide your SUSE Customer Center credentials (your username and password). Registration allows you to access SUSE&#8217;s official repositories, which is necessary for installing SNMP and other packages.</p>



<p>Once registered, refresh the repositories:</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 refresh</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 refresh</span></span></code></pre></div>



<h3 class="wp-block-heading">Step 2: Install SNMP Packages</h3>



<p>With a registered system, you can now install SNMP and its required packages using <strong>zypper</strong>, SUSE&#8217;s package management tool.</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</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</span></span></code></pre></div>



<p>This will install the necessary packages to get SNMP up and running on your SLES 15 system.</p>



<h3 class="wp-block-heading">Step 3: Start and Enable SNMP Service</h3>



<p>After installing the SNMP packages, you need to enable and start the <strong>snmpd </strong>service to begin monitoring your system.</p>



<h4 class="wp-block-heading">1. <strong>Enable the service to start at boot</strong>:</h4>



<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</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</span></span></code></pre></div>



<h4 class="wp-block-heading">2. <strong>Start the SNMP service</strong>:</h4>



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



<h4 class="wp-block-heading">3. <strong>Check the status of the SNMP service</strong>:</h4>



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



<p>You should see output indicating that the service is active and running.</p>



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



<p>SNMP configuration can be customized by editing the <strong>snmpd.conf</strong> file, located at:</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/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 nano /etc/snmp/snmpd.conf</span></span></code></pre></div>



<p>Here, you can modify settings like:</p>



<ul class="wp-block-list">
<li><strong>Community strings</strong> (for access control).</li>



<li><strong>Security settings</strong> (to secure SNMP data).</li>



<li><strong>Other SNMP parameters</strong> for device management.</li>
</ul>



<figure class="wp-block-image size-full"><a href="https://library.nagios.com/wp-content/uploads/2025/02/Screenshot-2025-02-12-103406-2.png"><img loading="lazy" decoding="async" width="644" height="335" src="https://library.nagios.com/wp-content/uploads/2025/02/Screenshot-2025-02-12-103406-2.png" alt="Screenshot 2025 02 12 103406 2" class="wp-image-47538" title="How to Set up SNMP on SUSE Linux Enterprise Server 15 and Monitor with Nagios XI 6" srcset="https://library.nagios.com/wp-content/uploads/2025/02/Screenshot-2025-02-12-103406-2.png 644w, https://library.nagios.com/wp-content/uploads/2025/02/Screenshot-2025-02-12-103406-2-300x156.png 300w, https://library.nagios.com/wp-content/uploads/2025/02/Screenshot-2025-02-12-103406-2-360x187.png 360w" sizes="(max-width: 644px) 100vw, 644px" /></a><figcaption class="wp-element-caption">Conf file.</figcaption></figure>



<p>Look for the <code>rocommunity public</code> line and modify it to allow your Nagios server&#8217;s IP address. Replace <strong>public</strong> with a community string that you can remember, and then replace <strong>127.0.0.1</strong> with your Nagios server IP address.</p>



<p>For example, this is what I did:</p>



<figure class="wp-block-image size-full"><a href="https://library.nagios.com/wp-content/uploads/2025/02/Screenshot-2025-02-12-103249-1.png"><img loading="lazy" decoding="async" width="638" height="350" src="https://library.nagios.com/wp-content/uploads/2025/02/Screenshot-2025-02-12-103249-1.png" alt="Screenshot 2025 02 12 103249 1" class="wp-image-47543" title="How to Set up SNMP on SUSE Linux Enterprise Server 15 and Monitor with Nagios XI 7" srcset="https://library.nagios.com/wp-content/uploads/2025/02/Screenshot-2025-02-12-103249-1.png 638w, https://library.nagios.com/wp-content/uploads/2025/02/Screenshot-2025-02-12-103249-1-300x165.png 300w, https://library.nagios.com/wp-content/uploads/2025/02/Screenshot-2025-02-12-103249-1-360x197.png 360w" sizes="(max-width: 638px) 100vw, 638px" /></a><figcaption class="wp-element-caption">Example conf changes.</figcaption></figure>



<p><strong>Note: </strong>If you want to allow access from any system <em>(not recommended for security)</em>, use:</p>



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



<p>Once you are done editing your file, save and exit.</p>



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



<p>Once SNMP is installed and configured, test it using <code>snmpwalk</code> on your <strong>Nagios XI server</strong>.</p>



<h4 class="wp-block-heading"><strong>Test from Your Monitoring Server (e.g., Nagios)</strong></h4>



<p>If running the test from your <strong>Nagios server</strong>, replace <code>&lt;SUSE_SERVER_IP&gt;</code> with your SUSE server’s IP:</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 -v 2c -c myCommunityString &lt;SUSE_SERVER_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">snmpwalk -v 2c -c myCommunityString &lt;SUSE_SERVER_IP&gt;</span></span></code></pre></div>



<p>If you see a lot of <code>HOST-RESOURCES-MIB</code> data, <strong>SNMP is working correctly</strong>!</p>



<h3 class="wp-block-heading">Step 6: Monitor with Nagios</h3>



<p>From your Nagios XI web interface home page, click on <strong>Run a Wizard</strong>.</p>



<figure class="wp-block-image size-large"><a href="https://library.nagios.com/wp-content/uploads/2025/02/Screenshot-2025-02-11-102801-3.png"><img loading="lazy" decoding="async" width="1024" height="538" src="https://library.nagios.com/wp-content/uploads/2025/02/Screenshot-2025-02-11-102801-3-1024x538.png" alt="Nagios XI Web GUI homepage, showing charts." class="wp-image-47548" title="How to Set up SNMP on SUSE Linux Enterprise Server 15 and Monitor with Nagios XI 8" srcset="https://library.nagios.com/wp-content/uploads/2025/02/Screenshot-2025-02-11-102801-3-1024x538.png 1024w, https://library.nagios.com/wp-content/uploads/2025/02/Screenshot-2025-02-11-102801-3-300x158.png 300w, https://library.nagios.com/wp-content/uploads/2025/02/Screenshot-2025-02-11-102801-3-768x403.png 768w, https://library.nagios.com/wp-content/uploads/2025/02/Screenshot-2025-02-11-102801-3-1536x807.png 1536w, https://library.nagios.com/wp-content/uploads/2025/02/Screenshot-2025-02-11-102801-3-360x189.png 360w, https://library.nagios.com/wp-content/uploads/2025/02/Screenshot-2025-02-11-102801-3.png 1805w" sizes="(max-width: 1024px) 100vw, 1024px" /></a><figcaption class="wp-element-caption">Nagios XI Web GUI homepage.</figcaption></figure>



<p>Then, scroll until you find the <strong>Linux</strong> <strong>SNMP</strong> <strong>Wizard</strong>.</p>



<figure class="wp-block-image size-large"><a href="https://library.nagios.com/wp-content/uploads/2025/02/Screenshot-2025-02-12-141405-1.png"><img loading="lazy" decoding="async" width="1024" height="528" src="https://library.nagios.com/wp-content/uploads/2025/02/Screenshot-2025-02-12-141405-1-1024x528.png" alt="screenshot of Nagios XI&#039;s Wizards page." class="wp-image-47549" title="How to Set up SNMP on SUSE Linux Enterprise Server 15 and Monitor with Nagios XI 9" srcset="https://library.nagios.com/wp-content/uploads/2025/02/Screenshot-2025-02-12-141405-1-1024x528.png 1024w, https://library.nagios.com/wp-content/uploads/2025/02/Screenshot-2025-02-12-141405-1-300x155.png 300w, https://library.nagios.com/wp-content/uploads/2025/02/Screenshot-2025-02-12-141405-1-768x396.png 768w, https://library.nagios.com/wp-content/uploads/2025/02/Screenshot-2025-02-12-141405-1-1536x792.png 1536w, https://library.nagios.com/wp-content/uploads/2025/02/Screenshot-2025-02-12-141405-1-360x186.png 360w, https://library.nagios.com/wp-content/uploads/2025/02/Screenshot-2025-02-12-141405-1.png 1770w" sizes="(max-width: 1024px) 100vw, 1024px" /></a><figcaption class="wp-element-caption">Nagios XI Wizards page.</figcaption></figure>



<p>Then enter the IP address of your SUSE 12 machine. Leave the <strong>SNMP version</strong> at 2c and the <strong>SNMP Port</strong> at 161. The <strong>SNMP Community</strong> is where you will enter the community string you created in the conf file in Step 2.</p>



<figure class="wp-block-image size-full"><a href="https://library.nagios.com/wp-content/uploads/2025/02/Screenshot-2025-02-12-142445-1.png"><img loading="lazy" decoding="async" width="936" height="754" src="https://library.nagios.com/wp-content/uploads/2025/02/Screenshot-2025-02-12-142445-1.png" alt="Screenshot of setting up Linux SNMP in Nagios XI." class="wp-image-47550" title="How to Set up SNMP on SUSE Linux Enterprise Server 15 and Monitor with Nagios XI 10" srcset="https://library.nagios.com/wp-content/uploads/2025/02/Screenshot-2025-02-12-142445-1.png 936w, https://library.nagios.com/wp-content/uploads/2025/02/Screenshot-2025-02-12-142445-1-300x242.png 300w, https://library.nagios.com/wp-content/uploads/2025/02/Screenshot-2025-02-12-142445-1-768x619.png 768w, https://library.nagios.com/wp-content/uploads/2025/02/Screenshot-2025-02-12-142445-1-360x290.png 360w" sizes="(max-width: 936px) 100vw, 936px" /></a><figcaption class="wp-element-caption">Linux SNMP Configuration Wizard setup in Nagios XI.</figcaption></figure>



<p>Now, you can change any settings you need and choose which metrics you would like to monitor.</p>



<figure class="wp-block-image size-large"><a href="https://library.nagios.com/wp-content/uploads/2025/02/Screenshot-2025-02-12-142349-2.png"><img loading="lazy" decoding="async" width="1024" height="568" src="https://library.nagios.com/wp-content/uploads/2025/02/Screenshot-2025-02-12-142349-2-1024x568.png" alt="Screenshot of setting up Linux SNMP in Nagios XI." class="wp-image-47551" title="How to Set up SNMP on SUSE Linux Enterprise Server 15 and Monitor with Nagios XI 11" srcset="https://library.nagios.com/wp-content/uploads/2025/02/Screenshot-2025-02-12-142349-2-1024x568.png 1024w, https://library.nagios.com/wp-content/uploads/2025/02/Screenshot-2025-02-12-142349-2-300x166.png 300w, https://library.nagios.com/wp-content/uploads/2025/02/Screenshot-2025-02-12-142349-2-768x426.png 768w, https://library.nagios.com/wp-content/uploads/2025/02/Screenshot-2025-02-12-142349-2-1536x852.png 1536w, https://library.nagios.com/wp-content/uploads/2025/02/Screenshot-2025-02-12-142349-2-360x200.png 360w, https://library.nagios.com/wp-content/uploads/2025/02/Screenshot-2025-02-12-142349-2.png 1756w" sizes="(max-width: 1024px) 100vw, 1024px" /></a><figcaption class="wp-element-caption">Linux SNMP Configuration Wizard setup in Nagios XI.</figcaption></figure>



<ul class="wp-block-list">
<li>Documentation: <a href="https://assets.nagios.com/downloads/nagiosxi/docs/Monitoring-Linux-using-SNMP-2024.pdf" target="_blank" rel="noreferrer noopener">How To Monitor Linux Using SNMP In Nagios XI 2024 And 2026</a></li>
</ul>



<p>By default, you will be monitoring some basic services. When you are done configuring your settings and choosing SNMP services to monitor, you can hit <b>Ne</b><strong>xt </strong>and then <strong>Finish with Defaults.</strong></p>



<p>Congratulations! You have successfully installed and configured SNMP on SUSE 15 and integrated it with Nagios. Your server is now actively monitored for performance metrics like CPU, memory, and uptime.</p>



<p></p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>How to Configure SNMP on SUSE 12 and Monitor with Nagios XI</title>
		<link>https://library.nagios.com/documentation/how-to-configure-snmp-on-suse-12-and-monitor-with-nagios-xi/</link>
		
		<dc:creator><![CDATA[Tucker Falen]]></dc:creator>
		<pubDate>Thu, 13 Feb 2025 15:52:26 +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[SUSE 12]]></category>
		<category><![CDATA[SUSE Linux]]></category>
		<guid isPermaLink="false">https://library.nagios.com/?p=46025</guid>

					<description><![CDATA[SNMP (Simple Network Management Protocol) is a commonly used protocol for monitoring and managing network devices and servers.. If you want to integrate SNMP monitoring on your SUSE Linux Enterprise Server (SLES) 12, this guide will walk you through the installation, configuration, and testing of SNMP, ensuring your system is ready to send monitoring data [&#8230;]]]></description>
										<content:encoded><![CDATA[
<p>SNMP (Simple Network Management Protocol) is a commonly used protocol for monitoring and managing network devices and servers.. If you want to integrate SNMP monitoring on your <strong>SUSE Linux Enterprise Server (SLES) 12</strong>, this guide will walk you through the <strong>installation, configuration, and testing</strong> of SNMP, ensuring your system is ready to send monitoring data to Nagios. This article will be using SNMPv2c!</p>



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



<p>SNMP is most likely pre-installed on your system, but just in case. To install SNMP on SUSE 12, you need to install the <strong>Net-SNMP</strong> package, which includes the SNMP daemon (<code>snmpd</code>) and useful command-line tools like <code>snmpwalk</code> and <code>snmpget</code>.</p>



<p>Run the following command to install the necessary packages:</p>



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



<p>This will install:</p>



<ul class="wp-block-list">
<li><strong>snmpd</strong>: The SNMP daemon that collects system data</li>



<li><strong>snmpwalk, snmpget, snmptrap</strong>: Utilities for querying SNMP data<br></li>
</ul>



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



<p>After installing SNMP, you must configure it to allow access from the monitoring system.</p>



<ol class="wp-block-list">
<li>Open the SNMP configuration file: </li>
</ol>



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



<ol start="2" class="wp-block-list">
<li>Look for the <code>rocommunity public</code> line and modify it to allow your monitoring system’s IP. For example, if your Nagios server is at <strong>192.168.1.146</strong>, change:</li>
</ol>



<figure class="wp-block-image size-full"><a href="https://library.nagios.com/wp-content/uploads/2025/02/Screenshot-2025-02-12-103406.png"><img loading="lazy" decoding="async" width="429" height="223" src="https://library.nagios.com/wp-content/uploads/2025/02/Screenshot-2025-02-12-103406-edited.png" alt="Screenshot 2025 02 12 103406 edited" class="wp-image-46046" title="How to Configure SNMP on SUSE 12 and Monitor with Nagios XI 12" srcset="https://library.nagios.com/wp-content/uploads/2025/02/Screenshot-2025-02-12-103406-edited.png 429w, https://library.nagios.com/wp-content/uploads/2025/02/Screenshot-2025-02-12-103406-edited-300x156.png 300w, https://library.nagios.com/wp-content/uploads/2025/02/Screenshot-2025-02-12-103406-edited-360x187.png 360w" sizes="(max-width: 429px) 100vw, 429px" /></a><figcaption class="wp-element-caption"> </figcaption></figure>



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



<p>Replace <code>myCommunityString</code> with a <strong>strong community string</strong>.</p>



<figure class="wp-block-image size-full"><a href="https://library.nagios.com/wp-content/uploads/2025/02/Screenshot-2025-02-12-103249.png"><img loading="lazy" decoding="async" width="638" height="350" src="https://library.nagios.com/wp-content/uploads/2025/02/Screenshot-2025-02-12-103249.png" alt="Screenshot 2025 02 12 103249" class="wp-image-46045" title="How to Configure SNMP on SUSE 12 and Monitor with Nagios XI 13" srcset="https://library.nagios.com/wp-content/uploads/2025/02/Screenshot-2025-02-12-103249.png 638w, https://library.nagios.com/wp-content/uploads/2025/02/Screenshot-2025-02-12-103249-300x165.png 300w, https://library.nagios.com/wp-content/uploads/2025/02/Screenshot-2025-02-12-103249-360x197.png 360w" sizes="(max-width: 638px) 100vw, 638px" /></a><figcaption class="wp-element-caption"> </figcaption></figure>



<p><strong>Note: </strong>If you want to allow access from any system (not recommended for security), use:</p>



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



<p>Once you are done editing your file, save and exit (<code>ESC</code>, then <code>:wq</code>).</p>



<h3 class="wp-block-heading">Step 3: Enable and Start SNMP Service</h3>



<p>After configuring SNMP, enable and start the service so it runs automatically on boot:</p>



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



<p>Check if 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 systecmctl 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 systecmctl status snmpd</span></span></code></pre></div>



<figure class="wp-block-image size-full"><a href="https://library.nagios.com/wp-content/uploads/2025/02/Screenshot-2025-02-12-103640.png"><img loading="lazy" decoding="async" width="756" height="211" src="https://library.nagios.com/wp-content/uploads/2025/02/Screenshot-2025-02-12-103640.png" alt="Screenshot 2025 02 12 103640" class="wp-image-46053" title="How to Configure SNMP on SUSE 12 and Monitor with Nagios XI 14" srcset="https://library.nagios.com/wp-content/uploads/2025/02/Screenshot-2025-02-12-103640.png 756w, https://library.nagios.com/wp-content/uploads/2025/02/Screenshot-2025-02-12-103640-300x84.png 300w, https://library.nagios.com/wp-content/uploads/2025/02/Screenshot-2025-02-12-103640-360x100.png 360w" sizes="(max-width: 756px) 100vw, 756px" /></a><figcaption class="wp-element-caption">Example enabling and starting snmpd</figcaption></figure>



<h3 class="wp-block-heading">Step 4: Open Firewall for SNMP</h3>



<p>SNMP uses <strong>UDP port 161</strong>. If your monitoring server is external, allow this port through the firewall:</p>



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



<p>If using <code>firewalld</code>, run:</p>



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



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



<p>Once SNMP is installed and configured, test it using <code>snmpwalk</code> on your <strong>Nagios XI server</strong>.</p>



<h4 class="wp-block-heading"><strong>Test from Your Monitoring Server (e.g., Nagios)</strong></h4>



<p>If running the test from your <strong>Nagios server</strong>, replace <code>&lt;SUSE_SERVER_IP&gt;</code> with your SUSE server’s IP:</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 -v 2c -c myCommunityString &lt;SUSE_SERVER_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">snmpwalk -v 2c -c myCommunityString &lt;SUSE_SERVER_IP&gt;</span></span></code></pre></div>



<p>If you see a lot of <code>HOST-RESOURCES-MIB</code> data, <strong>SNMP is working correctly</strong>!</p>



<h3 class="wp-block-heading">Step 6: Monitor with Nagios</h3>



<p>From your Nagios XI web interface home page, click on <strong>Run a Wizard</strong>.</p>



<figure class="wp-block-image size-large"><a href="https://library.nagios.com/wp-content/uploads/2025/02/Screenshot-2025-02-11-102801-1.png"><img loading="lazy" decoding="async" width="1024" height="538" src="https://library.nagios.com/wp-content/uploads/2025/02/Screenshot-2025-02-11-102801-1-1024x538.png" alt="Screenshot 2025 02 11 102801 1" class="wp-image-46102" title="How to Configure SNMP on SUSE 12 and Monitor with Nagios XI 15" srcset="https://library.nagios.com/wp-content/uploads/2025/02/Screenshot-2025-02-11-102801-1-1024x538.png 1024w, https://library.nagios.com/wp-content/uploads/2025/02/Screenshot-2025-02-11-102801-1-300x158.png 300w, https://library.nagios.com/wp-content/uploads/2025/02/Screenshot-2025-02-11-102801-1-768x403.png 768w, https://library.nagios.com/wp-content/uploads/2025/02/Screenshot-2025-02-11-102801-1-1536x807.png 1536w, https://library.nagios.com/wp-content/uploads/2025/02/Screenshot-2025-02-11-102801-1-360x189.png 360w, https://library.nagios.com/wp-content/uploads/2025/02/Screenshot-2025-02-11-102801-1.png 1805w" sizes="(max-width: 1024px) 100vw, 1024px" /></a><figcaption class="wp-element-caption">Nagios XI homepage</figcaption></figure>



<p>Then, scroll until you find the <strong>Linux</strong> <strong>SNMP</strong> wizard.</p>



<figure class="wp-block-image size-large"><a href="https://library.nagios.com/wp-content/uploads/2025/02/Screenshot-2025-02-12-141405.png"><img loading="lazy" decoding="async" width="1024" height="528" src="https://library.nagios.com/wp-content/uploads/2025/02/Screenshot-2025-02-12-141405-1024x528.png" alt="Screenshot 2025 02 12 141405" class="wp-image-46108" title="How to Configure SNMP on SUSE 12 and Monitor with Nagios XI 16" srcset="https://library.nagios.com/wp-content/uploads/2025/02/Screenshot-2025-02-12-141405-1024x528.png 1024w, https://library.nagios.com/wp-content/uploads/2025/02/Screenshot-2025-02-12-141405-300x155.png 300w, https://library.nagios.com/wp-content/uploads/2025/02/Screenshot-2025-02-12-141405-768x396.png 768w, https://library.nagios.com/wp-content/uploads/2025/02/Screenshot-2025-02-12-141405-1536x792.png 1536w, https://library.nagios.com/wp-content/uploads/2025/02/Screenshot-2025-02-12-141405-360x186.png 360w, https://library.nagios.com/wp-content/uploads/2025/02/Screenshot-2025-02-12-141405.png 1770w" sizes="(max-width: 1024px) 100vw, 1024px" /></a><figcaption class="wp-element-caption">Wizards page</figcaption></figure>



<p>Then enter the IP address of your SUSE 12 machine. Leave the <strong>SNMP version</strong> at 2c and the <strong>SNMP Port</strong> at 161. The <strong>SNMP Community</strong> is where you will enter the community string you created in the conf file in Step 2.</p>



<figure class="wp-block-image size-full"><a href="https://library.nagios.com/wp-content/uploads/2025/02/Screenshot-2025-02-12-142445.png"><img loading="lazy" decoding="async" width="936" height="754" src="https://library.nagios.com/wp-content/uploads/2025/02/Screenshot-2025-02-12-142445.png" alt="Screenshot 2025 02 12 142445" class="wp-image-46111" title="How to Configure SNMP on SUSE 12 and Monitor with Nagios XI 17" srcset="https://library.nagios.com/wp-content/uploads/2025/02/Screenshot-2025-02-12-142445.png 936w, https://library.nagios.com/wp-content/uploads/2025/02/Screenshot-2025-02-12-142445-300x242.png 300w, https://library.nagios.com/wp-content/uploads/2025/02/Screenshot-2025-02-12-142445-768x619.png 768w, https://library.nagios.com/wp-content/uploads/2025/02/Screenshot-2025-02-12-142445-360x290.png 360w" sizes="(max-width: 936px) 100vw, 936px" /></a><figcaption class="wp-element-caption">Linux SNMP configuration wizard page</figcaption></figure>



<p>Now, you can change any settings you need and choose which metrics you would like to monitor.</p>



<figure class="wp-block-image size-large"><a href="https://library.nagios.com/wp-content/uploads/2025/02/Screenshot-2025-02-12-142349-1.png"><img loading="lazy" decoding="async" width="1024" height="568" src="https://library.nagios.com/wp-content/uploads/2025/02/Screenshot-2025-02-12-142349-1-1024x568.png" alt="Screenshot 2025 02 12 142349 1" class="wp-image-46110" title="How to Configure SNMP on SUSE 12 and Monitor with Nagios XI 18" srcset="https://library.nagios.com/wp-content/uploads/2025/02/Screenshot-2025-02-12-142349-1-1024x568.png 1024w, https://library.nagios.com/wp-content/uploads/2025/02/Screenshot-2025-02-12-142349-1-300x166.png 300w, https://library.nagios.com/wp-content/uploads/2025/02/Screenshot-2025-02-12-142349-1-768x426.png 768w, https://library.nagios.com/wp-content/uploads/2025/02/Screenshot-2025-02-12-142349-1-1536x852.png 1536w, https://library.nagios.com/wp-content/uploads/2025/02/Screenshot-2025-02-12-142349-1-360x200.png 360w, https://library.nagios.com/wp-content/uploads/2025/02/Screenshot-2025-02-12-142349-1.png 1756w" sizes="(max-width: 1024px) 100vw, 1024px" /></a><figcaption class="wp-element-caption">Configuration page</figcaption></figure>



<p>By default, you will be monitoring some basic services. When you are done configuring your settings and choosing SNMP services to monitor, you can hit <b>Ne</b><strong>xt and</strong> then <strong>Finish with Defaults.</strong></p>



<p>Congratulations! You have successfully installed and configured <strong>SNMP on SUSE 12</strong> and integrated it with <strong>Nagios</strong>. Your server is now actively monitored for performance metrics like CPU, memory, and uptime.</p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>How to Monitor SUSE 12 with Nagios Cross-Platform Agent (NCPA)</title>
		<link>https://library.nagios.com/documentation/how-to-monitor-suse-12-with-nagios-cross-platform-agent-ncpa/</link>
		
		<dc:creator><![CDATA[Tucker Falen]]></dc:creator>
		<pubDate>Tue, 11 Feb 2025 21:04:56 +0000</pubDate>
				<category><![CDATA[Documentation]]></category>
		<category><![CDATA[Techtips]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[NCPA]]></category>
		<category><![CDATA[Operating System Monitoring]]></category>
		<category><![CDATA[SUSE 12]]></category>
		<category><![CDATA[SUSE Linux]]></category>
		<guid isPermaLink="false">https://library.nagios.com/?p=45558</guid>

					<description><![CDATA[Do you want to monitor your SUSE server with ease? Nagios Cross-Platform Agent (NCPA) is a powerful and flexible monitoring agent that allows you to track system performance, services, and processes seamlessly. NCPA provides a simple yet effective way to integrate with Nagios Core or Nagios XI for real-time monitoring. Important Note: If you&#8217;re using [&#8230;]]]></description>
										<content:encoded><![CDATA[
<p>Do you want to monitor your <strong>SUSE server</strong> with ease? <strong>Nagios Cross-Platform Agent (NCPA)</strong> is a powerful and flexible monitoring agent that allows you to track system performance, services, and processes seamlessly. NCPA provides a simple yet effective way to integrate with Nagios Core or Nagios XI for real-time monitoring.</p>



<p><strong>Important Note:</strong> If you&#8217;re using <strong>SUSE/SLES 12</strong>, you must install <strong>NCPA 2</strong>, as NCPA 3 only supports SUSE/SLES 15 and later. NCPA 3 introduces a new architecture with improved API performance, Python 3 support, and better security, but it is not backward compatible with SLES 12. For this reason, NCPA 2 remains the best choice for monitoring on SUSE 12.</p>



<p>In this guide, we&#8217;ll walk you through the installation and configuration of NCPA 2 on SUSE/SLES 12, ensuring your server is set up for efficient monitoring. By the end, you&#8217;ll have a fully operational agent ready to send <strong>performance data to your Nagios monitoring system</strong>.</p>



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



<p>Before beginning your installation of NCPA make sure you have met the following requirements</p>



<ul class="wp-block-list">
<li>An internet connection</li>



<li>A system running SUSE 12</li>



<li>Root/sudo privileges</li>
</ul>



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



<p>Use the <code>rpm</code> command to install the latest <strong>NCPA</strong> package from Nagios:</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 rpm -Uvh https://assets.nagios.com/downloads/ncpa/ncpa-latest.sle12.x86_64.rpm</textarea></pre><svg xmlns="http://www.w3.org/2000/svg" style="width:24px;height:24px" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2"><path class="with-check" stroke-linecap="round" stroke-linejoin="round" d="M4.5 12.75l6 6 9-13.5"></path><path class="without-check" stroke-linecap="round" stroke-linejoin="round" d="M16.5 8.25V6a2.25 2.25 0 00-2.25-2.25H6A2.25 2.25 0 003.75 6v8.25A2.25 2.25 0 006 16.5h2.25m8.25-8.25H18a2.25 2.25 0 012.25 2.25V18A2.25 2.25 0 0118 20.25h-7.5A2.25 2.25 0 018.25 18v-1.5m8.25-8.25h-6a2.25 2.25 0 00-2.25 2.25v6"></path></svg></span><pre class="shiki dark-plus" style="background-color: #1E1E1E" tabindex="0"><code><span class="line"><span style="color: #D4D4D4">sudo rpm -Uvh https://assets.nagios.com/downloads/ncpa/ncpa-latest.sle12.x86_64.rpm</span></span></code></pre></div>



<p>This will download and install <strong>NCPA</strong> on your SUSE/SLES 12 system.</p>



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



<p>Open the <strong>NCPA configuration file</strong> in a text editor (such as <code>vi</code>) with this command:</p>



<div class="wp-block-kevinbatdorf-code-block-pro" data-code-block-pro-font-family="Code-Pro-Geist-Mono" style="font-size:.875rem;font-family:Code-Pro-Geist-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:1.5rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)"><span role="button" tabindex="0" style="color:#D4D4D4;display:none" aria-label="Copy" class="code-block-pro-copy-button"><pre class="code-block-pro-copy-button-pre" aria-hidden="true"><textarea class="code-block-pro-copy-button-textarea" tabindex="-1" aria-hidden="true" readonly>sudo 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>Find the <em>community_string = mytoken</em> line and change it to a stronger token for security. Press <code>i</code> to switch to insert mode and once you have made your changes press <code>esc</code> to get out of insert mode and then type <code>:wq</code> to save your changes and exit the editor.</p>



<figure class="wp-block-image size-full"><a href="https://library.nagios.com/wp-content/uploads/2025/02/Screenshot-2025-02-11-105914.png"><img loading="lazy" decoding="async" width="818" height="562" src="https://library.nagios.com/wp-content/uploads/2025/02/Screenshot-2025-02-11-105914.png" alt="Screenshot 2025 02 11 105914" class="wp-image-45570" title="How to Monitor SUSE 12 with Nagios Cross-Platform Agent (NCPA) 19" srcset="https://library.nagios.com/wp-content/uploads/2025/02/Screenshot-2025-02-11-105914.png 818w, https://library.nagios.com/wp-content/uploads/2025/02/Screenshot-2025-02-11-105914-300x206.png 300w, https://library.nagios.com/wp-content/uploads/2025/02/Screenshot-2025-02-11-105914-768x528.png 768w" sizes="(max-width: 818px) 100vw, 818px" /></a><figcaption class="wp-element-caption">ncpa.cfg file to edit</figcaption></figure>



<p>Apply the changes by restarting the <strong>NCPA listener service</strong>:</p>



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



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



<p>To confirm that NCPA is running, open a web browser and visit: <strong>https://&lt;system IP&gt;:5693</strong></p>



<p>You should see the <strong>NCPA web interface</strong>, where you can log in using the <strong>token</strong> configured in <code>ncpa.cfg</code></p>



<figure class="wp-block-image size-large"><a href="https://library.nagios.com/wp-content/uploads/2025/02/Screenshot-2025-02-11-114151.png"><img loading="lazy" decoding="async" width="1024" height="426" src="https://library.nagios.com/wp-content/uploads/2025/02/Screenshot-2025-02-11-114151-1024x426.png" alt="Screenshot 2025 02 11 114151" class="wp-image-45585" title="How to Monitor SUSE 12 with Nagios Cross-Platform Agent (NCPA) 20" srcset="https://library.nagios.com/wp-content/uploads/2025/02/Screenshot-2025-02-11-114151-1024x426.png 1024w, https://library.nagios.com/wp-content/uploads/2025/02/Screenshot-2025-02-11-114151-300x125.png 300w, https://library.nagios.com/wp-content/uploads/2025/02/Screenshot-2025-02-11-114151-768x320.png 768w, https://library.nagios.com/wp-content/uploads/2025/02/Screenshot-2025-02-11-114151.png 1252w" sizes="(max-width: 1024px) 100vw, 1024px" /></a><figcaption class="wp-element-caption">NCPA GUI Example</figcaption></figure>



<h4 class="wp-block-heading">Troubleshooting Tips: </h4>



<p>If you are unable to access the site, you may need to allow port 5693 through your firewall by running this command on your SUSE machine: <code>sudo /usr/sbin/SuSEfirewall2 open EXT TCP 5693</code> and then <code>sudo systemctl restart SuSEfirewall2.service</code> to apply the rule.</p>



<h3 class="wp-block-heading">Step 4: Monitoring with Nagios</h3>



<p>Now that you have <strong>NCPA installed and configured</strong> on your <strong>SUSE/SLES 12</strong> system, it&#8217;s time to integrate it with <strong>Nagios</strong> for real-time monitoring. <strong>Nagios Core or Nagios XI</strong> can use NCPA to check system metrics such as CPU usage, memory utilization, disk space, and running processes.</p>



<p>From your Nagios GUIs home page click on <strong>Run a Wizard</strong>.</p>



<figure class="wp-block-image size-large"><a href="https://library.nagios.com/wp-content/uploads/2025/02/Screenshot-2025-02-11-102801.png"><img loading="lazy" decoding="async" width="1024" height="538" src="https://library.nagios.com/wp-content/uploads/2025/02/Screenshot-2025-02-11-102801-1024x538.png" alt="Screenshot 2025 02 11 102801" class="wp-image-45592" title="How to Monitor SUSE 12 with Nagios Cross-Platform Agent (NCPA) 21" srcset="https://library.nagios.com/wp-content/uploads/2025/02/Screenshot-2025-02-11-102801-1024x538.png 1024w, https://library.nagios.com/wp-content/uploads/2025/02/Screenshot-2025-02-11-102801-300x158.png 300w, https://library.nagios.com/wp-content/uploads/2025/02/Screenshot-2025-02-11-102801-768x403.png 768w, https://library.nagios.com/wp-content/uploads/2025/02/Screenshot-2025-02-11-102801-1536x807.png 1536w, https://library.nagios.com/wp-content/uploads/2025/02/Screenshot-2025-02-11-102801.png 1805w" sizes="(max-width: 1024px) 100vw, 1024px" /></a><figcaption class="wp-element-caption"> </figcaption></figure>



<p>Next, pick the <strong>NCPA wizard</strong>.</p>



<figure class="wp-block-image size-large"><a href="https://library.nagios.com/wp-content/uploads/2025/02/Screenshot-2025-02-11-102857.png"><img loading="lazy" decoding="async" width="1024" height="524" src="https://library.nagios.com/wp-content/uploads/2025/02/Screenshot-2025-02-11-102857-1024x524.png" alt="Screenshot 2025 02 11 102857" class="wp-image-45594" title="How to Monitor SUSE 12 with Nagios Cross-Platform Agent (NCPA) 22" srcset="https://library.nagios.com/wp-content/uploads/2025/02/Screenshot-2025-02-11-102857-1024x524.png 1024w, https://library.nagios.com/wp-content/uploads/2025/02/Screenshot-2025-02-11-102857-300x154.png 300w, https://library.nagios.com/wp-content/uploads/2025/02/Screenshot-2025-02-11-102857-768x393.png 768w, https://library.nagios.com/wp-content/uploads/2025/02/Screenshot-2025-02-11-102857-1536x786.png 1536w, https://library.nagios.com/wp-content/uploads/2025/02/Screenshot-2025-02-11-102857.png 1745w" sizes="(max-width: 1024px) 100vw, 1024px" /></a><figcaption class="wp-element-caption"> </figcaption></figure>



<p>Enter your SUSE machines IP address in the address bar and leave the port as 5693. The token will be whatever you changed it to in the <code>ncpa.cfg</code> file. For System select SLES, Hit <strong>Next</strong></p>



<figure class="wp-block-image size-large"><a href="https://library.nagios.com/wp-content/uploads/2025/02/Screenshot-2025-02-11-103046.png"><img loading="lazy" decoding="async" width="1024" height="673" src="https://library.nagios.com/wp-content/uploads/2025/02/Screenshot-2025-02-11-103046-1024x673.png" alt="Screenshot 2025 02 11 103046" class="wp-image-45595" title="How to Monitor SUSE 12 with Nagios Cross-Platform Agent (NCPA) 23" srcset="https://library.nagios.com/wp-content/uploads/2025/02/Screenshot-2025-02-11-103046-1024x673.png 1024w, https://library.nagios.com/wp-content/uploads/2025/02/Screenshot-2025-02-11-103046-300x197.png 300w, https://library.nagios.com/wp-content/uploads/2025/02/Screenshot-2025-02-11-103046-768x504.png 768w, https://library.nagios.com/wp-content/uploads/2025/02/Screenshot-2025-02-11-103046.png 1346w" sizes="(max-width: 1024px) 100vw, 1024px" /></a><figcaption class="wp-element-caption"> </figcaption></figure>



<p>Now you can change any monitoring settings depending on your needs, or click finish with default settings.</p>



<figure class="wp-block-image size-large"><a href="https://library.nagios.com/wp-content/uploads/2025/02/Screenshot-2025-02-11-135250.png"><img loading="lazy" decoding="async" width="1024" height="784" src="https://library.nagios.com/wp-content/uploads/2025/02/Screenshot-2025-02-11-135250-1024x784.png" alt="Screenshot 2025 02 11 135250" class="wp-image-45660" title="How to Monitor SUSE 12 with Nagios Cross-Platform Agent (NCPA) 24" srcset="https://library.nagios.com/wp-content/uploads/2025/02/Screenshot-2025-02-11-135250-1024x784.png 1024w, https://library.nagios.com/wp-content/uploads/2025/02/Screenshot-2025-02-11-135250-300x230.png 300w, https://library.nagios.com/wp-content/uploads/2025/02/Screenshot-2025-02-11-135250-768x588.png 768w, https://library.nagios.com/wp-content/uploads/2025/02/Screenshot-2025-02-11-135250.png 1182w" sizes="(max-width: 1024px) 100vw, 1024px" /></a><figcaption class="wp-element-caption"> </figcaption></figure>



<p>Congratulations! You have successfully <strong>integrated SUSE/SLES 12 with Nagios</strong> using <strong>NCPA</strong>. Your Nagios server is now continuously monitoring <strong>system performance</strong> and will notify you of any issues.</p>
]]></content:encoded>
					
		
		
			</item>
	</channel>
</rss>
