<?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>Jack Brisben &#8211; Nagios Library</title>
	<atom:link href="https://library.nagios.com/author/jbrisben/feed/" rel="self" type="application/rss+xml" />
	<link>https://library.nagios.com</link>
	<description>Complete Nagios monitoring resources and documentation</description>
	<lastBuildDate>Fri, 16 Oct 2026 14:33:40 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=7.1.5</generator>

<image>
	<url>https://library.nagios.com/wp-content/uploads/2024/11/Nagios-Blue-N.svg</url>
	<title>Jack Brisben &#8211; Nagios Library</title>
	<link>https://library.nagios.com</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>How to Install and Configure SNMP on macOS Monterey for Nagios Monitoring</title>
		<link>https://library.nagios.com/monitoring/how-to-install-and-configure-snmp-on-macos-monterey-for-nagios-monitoring/</link>
		
		<dc:creator><![CDATA[Jack Brisben]]></dc:creator>
		<pubDate>Fri, 28 Mar 2025 21:04:33 +0000</pubDate>
				<category><![CDATA[Monitoring]]></category>
		<category><![CDATA[Documentation]]></category>
		<category><![CDATA[Operating System Monitoring]]></category>
		<category><![CDATA[SNMP]]></category>
		<guid isPermaLink="false">https://library.nagios.com/?p=53776</guid>

					<description><![CDATA[Prerequisites Before starting, ensure you have: Step 1: Verify SNMP Availability macOS includes a built-in SNMP daemon (snmpd), but it’s not enabled by default. You don’t need to install it separately—only configure and activate it. 1.1 Check SNMP VersionOpen Terminal and verify that SNMP tools are present: You should see output like NET-SNMP version: 5.x.x. [&#8230;]]]></description>
										<content:encoded><![CDATA[
<h3 class="wp-block-heading">Prerequisites</h3>



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



<ul class="wp-block-list">
<li>A macOS system running macOS 12 Monterey or later on Apple Silicon.</li>



<li>Administrator privileges (sudo access).</li>



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



<li>Basic familiarity with the terminal and command-line tools.</li>
</ul>



<h3 class="wp-block-heading">Step 1: Verify SNMP Availability</h3>



<p class="wp-block-paragraph">macOS includes a built-in SNMP daemon (snmpd), but it’s not enabled by default. You don’t need to install it separately—only configure and activate it.</p>



<p class="wp-block-paragraph"><strong>1.1 Check SNMP Version</strong><br>Open Terminal and verify that SNMP tools are present:</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>snmpd --version</textarea></pre><svg xmlns="http://www.w3.org/2000/svg" style="width:24px;height:24px" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2"><path class="with-check" stroke-linecap="round" stroke-linejoin="round" d="M4.5 12.75l6 6 9-13.5"></path><path class="without-check" stroke-linecap="round" stroke-linejoin="round" d="M16.5 8.25V6a2.25 2.25 0 00-2.25-2.25H6A2.25 2.25 0 003.75 6v8.25A2.25 2.25 0 006 16.5h2.25m8.25-8.25H18a2.25 2.25 0 012.25 2.25V18A2.25 2.25 0 0118 20.25h-7.5A2.25 2.25 0 018.25 18v-1.5m8.25-8.25h-6a2.25 2.25 0 00-2.25 2.25v6"></path></svg></span><pre class="shiki dark-plus" style="background-color: #1E1E1E" tabindex="0"><code><span class="line"><span style="color: #DCDCAA">snmpd</span><span style="color: #D4D4D4"> </span><span style="color: #569CD6">--version</span></span></code></pre></div>



<p class="wp-block-paragraph">You should see output like NET-SNMP version: 5.x.x. If not, macOS Monterey includes it natively, and we’ll proceed to configure it.</p>



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



<p class="wp-block-paragraph">The SNMP configuration file is located at /etc/snmp/snmpd.conf, but it may not exist yet. We’ll create and edit it.</p>



<p class="wp-block-paragraph"><strong>2.1 Create or Edit the SNMP Configuration File</strong><br>Run the following command to edit the configuration file:</p>



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



<p class="wp-block-paragraph"><strong>2.2 Add Basic Configuration</strong><br>Paste the following minimal configuration into /etc/snmp/snmpd.conf:</p>



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

# Restrict access to your Nagios server's IP
rocommunity Str0ngC0mmunity! &lt;Nagios_IP_address>

# Define system information
sysLocation "Your Location"
sysContact "Your Name &lt;your.email@example.com>"
sysName "YourMacHostname"</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: #6A9955"># Set a read-only community string (replace &quot;public&quot; with a secure value)</span></span>
<span class="line"><span style="color: #DCDCAA">rocommunity</span><span style="color: #D4D4D4"> </span><span style="color: #CE9178">Str0ngC0mmunity!</span></span>
<span class="line"></span>
<span class="line"><span style="color: #6A9955"># Restrict access to your Nagios server&#39;s IP</span></span>
<span class="line"><span style="color: #DCDCAA">rocommunity</span><span style="color: #D4D4D4"> </span><span style="color: #CE9178">Str0ngC0mmunity!</span><span style="color: #D4D4D4"> &lt;</span><span style="color: #CE9178">Nagios_IP_addres</span><span style="color: #D4D4D4">s&gt;</span></span>
<span class="line"></span>
<span class="line"><span style="color: #6A9955"># Define system information</span></span>
<span class="line"><span style="color: #DCDCAA">sysLocation</span><span style="color: #D4D4D4"> </span><span style="color: #CE9178">&quot;Your Location&quot;</span></span>
<span class="line"><span style="color: #DCDCAA">sysContact</span><span style="color: #D4D4D4"> </span><span style="color: #CE9178">&quot;Your Name &lt;your.email@example.com&gt;&quot;</span></span>
<span class="line"><span style="color: #DCDCAA">sysName</span><span style="color: #D4D4D4"> </span><span style="color: #CE9178">&quot;YourMacHostname&quot;</span></span></code></pre></div>



<ul class="wp-block-list">
<li>Replace Str0ngC0mmunity! with a secure community string (like a password for SNMP).</li>



<li>Replace &lt;Nagios_IP_address&gt; with the IP of your Nagios server.</li>



<li>Customize sysLocation, sysContact, and sysName as needed.</li>
</ul>



<p class="wp-block-paragraph">Save and exit (Ctrl+X, then Y, then Enter).</p>



<p class="wp-block-paragraph"><strong>2.3 Set Permissions</strong><br>Ensure the file is readable by the SNMP daemon:</p>



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



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



<p class="wp-block-paragraph">macOS uses launchd to manage services, including snmpd. The SNMP daemon is pre-installed but disabled by default.</p>



<p class="wp-block-paragraph"><strong>3.1 Locate the SNMP Daemon</strong><br>The SNMP service is controlled by /System/Library/LaunchDaemons/org.net-snmp.snmpd.plist. You don’t need to create this file—it’s already present.</p>



<p class="wp-block-paragraph"><strong>3.2 Enable the SNMP Service</strong><br>Load and start the service:</p>



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



<p class="wp-block-paragraph">You should see org.net-snmp.snmpd listed with a PID (process ID).</p>



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



<p class="wp-block-paragraph"><strong>4.1 Test SNMP Queries</strong><br>Use the snmpwalk command to verify that SNMP is working locally:</p>



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



<ul class="wp-block-list">
<li>Replace Str0ngC0mmunity! with your community string.</li>



<li>You should see a list of SNMP data (e.g., system info). If you get a timeout or error, check your configuration and ensure snmpd is running.</li>
</ul>



<p class="wp-block-paragraph"><strong>4.2 Check Listening Port</strong><br>SNMP uses UDP port 161. Verify it’s listening:</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 netstat -an | grep 161</textarea></pre><svg xmlns="http://www.w3.org/2000/svg" style="width:24px;height:24px" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2"><path class="with-check" stroke-linecap="round" stroke-linejoin="round" d="M4.5 12.75l6 6 9-13.5"></path><path class="without-check" stroke-linecap="round" stroke-linejoin="round" d="M16.5 8.25V6a2.25 2.25 0 00-2.25-2.25H6A2.25 2.25 0 003.75 6v8.25A2.25 2.25 0 006 16.5h2.25m8.25-8.25H18a2.25 2.25 0 012.25 2.25V18A2.25 2.25 0 0118 20.25h-7.5A2.25 2.25 0 018.25 18v-1.5m8.25-8.25h-6a2.25 2.25 0 00-2.25 2.25v6"></path></svg></span><pre class="shiki dark-plus" style="background-color: #1E1E1E" tabindex="0"><code><span class="line"><span style="color: #DCDCAA">sudo</span><span style="color: #D4D4D4"> </span><span style="color: #CE9178">netstat</span><span style="color: #D4D4D4"> </span><span style="color: #569CD6">-an</span><span style="color: #D4D4D4"> | </span><span style="color: #DCDCAA">grep</span><span style="color: #D4D4D4"> </span><span style="color: #B5CEA8">161</span></span></code></pre></div>



<p class="wp-block-paragraph">You should see output like udp4 0 0 *.161 *.*.</p>



<h3 class="wp-block-heading">Step 5: Allow SNMP Through Firewall (Optional)</h3>



<p class="wp-block-paragraph">If macOS Monterey’s firewall is enabled, you need to allow SNMP traffic.</p>



<p class="wp-block-paragraph">5.1 Open Firewall Settings<br>Go to <strong>System Preferences &gt; Security &amp; Privacy &gt; Firewall</strong>, unlock it, and click <strong>Firewall Options</strong>.</p>



<p class="wp-block-paragraph">5.2 Add SNMP Exception<br>Add /usr/sbin/snmpd to the list of allowed applications, or manually allow UDP port 161 via Terminal:</p>



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



<h3 class="wp-block-heading">Step 6: Test from Nagios Server</h3>



<p class="wp-block-paragraph">From your Nagios server, test connectivity:</p>



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



<p class="wp-block-paragraph">Replace Str0ngC0mmunity! with your community string and &lt;your_mac_ip&gt; with your macOS system’s IP.</p>



<p class="wp-block-paragraph">If successful, you’ll see SNMP data returned.</p>



<h3 class="wp-block-heading">Step 7: Add SNMP to Nagios</h3>



<p class="wp-block-paragraph">On your Nagios XI web GUI:</p>



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



<figure class="wp-block-image size-full"><a href="https://library.nagios.com/wp-content/uploads/2025/03/Configuration-Wizards-2.png"><img fetchpriority="high" decoding="async" width="1015" height="744" src="https://library.nagios.com/wp-content/uploads/2025/03/Configuration-Wizards-2.png" alt="Configuration Wizards 2" class="wp-image-53779" title="How to Install and Configure SNMP on macOS Monterey for Nagios Monitoring 1" srcset="https://library.nagios.com/wp-content/uploads/2025/03/Configuration-Wizards-2.png 1015w, https://library.nagios.com/wp-content/uploads/2025/03/Configuration-Wizards-2-300x220.png 300w, https://library.nagios.com/wp-content/uploads/2025/03/Configuration-Wizards-2-768x563.png 768w" sizes="(max-width: 1015px) 100vw, 1015px" /></a><figcaption class="wp-element-caption">Select a wizard</figcaption></figure>



<ul class="wp-block-list">
<li>Select <strong>SNMP</strong> (or <strong>Network Device</strong> if no specific SNMP wizard exists).</li>



<li>Enter the following:</li>



<li><strong>IP Address</strong>: Your macOS system’s IP.</li>
</ul>



<figure class="wp-block-image size-full"><a href="https://library.nagios.com/wp-content/uploads/2025/03/RegularSNMP-1.png"><img decoding="async" width="1024" height="546" src="https://library.nagios.com/wp-content/uploads/2025/03/RegularSNMP-1.png" alt="RegularSNMP 1" class="wp-image-53780" title="How to Install and Configure SNMP on macOS Monterey for Nagios Monitoring 2" srcset="https://library.nagios.com/wp-content/uploads/2025/03/RegularSNMP-1.png 1024w, https://library.nagios.com/wp-content/uploads/2025/03/RegularSNMP-1-300x160.png 300w, https://library.nagios.com/wp-content/uploads/2025/03/RegularSNMP-1-768x410.png 768w" sizes="(max-width: 1024px) 100vw, 1024px" /></a><figcaption class="wp-element-caption">SNMP</figcaption></figure>



<ul class="wp-block-list">
<li><strong>Community String</strong>: Str0ngC0mmunity! (or your custom value).</li>



<li>Follow the wizard to select metrics (e.g., CPU, memory, disk usage).</li>
</ul>



<figure class="wp-block-image size-full"><a href="https://library.nagios.com/wp-content/uploads/2025/03/SNMPSettings-1.png"><img decoding="async" width="1024" height="729" src="https://library.nagios.com/wp-content/uploads/2025/03/SNMPSettings-1.png" alt="SNMPSettings 1" class="wp-image-53781" title="How to Install and Configure SNMP on macOS Monterey for Nagios Monitoring 3" srcset="https://library.nagios.com/wp-content/uploads/2025/03/SNMPSettings-1.png 1024w, https://library.nagios.com/wp-content/uploads/2025/03/SNMPSettings-1-300x214.png 300w, https://library.nagios.com/wp-content/uploads/2025/03/SNMPSettings-1-768x547.png 768w" sizes="(max-width: 1024px) 100vw, 1024px" /></a><figcaption class="wp-element-caption">SNMP Settings</figcaption></figure>



<ul class="wp-block-list">
<li>Click <strong>Finish</strong> to complete the setup.</li>
</ul>



<p class="wp-block-paragraph">For Nagios Core, edit your configuration files (e.g., /usr/local/nagios/etc/objects/) manually:</p>



<div class="wp-block-kevinbatdorf-code-block-pro" data-code-block-pro-font-family="Code-Pro-Geist-Mono" style="font-size:.875rem;font-family:Code-Pro-Geist-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:1.5rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)"><span role="button" tabindex="0" style="color:#D4D4D4;display:none" aria-label="Copy" class="code-block-pro-copy-button"><pre class="code-block-pro-copy-button-pre" aria-hidden="true"><textarea class="code-block-pro-copy-button-textarea" tabindex="-1" aria-hidden="true" readonly>define host {
    use             generic-host
    host_name       macos-monterey
    alias           MacOS Monterey
    address         &lt;your_mac_ip>
}

define service {
    use                 generic-service
    host_name           macos-monterey
    service_description CPU Usage
    check_command       check_snmp!-C Str0ngC0mmunity! -o .1.3.6.1.4.1.2021.11.10.0
}</textarea></pre><svg xmlns="http://www.w3.org/2000/svg" style="width:24px;height:24px" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2"><path class="with-check" stroke-linecap="round" stroke-linejoin="round" d="M4.5 12.75l6 6 9-13.5"></path><path class="without-check" stroke-linecap="round" stroke-linejoin="round" d="M16.5 8.25V6a2.25 2.25 0 00-2.25-2.25H6A2.25 2.25 0 003.75 6v8.25A2.25 2.25 0 006 16.5h2.25m8.25-8.25H18a2.25 2.25 0 012.25 2.25V18A2.25 2.25 0 0118 20.25h-7.5A2.25 2.25 0 018.25 18v-1.5m8.25-8.25h-6a2.25 2.25 0 00-2.25 2.25v6"></path></svg></span><pre class="shiki dark-plus" style="background-color: #1E1E1E" tabindex="0"><code><span class="line"><span style="color: #DCDCAA">define</span><span style="color: #D4D4D4"> </span><span style="color: #CE9178">host</span><span style="color: #D4D4D4"> </span><span style="color: #CE9178">{</span></span>
<span class="line"><span style="color: #D4D4D4">    </span><span style="color: #DCDCAA">use</span><span style="color: #D4D4D4">             </span><span style="color: #CE9178">generic-host</span></span>
<span class="line"><span style="color: #D4D4D4">    </span><span style="color: #DCDCAA">host_name</span><span style="color: #D4D4D4">       </span><span style="color: #CE9178">macos-monterey</span></span>
<span class="line"><span style="color: #D4D4D4">    </span><span style="color: #DCDCAA">alias</span><span style="color: #D4D4D4">           </span><span style="color: #CE9178">MacOS</span><span style="color: #D4D4D4"> </span><span style="color: #CE9178">Monterey</span></span>
<span class="line"><span style="color: #D4D4D4">    </span><span style="color: #DCDCAA">address</span><span style="color: #D4D4D4">         &lt;</span><span style="color: #CE9178">your_mac_i</span><span style="color: #D4D4D4">p&gt;</span></span>
<span class="line"><span style="color: #D4D4D4">}</span></span>
<span class="line"></span>
<span class="line"><span style="color: #DCDCAA">define</span><span style="color: #D4D4D4"> </span><span style="color: #CE9178">service</span><span style="color: #D4D4D4"> </span><span style="color: #CE9178">{</span></span>
<span class="line"><span style="color: #D4D4D4">    </span><span style="color: #DCDCAA">use</span><span style="color: #D4D4D4">                 </span><span style="color: #CE9178">generic-service</span></span>
<span class="line"><span style="color: #D4D4D4">    </span><span style="color: #DCDCAA">host_name</span><span style="color: #D4D4D4">           </span><span style="color: #CE9178">macos-monterey</span></span>
<span class="line"><span style="color: #D4D4D4">    </span><span style="color: #DCDCAA">service_description</span><span style="color: #D4D4D4"> </span><span style="color: #CE9178">CPU</span><span style="color: #D4D4D4"> </span><span style="color: #CE9178">Usage</span></span>
<span class="line"><span style="color: #D4D4D4">    </span><span style="color: #DCDCAA">check_command</span><span style="color: #D4D4D4">       </span><span style="color: #CE9178">check_snmp!-C</span><span style="color: #D4D4D4"> </span><span style="color: #CE9178">Str0ngC0mmunity!</span><span style="color: #D4D4D4"> </span><span style="color: #569CD6">-o</span><span style="color: #D4D4D4"> </span><span style="color: #CE9178">.1.3.6.1.4.1.2021.11.10.0</span></span>
<span class="line"><span style="color: #D4D4D4">}</span></span></code></pre></div>



<p class="wp-block-paragraph">Adjust OIDs (Object Identifiers) for specific metrics as needed.</p>



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



<p class="wp-block-paragraph">By following these steps, you’ve successfully enabled and configured SNMP on macOS Monterey for Apple Silicon. Your Nagios monitoring server can now collect system metrics via SNMP in real time.</p>



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



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



<li><a href="https://library.nagios.com/docs" data-type="link" data-id="https://support.nagios.com/kb/" target="_blank" rel="noreferrer noopener">Nagios Documentation</a></li>



<li>macOS SNMP Documentation: man snmpd in Terminal</li>
</ul>



<p class="wp-block-paragraph"></p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>How to Install Nagios Cross-Platform Agent (NCPA) on macOS Monterey</title>
		<link>https://library.nagios.com/monitoring/how-to-install-nagios-cross-platform-agent-ncpa-on-macos-monterey/</link>
		
		<dc:creator><![CDATA[Jack Brisben]]></dc:creator>
		<pubDate>Fri, 28 Mar 2025 17:04:04 +0000</pubDate>
				<category><![CDATA[Monitoring]]></category>
		<category><![CDATA[Documentation]]></category>
		<category><![CDATA[NCPA]]></category>
		<category><![CDATA[Operating System Monitoring]]></category>
		<guid isPermaLink="false">https://library.nagios.com/?p=53721</guid>

					<description><![CDATA[Prerequisites Before starting, ensure you have: Step 1: Install Development Tools and Dependencies Since we&#8217;re building NCPA from source, you&#8217;ll need Homebrew (a package manager) and some required dependencies. 1.1 Install Homebrew (if not already installed) Open Terminal and run: On Apple Silicon, Homebrew installs to /opt/homebrew/. Add it to your PATH if prompted (instructions [&#8230;]]]></description>
										<content:encoded><![CDATA[
<h3 class="wp-block-heading">Prerequisites</h3>



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



<ul class="wp-block-list">
<li>A macOS system running <strong>macOS 12 Monterey</strong> or later on <strong>Apple Silicon</strong>.</li>



<li>Administrator privileges (sudo access).</li>



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



<li>Basic familiarity with the <strong>Terminal</strong> and command-line tools.</li>
</ul>



<h3 class="wp-block-heading">Step 1: Install Development Tools and Dependencies</h3>



<p class="wp-block-paragraph">Since we&#8217;re building NCPA from source, you&#8217;ll need <strong>Homebrew</strong> (a package manager) and some required dependencies.</p>



<h4 class="wp-block-heading">1.1 Install Homebrew (if not already installed)</h4>



<p class="wp-block-paragraph">Open <strong>Terminal</strong> and 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>/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"</textarea></pre><svg xmlns="http://www.w3.org/2000/svg" style="width:24px;height:24px" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2"><path class="with-check" stroke-linecap="round" stroke-linejoin="round" d="M4.5 12.75l6 6 9-13.5"></path><path class="without-check" stroke-linecap="round" stroke-linejoin="round" d="M16.5 8.25V6a2.25 2.25 0 00-2.25-2.25H6A2.25 2.25 0 003.75 6v8.25A2.25 2.25 0 006 16.5h2.25m8.25-8.25H18a2.25 2.25 0 012.25 2.25V18A2.25 2.25 0 0118 20.25h-7.5A2.25 2.25 0 018.25 18v-1.5m8.25-8.25h-6a2.25 2.25 0 00-2.25 2.25v6"></path></svg></span><pre class="shiki dark-plus" style="background-color: #1E1E1E" tabindex="0"><code><span class="line"><span style="color: #DCDCAA">/bin/bash</span><span style="color: #D4D4D4"> </span><span style="color: #569CD6">-c</span><span style="color: #D4D4D4"> </span><span style="color: #CE9178">&quot;$(</span><span style="color: #DCDCAA">curl</span><span style="color: #CE9178"> </span><span style="color: #569CD6">-fsSL</span><span style="color: #CE9178"> https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)&quot;</span></span></code></pre></div>



<p class="wp-block-paragraph">On <strong>Apple Silicon</strong>, Homebrew installs to <code>/opt/homebrew/</code>. Add it to your <strong>PATH</strong> if prompted (instructions will appear after installation).</p>



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



<p class="wp-block-paragraph">Install <strong>Python 3</strong>, <strong>OpenSSL</strong>, and <strong>Git</strong> using Homebrew:</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>brew install python3 openssl git</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: #DCDCAA">brew</span><span style="color: #D4D4D4"> </span><span style="color: #CE9178">install</span><span style="color: #D4D4D4"> </span><span style="color: #CE9178">python3</span><span style="color: #D4D4D4"> </span><span style="color: #CE9178">openssl</span><span style="color: #D4D4D4"> </span><span style="color: #CE9178">git</span></span></code></pre></div>



<p class="wp-block-paragraph">This installs <strong>Python 3.x</strong> (e.g., <strong>3.11</strong> or later), <strong>OpenSSL</strong> for secure communication, and <strong>Git</strong> for cloning the NCPA repository.</p>



<h4 class="wp-block-heading">1.3 Verify Python Installation</h4>



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



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



<p class="wp-block-paragraph">Nagios doesn&#8217;t provide a direct macOS package for NCPA, so we&#8217;ll clone it from <strong>GitHub</strong>.</p>



<h4 class="wp-block-heading">2.1 Clone the NCPA Repository</h4>



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



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



<p class="wp-block-paragraph">This downloads the latest NCPA source (e.g., <strong>version 3.1.2</strong> or newer if updated post-March 2025).</p>



<h4 class="wp-block-heading">2.2 Optional: Check for Updates</h4>



<p class="wp-block-paragraph">If you want a specific version, 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>git checkout v3.1.2  # replace with the desired version tag</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: #DCDCAA">git</span><span style="color: #D4D4D4"> </span><span style="color: #CE9178">checkout</span><span style="color: #D4D4D4"> </span><span style="color: #CE9178">v3.1.2</span><span style="color: #D4D4D4">  </span><span style="color: #6A9955"># replace with the desired version tag</span></span></code></pre></div>



<p class="wp-block-paragraph">Otherwise, the <strong>master</strong> branch (default) is fine for the latest stable version.</p>



<h3 class="wp-block-heading">Step 3: Build NCPA from Source</h3>



<h4 class="wp-block-heading">3.1 Install Python Dependencies</h4>



<p class="wp-block-paragraph">Before building, install the Python dependencies listed in the <code>requirements.txt</code> file:</p>



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



<p class="wp-block-paragraph">This installs libraries like <strong>psutil</strong>, <strong>bottle</strong>, and other required modules.</p>



<h4 class="wp-block-heading">3.2 Run the Build Script</h4>



<p class="wp-block-paragraph">Build the NCPA binary for macOS:</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>python3 build.py --platform macos</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: #DCDCAA">python3</span><span style="color: #D4D4D4"> </span><span style="color: #CE9178">build.py</span><span style="color: #D4D4D4"> </span><span style="color: #569CD6">--platform</span><span style="color: #D4D4D4"> </span><span style="color: #CE9178">macos</span></span></code></pre></div>



<p class="wp-block-paragraph">The <code>--platform macos</code> flag ensures macOS-specific adjustments. On <strong>Apple Silicon</strong>, <strong>Python</strong> and dependencies should automatically target <strong>ARM64</strong>. If there’s an issue with architecture, you can explicitly specify:</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>arch -arm64 python3 build.py --platform macos</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: #DCDCAA">arch</span><span style="color: #D4D4D4"> </span><span style="color: #569CD6">-arm64</span><span style="color: #D4D4D4"> </span><span style="color: #CE9178">python3</span><span style="color: #D4D4D4"> </span><span style="color: #CE9178">build.py</span><span style="color: #D4D4D4"> </span><span style="color: #569CD6">--platform</span><span style="color: #D4D4D4"> </span><span style="color: #CE9178">macos</span></span></code></pre></div>



<h4 class="wp-block-heading">3.3 Locate the Output</h4>



<p class="wp-block-paragraph">After a successful build, the <strong>executable</strong> and <strong>supporting files</strong> will be in a <code>build</code> subdirectory (e.g., <strong>build/ncpa</strong>). The folder name may vary based on the platform (e.g., <strong>build/ncpa-macos-arm64</strong>).</p>



<h3 class="wp-block-heading">Step 4: Install NCPA</h3>



<p class="wp-block-paragraph">Now, move the built files to a standard location and set up the agent.</p>



<h4 class="wp-block-heading">4.1 Copy Files to Installation Directory</h4>



<p class="wp-block-paragraph">To maintain consistency, copy the NCPA files to <code>/usr/local/ncpa</code>:</p>



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



<p class="wp-block-paragraph">Make sure to adjust the <code>build/ncpa</code> path if needed, based on your output.</p>



<h4 class="wp-block-heading">4.2 Set Permissions</h4>



<p class="wp-block-paragraph">Ensure the files are executable:</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 chmod +x /usr/local/ncpa/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: #DCDCAA">sudo</span><span style="color: #D4D4D4"> </span><span style="color: #CE9178">chmod</span><span style="color: #D4D4D4"> </span><span style="color: #CE9178">+x</span><span style="color: #D4D4D4"> </span><span style="color: #CE9178">/usr/local/ncpa/ncpa</span></span></code></pre></div>



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



<h4 class="wp-block-heading">5.1 Edit the Configuration File</h4>



<p class="wp-block-paragraph">The main configuration file is usually located at <code>/usr/local/ncpa/etc/ncpa.cfg</code>. Open it with <code>nano</code>:</p>



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



<p class="wp-block-paragraph">In the configuration file, set the <strong>API token</strong> (used for secure communication):</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>&#91;general&#93;
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">&#91;general&#93;</span></span>
<span class="line"><span style="color: #DCDCAA">community_string</span><span style="color: #D4D4D4"> </span><span style="color: #CE9178">=</span><span style="color: #D4D4D4"> </span><span style="color: #CE9178">Str0ngT0k3n!</span></span></code></pre></div>



<p class="wp-block-paragraph">Restrict access to your <strong>Nagios server&#8217;s IP</strong> by updating the <code>allowed_hosts</code> section:</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>&#91;general&#93;
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">&#91;general&#93;</span></span>
<span class="line"><span style="color: #DCDCAA">allowed_hosts</span><span style="color: #D4D4D4"> </span><span style="color: #CE9178">=</span><span style="color: #D4D4D4"> &lt;</span><span style="color: #CE9178">Nagios_IP_addres</span><span style="color: #D4D4D4">s&gt;</span></span></code></pre></div>



<p class="wp-block-paragraph">Save and exit (<code>Ctrl+X</code>, then <code>Y</code> to confirm, and <code>Enter</code>).</p>



<h4 class="wp-block-heading">5.2 Test the Configuration</h4>



<p class="wp-block-paragraph">You can now test the NCPA agent:</p>



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



<p class="wp-block-paragraph">If it runs without errors (e.g., binding to port <strong>5693</strong>), press <code>Ctrl+C</code> to stop it.</p>



<h3 class="wp-block-heading">Step 6: Set Up NCPA as a Service</h3>



<p class="wp-block-paragraph">To ensure NCPA starts automatically on boot, you&#8217;ll need to create a <strong>launchd</strong> service file.</p>



<h4 class="wp-block-heading">6.1 Create the Service File</h4>



<p class="wp-block-paragraph">Create the <code>com.nagios.ncpa.plist</code> file:</p>



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



<p class="wp-block-paragraph">Paste the following content into the file:</p>



<div class="wp-block-kevinbatdorf-code-block-pro" data-code-block-pro-font-family="Code-Pro-Geist-Mono" style="font-size:.875rem;font-family:Code-Pro-Geist-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:1.5rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)"><span role="button" tabindex="0" style="color:#D4D4D4;display:none" aria-label="Copy" class="code-block-pro-copy-button"><pre class="code-block-pro-copy-button-pre" aria-hidden="true"><textarea class="code-block-pro-copy-button-textarea" tabindex="-1" aria-hidden="true" readonly>&lt;?xml version="1.0" encoding="UTF-8"?>
&lt;!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
&lt;plist version="1.0">
&lt;dict>
    &lt;key>Label&lt;/key>
    &lt;string>com.nagios.ncpa&lt;/string>
    &lt;key>ProgramArguments&lt;/key>
    &lt;array>
        &lt;string>/usr/local/ncpa/ncpa&lt;/string>
    &lt;/array>
    &lt;key>RunAtLoad&lt;/key>
    &lt;true/>
    &lt;key>KeepAlive&lt;/key>
    &lt;true/>
&lt;/dict>
&lt;/plist></textarea></pre><svg xmlns="http://www.w3.org/2000/svg" style="width:24px;height:24px" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2"><path class="with-check" stroke-linecap="round" stroke-linejoin="round" d="M4.5 12.75l6 6 9-13.5"></path><path class="without-check" stroke-linecap="round" stroke-linejoin="round" d="M16.5 8.25V6a2.25 2.25 0 00-2.25-2.25H6A2.25 2.25 0 003.75 6v8.25A2.25 2.25 0 006 16.5h2.25m8.25-8.25H18a2.25 2.25 0 012.25 2.25V18A2.25 2.25 0 0118 20.25h-7.5A2.25 2.25 0 018.25 18v-1.5m8.25-8.25h-6a2.25 2.25 0 00-2.25 2.25v6"></path></svg></span><pre class="shiki dark-plus" style="background-color: #1E1E1E" tabindex="0"><code><span class="line"><span style="color: #D4D4D4">&lt;?xml version=</span><span style="color: #CE9178">&quot;1.0&quot;</span><span style="color: #D4D4D4"> encoding=</span><span style="color: #CE9178">&quot;UTF-8&quot;</span><span style="color: #D4D4D4">?&gt;</span></span>
<span class="line"><span style="color: #D4D4D4">&lt;!</span><span style="color: #DCDCAA">DOCTYPE</span><span style="color: #D4D4D4"> </span><span style="color: #CE9178">plist</span><span style="color: #D4D4D4"> </span><span style="color: #CE9178">PUBLIC</span><span style="color: #D4D4D4"> </span><span style="color: #CE9178">&quot;-//Apple//DTD PLIST 1.0//EN&quot;</span><span style="color: #D4D4D4"> </span><span style="color: #CE9178">&quot;http://www.apple.com/DTDs/PropertyList-1.0.dtd&quot;</span><span style="color: #D4D4D4">&gt;</span></span>
<span class="line"><span style="color: #D4D4D4">&lt;plist version=</span><span style="color: #CE9178">&quot;1.0&quot;</span><span style="color: #D4D4D4">&gt;</span></span>
<span class="line"><span style="color: #D4D4D4">&lt;dict&gt;</span></span>
<span class="line"><span style="color: #D4D4D4">    &lt;</span><span style="color: #DCDCAA">key&gt;Label&lt;/key&gt;</span></span>
<span class="line"><span style="color: #D4D4D4">    &lt;</span><span style="color: #DCDCAA">string&gt;com.nagios.ncpa&lt;/string&gt;</span></span>
<span class="line"><span style="color: #D4D4D4">    &lt;</span><span style="color: #DCDCAA">key&gt;ProgramArguments&lt;/key&gt;</span></span>
<span class="line"><span style="color: #D4D4D4">    &lt;</span><span style="color: #DCDCAA">array&gt;</span></span>
<span class="line"><span style="color: #D4D4D4">        &lt;</span><span style="color: #DCDCAA">string&gt;/usr/local/ncpa/ncpa&lt;/string&gt;</span></span>
<span class="line"><span style="color: #D4D4D4">    &lt;</span><span style="color: #DCDCAA">/array&gt;</span></span>
<span class="line"><span style="color: #D4D4D4">    &lt;</span><span style="color: #DCDCAA">key&gt;RunAtLoad&lt;/key&gt;</span></span>
<span class="line"><span style="color: #D4D4D4">    &lt;</span><span style="color: #DCDCAA">true/&gt;</span></span>
<span class="line"><span style="color: #D4D4D4">    &lt;</span><span style="color: #DCDCAA">key&gt;KeepAlive&lt;/key&gt;</span></span>
<span class="line"><span style="color: #D4D4D4">    &lt;</span><span style="color: #DCDCAA">true/&gt;</span></span>
<span class="line"><span style="color: #D4D4D4">&lt;/dict&gt;</span></span>
<span class="line"><span style="color: #D4D4D4">&lt;/plist&gt;</span></span></code></pre></div>



<h4 class="wp-block-heading">6.2 Load and Start the Service</h4>



<p class="wp-block-paragraph">Now, load and start the service with:</p>



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



<h4 class="wp-block-heading">6.3 Verify Services</h4>



<p class="wp-block-paragraph">Check that NCPA is running by listing 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 launchctl list | grep 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: #DCDCAA">sudo</span><span style="color: #D4D4D4"> </span><span style="color: #CE9178">launchctl</span><span style="color: #D4D4D4"> </span><span style="color: #CE9178">list</span><span style="color: #D4D4D4"> | </span><span style="color: #DCDCAA">grep</span><span style="color: #D4D4D4"> </span><span style="color: #CE9178">ncpa</span></span></code></pre></div>



<p class="wp-block-paragraph">You should see the service listed along with its process IDs (PIDs).</p>



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



<h4 class="wp-block-heading">7.1 Check the Web Interface</h4>



<p class="wp-block-paragraph">Open a browser and visit:</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://localhost: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: #DCDCAA">https://localhost:5693</span></span></code></pre></div>



<p class="wp-block-paragraph">Log in using the <strong>API token</strong> you set earlier (<code>Str0ngT0k3n!</code> or your custom value).</p>



<h4 class="wp-block-heading">7.2 Test from Nagios Server</h4>



<p class="wp-block-paragraph">From your <strong>Nagios server</strong>, 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>curl -k https://&lt;your_mac_ip>: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: #DCDCAA">curl</span><span style="color: #D4D4D4"> </span><span style="color: #569CD6">-k</span><span style="color: #D4D4D4"> </span><span style="color: #CE9178">https://</span><span style="color: #D4D4D4">&lt;</span><span style="color: #CE9178">your_mac_i</span><span style="color: #D4D4D4">p&gt;</span><span style="color: #CE9178">:5693/api</span></span></code></pre></div>



<h3 class="wp-block-heading">Step 8: Add NCPA to Nagios</h3>



<p class="wp-block-paragraph">On your <strong>Nagios XI web GUI</strong>:</p>



<ul class="wp-block-list">
<li>Navigate to <strong>Configuration Wizards</strong>.</li>
</ul>



<figure class="wp-block-image size-full"><a href="https://library.nagios.com/wp-content/uploads/2025/03/RunAWizard-2.png"><img loading="lazy" decoding="async" width="1024" height="538" src="https://library.nagios.com/wp-content/uploads/2025/03/RunAWizard-2.png" alt="RunAWizard 2" class="wp-image-53726" title="How to Install Nagios Cross-Platform Agent (NCPA) on macOS Monterey 4" srcset="https://library.nagios.com/wp-content/uploads/2025/03/RunAWizard-2.png 1024w, https://library.nagios.com/wp-content/uploads/2025/03/RunAWizard-2-300x158.png 300w, https://library.nagios.com/wp-content/uploads/2025/03/RunAWizard-2-768x404.png 768w" sizes="(max-width: 1024px) 100vw, 1024px" /></a><figcaption class="wp-element-caption">Run a Wizard</figcaption></figure>



<ul class="wp-block-list">
<li>Select <strong>Mac OS X</strong>.</li>
</ul>



<figure class="wp-block-image size-full"><a href="https://library.nagios.com/wp-content/uploads/2025/03/Mac-OS-X-wizard.png"><img loading="lazy" decoding="async" width="1024" height="532" src="https://library.nagios.com/wp-content/uploads/2025/03/Mac-OS-X-wizard.png" alt="Mac OS X wizard" class="wp-image-53727" title="How to Install Nagios Cross-Platform Agent (NCPA) on macOS Monterey 5" srcset="https://library.nagios.com/wp-content/uploads/2025/03/Mac-OS-X-wizard.png 1024w, https://library.nagios.com/wp-content/uploads/2025/03/Mac-OS-X-wizard-300x156.png 300w, https://library.nagios.com/wp-content/uploads/2025/03/Mac-OS-X-wizard-768x399.png 768w" sizes="(max-width: 1024px) 100vw, 1024px" /></a><figcaption class="wp-element-caption">MacOS wizard</figcaption></figure>



<ul class="wp-block-list">
<li>Enter the IP address of your macOS system and the <strong>API token</strong> you created in the configuration file.</li>



<li>Follow the wizard to select the system metrics you want to monitor.</li>
</ul>



<figure class="wp-block-image size-full"><a href="https://library.nagios.com/wp-content/uploads/2025/03/Mac-OS-Wizard-Options.png"><img loading="lazy" decoding="async" width="1024" height="565" src="https://library.nagios.com/wp-content/uploads/2025/03/Mac-OS-Wizard-Options.png" alt="Mac OS Wizard Options" class="wp-image-53728" title="How to Install Nagios Cross-Platform Agent (NCPA) on macOS Monterey 6" srcset="https://library.nagios.com/wp-content/uploads/2025/03/Mac-OS-Wizard-Options.png 1024w, https://library.nagios.com/wp-content/uploads/2025/03/Mac-OS-Wizard-Options-300x166.png 300w, https://library.nagios.com/wp-content/uploads/2025/03/Mac-OS-Wizard-Options-768x424.png 768w" sizes="(max-width: 1024px) 100vw, 1024px" /></a><figcaption class="wp-element-caption">Wizard settings</figcaption></figure>



<ul class="wp-block-list">
<li>Click <strong>Finish</strong> to complete the setup.</li>
</ul>



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



<p class="wp-block-paragraph">By following these steps, you have successfully installed the <strong>Nagios Cross-Platform Agent (NCPA)</strong> on <strong>macOS Monterey</strong> for Apple Silicon. Your <strong>Nagios monitoring server</strong> will now be able to collect system metrics and monitor your macOS system in real time.</p>



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



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



<li><a href="https://library.nagios.com/docs" data-type="link" data-id="https://support.nagios.com/kb/" target="_blank" rel="noreferrer noopener">Nagios Documentation</a></li>
</ul>



<p class="wp-block-paragraph"></p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>Configuring macOS Log Forwarding to Nagios Log Server on Apple Silicon Macs</title>
		<link>https://library.nagios.com/documentation/configuring-macos-log-forwarding-to-nagios-log-server-on-apple-silicon-macs/</link>
		
		<dc:creator><![CDATA[Jack Brisben]]></dc:creator>
		<pubDate>Thu, 27 Mar 2025 18:53:30 +0000</pubDate>
				<category><![CDATA[Documentation]]></category>
		<category><![CDATA[Monitoring]]></category>
		<category><![CDATA[Log Monitoring]]></category>
		<category><![CDATA[Operating System Monitoring]]></category>
		<guid isPermaLink="false">https://library.nagios.com/?p=53582</guid>

					<description><![CDATA[Sending Logs from Apple Silicon macOS to Nagios Log Server This guide explains how to configure an Apple Silicon-based macOS system (e.g., M1, M2, or later) to forward logs to Nagios Log Server for centralized log management and real-time monitoring. We’ll use rsyslog to forward logs, as macOS’s native syslogd has limited remote forwarding capabilities. [&#8230;]]]></description>
										<content:encoded><![CDATA[
<h3 class="wp-block-heading">Sending Logs from Apple Silicon macOS to Nagios Log Server</h3>



<p class="wp-block-paragraph">This guide explains how to configure an Apple Silicon-based macOS system (e.g., M1, M2, or later) to forward logs to Nagios Log Server for centralized log management and real-time monitoring. We’ll use rsyslog to forward logs, as macOS’s native syslogd has limited remote forwarding capabilities.</p>



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



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



<ul class="wp-block-list">
<li><strong>Nagios Log Server</strong> installed and running (latest version, e.g., 2024R2 recommended).</li>



<li>An Apple Silicon-based macOS device (macOS 11 Big Sur or later) with administrator privileges.</li>



<li>Network access between the Mac and the Nagios Log Server instance.</li>



<li>The IP address and port (default: 514) of your Nagios Log Server.</li>
</ul>



<h3 class="wp-block-heading">Why Use Nagios Log Server?</h3>



<p class="wp-block-paragraph">Nagios Log Server provides:</p>



<ul class="wp-block-list">
<li>Centralized log collection and management.</li>



<li>Real-time analysis with dashboards and alerts.</li>



<li>Scalability with clustering and failover.</li>



<li>Compatibility with macOS logs via syslog.</li>
</ul>



<h3 class="wp-block-heading">Key Logs to Monitor</h3>



<p class="wp-block-paragraph">Nagios Log Server can collect:</p>



<ul class="wp-block-list">
<li><strong>System Logs</strong>: System.log, Kernel.log.</li>



<li><strong>Application Logs</strong>: App-specific logs.</li>



<li><strong>Security Logs</strong>: Auth.log, firewall logs.</li>



<li><strong>Performance Logs</strong>: CPU, memory, and disk activity.</li>
</ul>



<h3 class="wp-block-heading">Installation and Setup</h3>



<h3 class="wp-block-heading">Step 1: Enable macOS Logging</h3>



<p class="wp-block-paragraph">macOS uses the unified logging system (log command) and syslogd.</p>



<ul class="wp-block-list">
<li><strong>Verify Logging is Active:</strong>
<ol class="wp-block-list">
<li>Open Terminal.</li>



<li>Check the live log stream:</li>
</ol>
</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>log stream --level info</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: #DCDCAA">log</span><span style="color: #D4D4D4"> </span><span style="color: #CE9178">stream</span><span style="color: #D4D4D4"> </span><span style="color: #569CD6">--level</span><span style="color: #D4D4D4"> </span><span style="color: #CE9178">info</span></span></code></pre></div>



<ol class="wp-block-list">
<li>Press Ctrl+C to exit.</li>
</ol>



<p class="wp-block-paragraph"><strong>Check Syslogd:</strong> Verify syslogd 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 launchctl list | grep syslogd</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: #DCDCAA">sudo</span><span style="color: #D4D4D4"> </span><span style="color: #CE9178">launchctl</span><span style="color: #D4D4D4"> </span><span style="color: #CE9178">list</span><span style="color: #D4D4D4"> | </span><span style="color: #DCDCAA">grep</span><span style="color: #D4D4D4"> </span><span style="color: #CE9178">syslogd</span></span></code></pre></div>



<p class="wp-block-paragraph">If not running, load it:</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 launchctl load -w /System/Library/LaunchDaemons/com.apple.syslogd.plist</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: #DCDCAA">sudo</span><span style="color: #D4D4D4"> </span><span style="color: #CE9178">launchctl</span><span style="color: #D4D4D4"> </span><span style="color: #CE9178">load</span><span style="color: #D4D4D4"> </span><span style="color: #569CD6">-w</span><span style="color: #D4D4D4"> </span><span style="color: #CE9178">/System/Library/LaunchDaemons/com.apple.syslogd.plist</span></span></code></pre></div>



<h3 class="wp-block-heading">Step 2: Install and Configure rsyslog</h3>



<p class="wp-block-paragraph">Since macOS’s syslogd doesn’t natively support robust remote forwarding, install rsyslog via Homebrew.</p>



<ul class="wp-block-list">
<li><strong>Install Homebrew:</strong> On Apple Silicon, Homebrew installs to /opt/homebrew/:</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>/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"</textarea></pre><svg xmlns="http://www.w3.org/2000/svg" style="width:24px;height:24px" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2"><path class="with-check" stroke-linecap="round" stroke-linejoin="round" d="M4.5 12.75l6 6 9-13.5"></path><path class="without-check" stroke-linecap="round" stroke-linejoin="round" d="M16.5 8.25V6a2.25 2.25 0 00-2.25-2.25H6A2.25 2.25 0 003.75 6v8.25A2.25 2.25 0 006 16.5h2.25m8.25-8.25H18a2.25 2.25 0 012.25 2.25V18A2.25 2.25 0 0118 20.25h-7.5A2.25 2.25 0 018.25 18v-1.5m8.25-8.25h-6a2.25 2.25 0 00-2.25 2.25v6"></path></svg></span><pre class="shiki dark-plus" style="background-color: #1E1E1E" tabindex="0"><code><span class="line"><span style="color: #DCDCAA">/bin/bash</span><span style="color: #D4D4D4"> </span><span style="color: #569CD6">-c</span><span style="color: #D4D4D4"> </span><span style="color: #CE9178">&quot;$(</span><span style="color: #DCDCAA">curl</span><span style="color: #CE9178"> </span><span style="color: #569CD6">-fsSL</span><span style="color: #CE9178"> https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)&quot;</span></span></code></pre></div>



<p class="wp-block-paragraph">Add Homebrew to your PATH:</p>



<div class="wp-block-kevinbatdorf-code-block-pro" data-code-block-pro-font-family="Code-Pro-Geist-Mono" style="font-size:.875rem;font-family:Code-Pro-Geist-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:1.5rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)"><span role="button" tabindex="0" style="color:#D4D4D4;display:none" aria-label="Copy" class="code-block-pro-copy-button"><pre class="code-block-pro-copy-button-pre" aria-hidden="true"><textarea class="code-block-pro-copy-button-textarea" tabindex="-1" aria-hidden="true" readonly>echo 'eval "$(/opt/homebrew/bin/brew shellenv)"' >> ~/.zshrc
source ~/.zshrc</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: #DCDCAA">echo</span><span style="color: #D4D4D4"> </span><span style="color: #CE9178">&#39;eval &quot;$(/opt/homebrew/bin/brew shellenv)&quot;&#39;</span><span style="color: #D4D4D4"> &gt;&gt; </span><span style="color: #CE9178">~/.zshrc</span></span>
<span class="line"><span style="color: #DCDCAA">source</span><span style="color: #D4D4D4"> </span><span style="color: #CE9178">~/.zshrc</span></span></code></pre></div>



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



<p class="wp-block-paragraph"><strong>Configure rsyslog:</strong> Edit the configuration file:</p>



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



<p class="wp-block-paragraph">Add the following to forward logs to Nagios Log Server:</p>



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



<p class="wp-block-paragraph">Replace &lt;logserver_ip&gt; with your Nagios Log Server’s IP (e.g., 192.168.1.100).</p>



<p class="wp-block-paragraph">Enable modules (uncomment or add at the top):</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>module(load="imuxsock")    # Local system logs
module(load="imklog")      # Kernel logs</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: #DCDCAA">module(load</span><span style="color: #D4D4D4">=</span><span style="color: #DCDCAA">&quot;imuxsock&quot;</span><span style="color: #D4D4D4">)    </span><span style="color: #6A9955"># Local system logs</span></span>
<span class="line"><span style="color: #DCDCAA">module(load</span><span style="color: #D4D4D4">=</span><span style="color: #DCDCAA">&quot;imklog&quot;</span><span style="color: #D4D4D4">)      </span><span style="color: #6A9955"># Kernel logs</span></span></code></pre></div>



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



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



<p class="wp-block-paragraph">Verify it’s 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>ps aux | grep rsyslogd</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: #DCDCAA">ps</span><span style="color: #D4D4D4"> </span><span style="color: #CE9178">aux</span><span style="color: #D4D4D4"> | </span><span style="color: #DCDCAA">grep</span><span style="color: #D4D4D4"> </span><span style="color: #CE9178">rsyslogd</span></span></code></pre></div>



<p class="wp-block-paragraph"><strong>Firewall Check:</strong> If macOS’s firewall is enabled (System Settings &gt; Network &gt; Firewall), allow outbound traffic on port 514 (UDP or TCP).</p>



<h3 class="wp-block-heading">Step 3: Configure Nagios Log Server</h3>



<p class="wp-block-paragraph">Set up Nagios Log Server to receive logs:</p>



<ol class="wp-block-list">
<li>Log into the Nagios Log Server web interface (e.g., http://&lt;logserver_ip&gt;:80).</li>



<li>Go to <strong>Configure &gt; Configuration Editor</strong>.</li>



<li>Under <strong>Log Sources</strong>, add a new source:</li>
</ol>



<figure class="wp-block-image size-full is-resized"><a href="https://library.nagios.com/wp-content/uploads/2025/03/add_log_source_screenshot_720-1.png"><img loading="lazy" decoding="async" width="719" height="113" src="https://library.nagios.com/wp-content/uploads/2025/03/add_log_source_screenshot_720-1.png" alt="add log source screenshot 720 1" class="wp-image-53586" style="width:800px;height:auto" title="Configuring macOS Log Forwarding to Nagios Log Server on Apple Silicon Macs 7" srcset="https://library.nagios.com/wp-content/uploads/2025/03/add_log_source_screenshot_720-1.png 719w, https://library.nagios.com/wp-content/uploads/2025/03/add_log_source_screenshot_720-1-300x47.png 300w" sizes="(max-width: 719px) 100vw, 719px" /></a><figcaption class="wp-element-caption">Configuring Logs</figcaption></figure>



<ul class="wp-block-list">
<li><strong>Type</strong>: Syslog (UDP or TCP, matching your rsyslog config).</li>



<li><strong>IP Address</strong>: Your Mac’s IP (find with ifconfig | grep inet).</li>



<li><strong>Port</strong>: 514 (default).</li>



<li>Save and apply the configuration.</li>
</ul>



<h3 class="wp-block-heading">Step 4: Verify Log Collection</h3>



<ul class="wp-block-list">
<li><strong>Test Log Forwarding:</strong> On the Mac, generate a test log:</li>
</ul>



<div class="wp-block-kevinbatdorf-code-block-pro" data-code-block-pro-font-family="Code-Pro-Geist-Mono" style="font-size:.875rem;font-family:Code-Pro-Geist-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:1.5rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)"><span role="button" tabindex="0" style="color:#D4D4D4;display:none" aria-label="Copy" class="code-block-pro-copy-button"><pre class="code-block-pro-copy-button-pre" aria-hidden="true"><textarea class="code-block-pro-copy-button-textarea" tabindex="-1" aria-hidden="true" readonly>logger "Test log from macOS (Apple Silicon) to Nagios Log Server"</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: #DCDCAA">logger</span><span style="color: #D4D4D4"> </span><span style="color: #CE9178">&quot;Test log from macOS (Apple Silicon) to Nagios Log Server&quot;</span></span></code></pre></div>



<h3 class="wp-block-heading"><strong>Check Nagios Log Server:</strong></h3>



<ol class="wp-block-list">
<li>Go to <strong>Home &gt; Dashboards</strong> or <strong>Reports</strong>.</li>



<li>Look for the test message from your Mac’s IP.</li>
</ol>



<ul class="wp-block-list">
<li>If it doesn’t appear:
<ul class="wp-block-list">
<li>Verify the server is listening on port 514 (netstat -an | grep 514 on the server).</li>



<li>Test connectivity (ping &lt;logserver_ip&gt; from the Mac).</li>



<li>Check macOS firewall settings.</li>
</ul>
</li>
</ul>



<h3 class="wp-block-heading">Best Practices</h3>



<ul class="wp-block-list">
<li><strong>Alerts</strong>: In Nagios Log Server, set up alerts (e.g., for failed logins) via <strong>Configure &gt; Alerts</strong>.</li>



<li><strong>Dashboards</strong>: Customize dashboards to visualize macOS log trends.</li>



<li><strong>Secure Forwarding</strong>: For production, use TCP with TLS:</li>
</ul>



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



<ul class="wp-block-list">
<li>Configure TLS in Nagios Log Server (see official docs).</li>
</ul>



<p class="wp-block-paragraph"><strong>Log Rotation</strong>: macOS handles local rotation via newsyslog; configure retention in Nagios Log Server.</p>



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



<p class="wp-block-paragraph">Your Apple Silicon macOS system is now forwarding logs to Nagios Log Server using rsyslog. This setup leverages Nagios Log Server’s powerful log analysis, alerting, and visualization features. For advanced monitoring, explore Nagios Log Server’s documentation or integrate with Nagios XI for broader system oversight.</p>



<p class="wp-block-paragraph">For more details, check:</p>



<ul class="wp-block-list">
<li><a href="https://library.nagios.com/products/nagios-log-server/documentation/" target="_blank" rel="noreferrer noopener">Nagios Log Server Documentation</a></li>



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



<p class="wp-block-paragraph"></p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>Configuring macOS Log Forwarding to a Log Server on Intel Macs</title>
		<link>https://library.nagios.com/monitoring/configuring-macos-log-forwarding-to-a-log-server-on-intel-macs/</link>
		
		<dc:creator><![CDATA[Jack Brisben]]></dc:creator>
		<pubDate>Tue, 25 Mar 2025 18:57:10 +0000</pubDate>
				<category><![CDATA[Monitoring]]></category>
		<category><![CDATA[Documentation]]></category>
		<category><![CDATA[Log Monitoring]]></category>
		<category><![CDATA[Operating System Monitoring]]></category>
		<guid isPermaLink="false">https://library.nagios.com/?p=48786</guid>

					<description><![CDATA[Introduction Monitoring macOS using a Log Server enables centralized logging and real-time event tracking. This guide explains how to configure an Intel-based macOS system to forward logs to a Log Server for analysis. We’ll cover enabling logging, setting up log forwarding, and applying best practices for effective monitoring. Prerequisites Before starting, ensure you have: Why [&#8230;]]]></description>
										<content:encoded><![CDATA[
<h3 class="wp-block-heading">Introduction</h3>



<p class="wp-block-paragraph">Monitoring macOS using a Log Server enables centralized logging and real-time event tracking. This guide explains how to configure an Intel-based macOS system to forward logs to a Log Server for analysis. We’ll cover enabling logging, setting up log forwarding, and applying best practices for effective monitoring.</p>



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



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



<ul class="wp-block-list">
<li>A running instance of a <strong>Log Server</strong> (e.g., Splunk, Graylog, or ELK; latest version recommended).</li>



<li>An <strong>Intel-based macOS device</strong> (macOS 10.15 Catalina or later) with administrator privileges.</li>



<li><strong>Internet connectivity</strong> or network access between the Mac and the Log Server.</li>
</ul>



<h3 class="wp-block-heading">Why Monitor macOS with a Log Server?</h3>



<p class="wp-block-paragraph">Monitoring macOS logs helps you:</p>



<ul class="wp-block-list">
<li><strong>Identify Security Threats</strong> – Detect unauthorized access attempts and suspicious activity.</li>



<li><strong>Analyze System Performance</strong> – Track system logs to find performance bottlenecks.</li>



<li><strong>Ensure Compliance</strong> – Maintain logs for audits and compliance requirements.</li>



<li><strong>Troubleshoot Issues</strong> – Gain insights into system errors and failures.</li>
</ul>



<h3 class="wp-block-heading">Key Logs to Monitor</h3>



<p class="wp-block-paragraph">A Log Server can collect various logs from macOS, including:</p>



<h4 class="wp-block-heading">System Logs</h4>



<ul class="wp-block-list">
<li><strong>System.log</strong> – General system activity and errors.</li>



<li><strong>Kernel.log</strong> – Kernel-related messages and errors.</li>



<li><strong>Application Logs</strong> – Logs from installed applications.</li>
</ul>



<h4 class="wp-block-heading">Security Logs</h4>



<ul class="wp-block-list">
<li><strong>Auth.log</strong> – Authentication attempts and failures.</li>



<li><strong>Firewall Logs</strong> – Records of blocked and allowed connections.</li>
</ul>



<h4 class="wp-block-heading">Performance Logs</h4>



<ul class="wp-block-list">
<li><strong>CPU &amp; Memory Usage Logs</strong> – Insights into system resource consumption.</li>



<li><strong>Disk Activity Logs</strong> – Read/write operations on the file system.</li>
</ul>



<h4 class="wp-block-heading">Installation and Setup</h4>



<h3 class="wp-block-heading">Step 1: Enable and Configure macOS Logging</h3>



<p class="wp-block-paragraph">macOS uses the unified logging system (log command) and syslogd for log management.</p>



<ol class="wp-block-list">
<li><strong>Verify Logging is Active</strong>:
<ul class="wp-block-list">
<li>Open <strong>Terminal</strong>.</li>



<li>Check the live log stream:</li>
</ul>
</li>
</ol>



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



<p class="wp-block-paragraph">This displays real-time logs. Press Ctrl+C to exit.</p>



<p class="wp-block-paragraph"><strong>Enable Syslog Compatibility</strong>:</p>



<ul class="wp-block-list">
<li>macOS’s syslogd is enabled by default but needs configuration for remote forwarding. No need to manually load it unless modified:</li>
</ul>



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



<p class="wp-block-paragraph">If not running, load it:</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 launchctl load -w /System/Library/LaunchDaemons/com.apple.syslogd.plist</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: #DCDCAA">sudo</span><span style="color: #D4D4D4"> </span><span style="color: #CE9178">launchctl</span><span style="color: #D4D4D4"> </span><span style="color: #CE9178">load</span><span style="color: #D4D4D4"> </span><span style="color: #569CD6">-w</span><span style="color: #D4D4D4"> </span><span style="color: #CE9178">/System/Library/LaunchDaemons/com.apple.syslogd.plist</span></span></code></pre></div>



<h3 class="wp-block-heading">Step 2: Install and Configure Log Forwarding</h3>



<p class="wp-block-paragraph">To forward logs to a Log Server, we’ll use rsyslog, as macOS’s built-in syslogd has limited remote forwarding capabilities.</p>



<ol class="wp-block-list">
<li><strong>Install Homebrew (if not installed)</strong>:
<ul class="wp-block-list">
<li>On Intel Macs, Homebrew installs to /usr/local/:</li>
</ul>
</li>
</ol>



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



<p class="wp-block-paragraph">Follow the prompts and add Homebrew to your PATH if prompted:</p>



<div class="wp-block-kevinbatdorf-code-block-pro" data-code-block-pro-font-family="Code-Pro-Geist-Mono" style="font-size:.875rem;font-family:Code-Pro-Geist-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:1.5rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)"><span role="button" tabindex="0" style="color:#D4D4D4;display:none" aria-label="Copy" class="code-block-pro-copy-button"><pre class="code-block-pro-copy-button-pre" aria-hidden="true"><textarea class="code-block-pro-copy-button-textarea" tabindex="-1" aria-hidden="true" readonly>echo 'eval "$(/usr/local/bin/brew shellenv)"' >> ~/.zshrc
source ~/.zshrc</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: #DCDCAA">echo</span><span style="color: #D4D4D4"> </span><span style="color: #CE9178">&#39;eval &quot;$(/usr/local/bin/brew shellenv)&quot;&#39;</span><span style="color: #D4D4D4"> &gt;&gt; </span><span style="color: #CE9178">~/.zshrc</span></span>
<span class="line"><span style="color: #DCDCAA">source</span><span style="color: #D4D4D4"> </span><span style="color: #CE9178">~/.zshrc</span></span></code></pre></div>



<p class="wp-block-paragraph"><strong>Install rsyslog</strong>:</p>



<ul class="wp-block-list">
<li>Run:</li>
</ul>



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



<p class="wp-block-paragraph"><strong>Configure rsyslog for Remote Forwarding</strong>:</p>



<ul class="wp-block-list">
<li>Edit the configuration file:</li>
</ul>



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



<p class="wp-block-paragraph">Add these lines at the bottom to forward all logs to your Log Server:</p>



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



<ul class="wp-block-list">
<li>Replace &lt;logserver_ip&gt; with your Log Server’s IP address (e.g., 192.168.1.100).</li>
</ul>



<p class="wp-block-paragraph">Enable necessary modules (uncomment or add at the top if missing):</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>module(load="imuxsock")    # For local system logs
module(load="imklog")      # For kernel logs</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: #DCDCAA">module(load</span><span style="color: #D4D4D4">=</span><span style="color: #DCDCAA">&quot;imuxsock&quot;</span><span style="color: #D4D4D4">)    </span><span style="color: #6A9955"># For local system logs</span></span>
<span class="line"><span style="color: #DCDCAA">module(load</span><span style="color: #D4D4D4">=</span><span style="color: #DCDCAA">&quot;imklog&quot;</span><span style="color: #D4D4D4">)      </span><span style="color: #6A9955"># For kernel logs</span></span></code></pre></div>



<p class="wp-block-paragraph">Save and exit (Ctrl+X, Y, Enter)</p>



<p class="wp-block-paragraph"><strong>Start rsyslog</strong>:</p>



<ul class="wp-block-list">
<li>Run as a service:</li>
</ul>



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



<p class="wp-block-paragraph">Verify it’s 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>ps aux | grep rsyslogd</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: #DCDCAA">ps</span><span style="color: #D4D4D4"> </span><span style="color: #CE9178">aux</span><span style="color: #D4D4D4"> | </span><span style="color: #DCDCAA">grep</span><span style="color: #D4D4D4"> </span><span style="color: #CE9178">rsyslogd</span></span></code></pre></div>



<p class="wp-block-paragraph">You should see an rsyslogd process.</p>



<p class="wp-block-paragraph"><strong>Firewall Note</strong>: If macOS’s firewall is enabled (<strong>System Preferences &gt; Security &amp; Privacy &gt; Firewall</strong>), allow outbound UDP/TCP port 514.</p>



<h3 class="wp-block-heading">Step 3: Configure the Log Server</h3>



<p class="wp-block-paragraph">Set up your Log Server to receive logs from the Mac:</p>



<ol class="wp-block-list">
<li>Log into your Log Server’s web interface.</li>



<li>Navigate to <strong>Configuration &gt; Log Sources</strong> (or equivalent, depending on your Log Server).</li>



<li>Add a new log source:</li>
</ol>



<figure class="wp-block-image size-full"><a href="https://library.nagios.com/wp-content/uploads/2025/03/add_log_source_screenshot_720.png"><img loading="lazy" decoding="async" width="719" height="113" src="https://library.nagios.com/wp-content/uploads/2025/03/add_log_source_screenshot_720.png" alt="add log source screenshot 720" class="wp-image-53276" title="Configuring macOS Log Forwarding to a Log Server on Intel Macs 8" srcset="https://library.nagios.com/wp-content/uploads/2025/03/add_log_source_screenshot_720.png 719w, https://library.nagios.com/wp-content/uploads/2025/03/add_log_source_screenshot_720-300x47.png 300w" sizes="(max-width: 719px) 100vw, 719px" /></a><figcaption class="wp-element-caption">Log Server Verification</figcaption></figure>



<ol class="wp-block-list">
<li><strong>Type</strong>: Syslog (UDP or TCP, matching Step 2).
<ul class="wp-block-list">
<li><strong>IP Address</strong>: Your Mac’s IP (find it with ifconfig | grep inet).
<ul class="wp-block-list">
<li><strong>Port</strong>: 514 (default for syslog).</li>
</ul>
</li>
</ul>
</li>



<li>Save and apply the configuration.</li>
</ol>



<h3 class="wp-block-heading">Step 4: Verify Log Collection</h3>



<p class="wp-block-paragraph">Test that logs are being forwarded:</p>



<ol class="wp-block-list">
<li>Generate a test log on the Mac:</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>logger "Test log message from macOS"</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: #DCDCAA">logger</span><span style="color: #D4D4D4"> </span><span style="color: #CE9178">&quot;Test log message from macOS&quot;</span></span></code></pre></div>



<p class="wp-block-paragraph">Check the Log Server interface for the message (e.g., under “Logs” or “Events”).</p>



<ul class="wp-block-list">
<li>If it doesn’t appear:
<ul class="wp-block-list">
<li>Ensure the Log Server is listening on port 514 (run netstat -an | grep 514 on the server).</li>



<li>Verify network connectivity (ping &lt;logserver_ip&gt; from the Mac).</li>



<li>Check macOS firewall settings.</li>
</ul>
</li>
</ul>



<h3 class="wp-block-heading">Best Practices for macOS Log Monitoring</h3>



<ul class="wp-block-list">
<li><strong>Set Proactive Alerts</strong>: Configure the Log Server to notify you of security events (e.g., failed logins) or system errors.</li>



<li><strong>Monitor Authentication Logs</strong>: Watch for patterns in authentication-related logs (e.g., subsystem:com.apple.securityd in unified logs).</li>



<li><strong>Optimize Log Storage</strong>: Implement log rotation on the Log Server (macOS handles local rotation via newsyslog).</li>



<li><strong>Analyze System Performance</strong>: Use log data to track trends (pair with tools like sysdiagnose for deeper insights).</li>



<li><strong>Secure Forwarding</strong>: Use TCP with TLS if supported (add $ActionForwardDefaultTemplate RSYSLOG_SyslogProtocol23Format to rsyslog.conf and configure TLS).</li>
</ul>



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



<p class="wp-block-paragraph">You’ve configured your Intel-based macOS system to forward logs to a Log Server using rsyslog. This setup enables centralized monitoring of system, security, and application events. For comprehensive unified log coverage, consider the advanced setup or a dedicated agent.</p>



<p class="wp-block-paragraph">For further customization, adjust rsyslog.conf filters or Log Server settings to focus on specific log types. Regularly review logs to maintain system health and security.</p>



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



<ul class="wp-block-list">
<li><a href="https://library.nagios.com/products/nagios-xi/documentation/" target="_blank" rel="noreferrer noopener">Nagios XI Documentation</a></li>



<li><a href="https://exchange.nagios.org/" target="_blank" rel="noopener">Nagios Mac Exchange</a></li>



<li><a href="https://support.nagios.com/forum/" target="_blank" rel="noopener">Nagios Support Forum</a></li>



<li><a href="https://support.nagios.com/kb/" target="_blank" rel="noreferrer noopener">Nagios Knowledge Base</a></li>
</ul>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>How to Install and Configure SNMP on Apple Silicon macOS and Monitor with Nagios XI</title>
		<link>https://library.nagios.com/documentation/monitor-apple-macos-snmp-nagios-xi/</link>
		
		<dc:creator><![CDATA[Jack Brisben]]></dc:creator>
		<pubDate>Tue, 25 Mar 2025 14:43:33 +0000</pubDate>
				<category><![CDATA[Documentation]]></category>
		<category><![CDATA[Monitoring]]></category>
		<category><![CDATA[Apple Silicon Mac]]></category>
		<category><![CDATA[Operating System Monitoring]]></category>
		<category><![CDATA[SNMP]]></category>
		<guid isPermaLink="false">https://library.nagios.com/?p=52527</guid>

					<description><![CDATA[Simple Network Management Protocol (SNMP) is a protocol used to monitor network devices and servers. In this guide, we’ll show you how to install, configure, and test SNMP on macOS running Apple Silicon (M1/M2/M3) and then integrate it with Nagios XI for monitoring. Prerequisites Before proceeding with the setup, ensure you have the following: Why [&#8230;]]]></description>
										<content:encoded><![CDATA[
<p class="wp-block-paragraph">Simple Network Management Protocol (SNMP) is a protocol used to monitor network devices and servers. In this guide, we’ll show you how to install, configure, and test SNMP on macOS running Apple Silicon (M1/M2/M3) and then integrate it with Nagios XI for monitoring.</p>



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



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



<ul class="wp-block-list">
<li>A running instance of Nagios XI (latest version recommended).</li>



<li>A macOS system (<a href="https://www.apple.com/in/macos/big-sur/index.html" target="_blank" rel="noreferrer noopener">macOS 11 Big Sur</a> or later) with administrator privileges.</li>



<li>SNMP is installed and configured on macOS.</li>



<li>Internet connectivity for API communication between Nagios XI and the Mac.</li>
</ul>



<h3 class="wp-block-heading"><strong>Why Monitor macOS with SNMP?</strong></h3>



<p class="wp-block-paragraph">Monitoring your Mac using SNMP helps you:</p>



<ul class="wp-block-list">
<li><strong>Detect Performance Issues Proactively</strong> – Identify CPU, memory, disk, or network bottlenecks before they disrupt operations.</li>



<li><strong>Ensure Security</strong> – Track unauthorized access or abnormal system behaviors.</li>



<li><strong>Monitor System Health</strong> – Keep an eye on temperature, battery levels, and uptime.</li>



<li><strong>Track Resource Usage</strong> – Monitor CPU, memory, and disk usage to optimize performance.</li>
</ul>



<h3 class="wp-block-heading"><strong>Key Metrics to Monitor</strong></h3>



<p class="wp-block-paragraph">Nagios XI offers various monitoring capabilities for macOS using SNMP. Below are key metrics to track:</p>



<h4 class="wp-block-heading"><strong>System Metrics</strong></h4>



<ul class="wp-block-list">
<li><strong>CPU Usage</strong> – Monitor CPU utilization to ensure processes are not overloading the system.</li>



<li><strong>Memory Usage</strong> – Track memory usage to prevent slowdowns or crashes.</li>



<li><strong>Disk Space</strong> – Monitor available storage to avoid running out of space.</li>
</ul>



<h4 class="wp-block-heading"><strong>Network Metrics</strong></h4>



<ul class="wp-block-list">
<li><strong>Network Interfaces</strong> – Track Ethernet or Wi-Fi connection performance.</li>



<li><strong>Network Traffic</strong> – Measure data sent and received to monitor bandwidth usage.</li>
</ul>



<h4 class="wp-block-heading"><strong>System Health Metrics</strong></h4>



<ul class="wp-block-list">
<li><strong>Battery Health (for laptops)</strong> – Monitor battery charge percentage and cycles.</li>



<li><strong>Temperature</strong> – Track system temperature to prevent overheating.</li>
</ul>



<h4 class="wp-block-heading"><strong>Error Tracking</strong></h4>



<ul class="wp-block-list">
<li><strong>High CPU or Memory Usage</strong> – Detect and alert on resource-intensive processes.</li>



<li><strong>Disk Space Running Low</strong> – Receive alerts when storage space is critically low.</li>
</ul>



<h3 class="wp-block-heading"><strong>Installation and Setup</strong></h3>



<h4 class="wp-block-heading"><strong>Step 1: Install Homebrew (if not already installed)</strong></h4>



<p class="wp-block-paragraph">Homebrew is a package manager for macOS. If it’s not installed, run 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>/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"</textarea></pre><svg xmlns="http://www.w3.org/2000/svg" style="width:24px;height:24px" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2"><path class="with-check" stroke-linecap="round" stroke-linejoin="round" d="M4.5 12.75l6 6 9-13.5"></path><path class="without-check" stroke-linecap="round" stroke-linejoin="round" d="M16.5 8.25V6a2.25 2.25 0 00-2.25-2.25H6A2.25 2.25 0 003.75 6v8.25A2.25 2.25 0 006 16.5h2.25m8.25-8.25H18a2.25 2.25 0 012.25 2.25V18A2.25 2.25 0 0118 20.25h-7.5A2.25 2.25 0 018.25 18v-1.5m8.25-8.25h-6a2.25 2.25 0 00-2.25 2.25v6"></path></svg></span><pre class="shiki dark-plus" style="background-color: #1E1E1E" tabindex="0"><code><span class="line"><span style="color: #DCDCAA">/bin/bash</span><span style="color: #D4D4D4"> </span><span style="color: #569CD6">-c</span><span style="color: #D4D4D4"> </span><span style="color: #CE9178">&quot;$(</span><span style="color: #DCDCAA">curl</span><span style="color: #CE9178"> </span><span style="color: #569CD6">-fsSL</span><span style="color: #CE9178"> https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)&quot;</span></span></code></pre></div>



<blockquote class="wp-block-quote is-layout-flow wp-block-quote-is-layout-flow">
<p class="wp-block-paragraph"><strong>Note:</strong> On Apple Silicon Macs, Homebrew installs in <code>/opt/homebrew/</code> instead of <code>/usr/local/</code>. Adjust paths accordingly.</p>
</blockquote>



<h4 class="wp-block-heading"><strong>Step 2: Install SNMP on macOS</strong></h4>



<p class="wp-block-paragraph">Open <strong>Terminal</strong> and install SNMP using Homebrew:</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>brew 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: #DCDCAA">brew</span><span style="color: #D4D4D4"> </span><span style="color: #CE9178">install</span><span style="color: #D4D4D4"> </span><span style="color: #CE9178">net-snmp</span></span></code></pre></div>



<h4 class="wp-block-heading"><strong>Step 3: Configure SNMP</strong></h4>



<p class="wp-block-paragraph">Edit the SNMP configuration file:</p>



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



<p class="wp-block-paragraph">Modify or add the following lines:</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>com2sec readonly  default         public
group   MyROGroup v1              readonly
view    all    included   .1
access  MyROGroup ""      any       noauth    exact  all    none   none</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: #DCDCAA">com2sec</span><span style="color: #D4D4D4"> </span><span style="color: #CE9178">readonly</span><span style="color: #D4D4D4">  </span><span style="color: #CE9178">default</span><span style="color: #D4D4D4">         </span><span style="color: #CE9178">public</span></span>
<span class="line"><span style="color: #DCDCAA">group</span><span style="color: #D4D4D4">   </span><span style="color: #CE9178">MyROGroup</span><span style="color: #D4D4D4"> </span><span style="color: #CE9178">v1</span><span style="color: #D4D4D4">              </span><span style="color: #CE9178">readonly</span></span>
<span class="line"><span style="color: #DCDCAA">view</span><span style="color: #D4D4D4">    </span><span style="color: #CE9178">all</span><span style="color: #D4D4D4">    </span><span style="color: #CE9178">included</span><span style="color: #D4D4D4">   </span><span style="color: #CE9178">.1</span></span>
<span class="line"><span style="color: #DCDCAA">access</span><span style="color: #D4D4D4">  </span><span style="color: #CE9178">MyROGroup</span><span style="color: #D4D4D4"> </span><span style="color: #CE9178">&quot;&quot;</span><span style="color: #D4D4D4">      </span><span style="color: #CE9178">any</span><span style="color: #D4D4D4">       </span><span style="color: #CE9178">noauth</span><span style="color: #D4D4D4">    </span><span style="color: #CE9178">exact</span><span style="color: #D4D4D4">  </span><span style="color: #CE9178">all</span><span style="color: #D4D4D4">    </span><span style="color: #CE9178">none</span><span style="color: #D4D4D4">   </span><span style="color: #CE9178">none</span></span></code></pre></div>



<p class="wp-block-paragraph">Save the file (<code>CTRL+X</code>, then <code>Y</code>, then <code>Enter</code>).</p>



<h4 class="wp-block-heading"><strong>Step 4: Start and Verify SNMP</strong></h4>



<p class="wp-block-paragraph">Run the following command to start the SNMP service:</p>



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



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



<p class="wp-block-paragraph">This should return a list of SNMP data from your Mac.</p>



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



<h4 class="wp-block-heading"><strong>5.1 Add macOS to Nagios XI</strong></h4>



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



<li>Navigate to <strong>Configuration Wizards</strong>.</li>
</ul>



<figure class="wp-block-image size-full"><a href="https://library.nagios.com/wp-content/uploads/2025/03/Configuration-Wizards-1.png"><img loading="lazy" decoding="async" width="1015" height="744" src="https://library.nagios.com/wp-content/uploads/2025/03/Configuration-Wizards-1.png" alt="Configuration Wizards in Nagios XI." class="wp-image-52530" title="How to Install and Configure SNMP on Apple Silicon macOS and Monitor with Nagios XI 9" srcset="https://library.nagios.com/wp-content/uploads/2025/03/Configuration-Wizards-1.png 1015w, https://library.nagios.com/wp-content/uploads/2025/03/Configuration-Wizards-1-300x220.png 300w, https://library.nagios.com/wp-content/uploads/2025/03/Configuration-Wizards-1-768x563.png 768w" sizes="(max-width: 1015px) 100vw, 1015px" /></a><figcaption class="wp-element-caption">Configuration Wizards.</figcaption></figure>



<ul start="1" class="wp-block-list">
<li>Select <strong>SNMP Wizard</strong>.</li>
</ul>



<figure class="wp-block-image size-full"><a href="https://library.nagios.com/wp-content/uploads/2025/03/RegularSNMP.png"><img loading="lazy" decoding="async" width="1024" height="546" src="https://library.nagios.com/wp-content/uploads/2025/03/RegularSNMP.png" alt="SNMP Wizard in Nagios XI." class="wp-image-52533" title="How to Install and Configure SNMP on Apple Silicon macOS and Monitor with Nagios XI 10" srcset="https://library.nagios.com/wp-content/uploads/2025/03/RegularSNMP.png 1024w, https://library.nagios.com/wp-content/uploads/2025/03/RegularSNMP-300x160.png 300w, https://library.nagios.com/wp-content/uploads/2025/03/RegularSNMP-768x410.png 768w" sizes="(max-width: 1024px) 100vw, 1024px" /></a><figcaption class="wp-element-caption">SNMP Wizard.</figcaption></figure>



<ul start="1" class="wp-block-list">
<li>Enter the <strong>SNMP Community String</strong> (e.g., <code>public</code>).</li>



<li>Enter the <strong>Mac’s IP address</strong>.</li>



<li>Select <strong>SNMP Version 2c</strong>.</li>
</ul>



<figure class="wp-block-image size-full"><a href="https://library.nagios.com/wp-content/uploads/2025/03/SNMPSettings.png"><img loading="lazy" decoding="async" width="1024" height="729" src="https://library.nagios.com/wp-content/uploads/2025/03/SNMPSettings.png" alt="SNMP Wizard settings in Nagios XI." class="wp-image-52534" title="How to Install and Configure SNMP on Apple Silicon macOS and Monitor with Nagios XI 11" srcset="https://library.nagios.com/wp-content/uploads/2025/03/SNMPSettings.png 1024w, https://library.nagios.com/wp-content/uploads/2025/03/SNMPSettings-300x214.png 300w, https://library.nagios.com/wp-content/uploads/2025/03/SNMPSettings-768x547.png 768w" sizes="(max-width: 1024px) 100vw, 1024px" /></a><figcaption class="wp-element-caption">SNMP Wizard settings.</figcaption></figure>



<ul start="1" class="wp-block-list">
<li>Choose metrics such as CPU, memory, disk, and network performance.</li>



<li>Set alert thresholds for critical events (e.g., high CPU usage or low disk space).</li>



<li>Click <strong>Save and Apply</strong>.</li>
</ul>



<h3 class="wp-block-heading"><strong>5.2 Configure Alerts and Notifications</strong></h3>



<ol start="1" class="wp-block-list">
<li>Navigate to <strong>Notifications</strong> in Nagios XI.</li>



<li>Set threshold values for system metrics (e.g., CPU or disk usage limits).</li>



<li>Configure notification settings (email, SMS, webhook alerts).</li>
</ol>



<h3 class="wp-block-heading"><strong>5.3 Analyze and Optimize</strong></h3>



<ul class="wp-block-list">
<li>Use Nagios XI Reports to review system performance trends.</li>



<li>Optimize system configurations based on collected data.</li>
</ul>



<h3 class="wp-block-heading"><strong>Best Practices for SNMP Monitoring on macOS</strong></h3>



<ul class="wp-block-list">
<li><strong>Monitor Battery Health</strong> – Track charge cycles for longevity (MacBook users).</li>



<li><strong>Set Proactive Alerts</strong> – Configure immediate alerts for critical metrics.</li>



<li><strong>Regularly Monitor Resources</strong> – Keep an eye on CPU, memory, and disk usage.</li>



<li><strong>Ensure System Security</strong> – Detect unauthorized access attempts.</li>



<li><strong>Automate Corrective Actions</strong> – Use automation tools like AppleScripts to resolve issues automatically.</li>
</ul>



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



<p class="wp-block-paragraph">By following these steps, you have successfully installed and configured SNMP on Apple Silicon macOS and integrated it with Nagios XI for real-time monitoring. Your Nagios monitoring server can now collect essential system metrics, track performance trends, and alert you to potential issues before they become critical.</p>



<p class="wp-block-paragraph">For further customization, consider adjusting SNMP configurations to meet your organization’s specific monitoring requirements. Regularly reviewing Nagios XI reports and refining alert thresholds will help maintain system stability and performance.</p>



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



<ul class="wp-block-list">
<li><a href="https://library.nagios.com/products/nagios-xi/documentation/" target="_blank" rel="noreferrer noopener">Nagios XI Documentation</a></li>



<li><a href="https://exchange.nagios.org/" target="_blank" rel="noopener">Nagios Exchange</a></li>



<li><a href="https://support.nagios.com/forum/" target="_blank" rel="noopener">Nagios Support Forum</a></li>
</ul>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>How to Install Nagios Cross-Platform Agent (NCPA) on Apple Silicon macOS</title>
		<link>https://library.nagios.com/documentation/how-to-install-nagios-cross-platform-agent-ncpa-on-apple-silicon-macos/</link>
		
		<dc:creator><![CDATA[Jack Brisben]]></dc:creator>
		<pubDate>Tue, 18 Mar 2025 20:44:25 +0000</pubDate>
				<category><![CDATA[Documentation]]></category>
		<category><![CDATA[Monitoring]]></category>
		<category><![CDATA[Apple Silicon Mac]]></category>
		<category><![CDATA[NCPA]]></category>
		<category><![CDATA[Operating System Monitoring]]></category>
		<guid isPermaLink="false">https://library.nagios.com/?p=52561&#038;preview=true&#038;preview_id=52561</guid>

					<description><![CDATA[Nagios Cross-Platform Agent (NCPA) is a flexible monitoring agent designed for Nagios Core and Nagios XI, allowing you to monitor system metrics, processes, services, and custom plugins. This guide walks you through building and installing NCPA from source on an Apple Silicon Mac, as no official ARM-native binary is available. Prerequisites Before starting, ensure you [&#8230;]]]></description>
										<content:encoded><![CDATA[
<p class="wp-block-paragraph">Nagios Cross-Platform Agent (NCPA) is a flexible monitoring agent designed for Nagios Core and Nagios XI, allowing you to monitor system metrics, processes, services, and custom plugins. This guide walks you through building and installing NCPA from source on an Apple Silicon Mac, as no official ARM-native binary is available.</p>



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



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



<ul class="wp-block-list">
<li>A macOS system running macOS 11 Big Sur or later (e.g., Ventura, Sonoma) on Apple Silicon.</li>



<li>Administrator privileges (sudo access).</li>



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



<li>Basic familiarity with the Terminal and command-line tools.</li>
</ul>



<h3 class="wp-block-heading">Step 1: Install Development Tools and Dependencies</h3>



<p class="wp-block-paragraph">Since we’re building NCPA from source, you’ll need Homebrew (a package manager) and specific dependencies.</p>



<ol class="wp-block-list">
<li><strong>Install Homebrew (if not already installed)</strong>: Open Terminal and run</li>
</ol>



<div class="wp-block-kevinbatdorf-code-block-pro" data-code-block-pro-font-family="Code-Pro-Geist-Mono" style="font-size:.875rem;font-family:Code-Pro-Geist-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:1.5rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)"><span role="button" tabindex="0" 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>/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"</textarea></pre><svg xmlns="http://www.w3.org/2000/svg" style="width:24px;height:24px" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2"><path class="with-check" stroke-linecap="round" stroke-linejoin="round" d="M4.5 12.75l6 6 9-13.5"></path><path class="without-check" stroke-linecap="round" stroke-linejoin="round" d="M16.5 8.25V6a2.25 2.25 0 00-2.25-2.25H6A2.25 2.25 0 003.75 6v8.25A2.25 2.25 0 006 16.5h2.25m8.25-8.25H18a2.25 2.25 0 012.25 2.25V18A2.25 2.25 0 0118 20.25h-7.5A2.25 2.25 0 018.25 18v-1.5m8.25-8.25h-6a2.25 2.25 0 00-2.25 2.25v6"></path></svg></span><pre class="shiki dark-plus" style="background-color: #1E1E1E" tabindex="0"><code><span class="line"><span style="color: #DCDCAA">/bin/bash</span><span style="color: #D4D4D4"> </span><span style="color: #569CD6">-c</span><span style="color: #D4D4D4"> </span><span style="color: #CE9178">&quot;$(</span><span style="color: #DCDCAA">curl</span><span style="color: #CE9178"> </span><span style="color: #569CD6">-fsSL</span><span style="color: #CE9178"> https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)&quot;</span></span></code></pre></div>



<blockquote class="wp-block-quote is-layout-flow wp-block-quote-is-layout-flow">
<p class="wp-block-paragraph">On Apple Silicon, Homebrew installs to /opt/homebrew/. Add it to your PATH if prompted (instructions will appear after installation).</p>
</blockquote>



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



<p class="wp-block-paragraph">Nagios does not provide a direct macOS package for NCPA. However, you can install it via Homebrew.</p>



<h4 class="wp-block-heading"><strong>2.1 Update Homebrew</strong></h4>



<pre class="wp-block-code"><code></code></pre>



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



<h4 class="wp-block-heading"><strong>2.2 <strong>Install Required Dependencies</strong>: NCPA is Python-based and requires Python 3, OpenSSL, and other libraries. Install them with:</strong></h4>



<pre class="wp-block-code"><code></code></pre>



<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>brew install python3 openssl git</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: #DCDCAA">brew</span><span style="color: #D4D4D4"> </span><span style="color: #CE9178">install</span><span style="color: #D4D4D4"> </span><span style="color: #CE9178">python3</span><span style="color: #D4D4D4"> </span><span style="color: #CE9178">openssl</span><span style="color: #D4D4D4"> </span><span style="color: #CE9178">git</span></span></code></pre></div>



<p class="wp-block-paragraph">This installs Python 3.x (e.g., 3.11 or later), OpenSSL for secure communication, and Git to clone the NCPA repository.</p>



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



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



<p class="wp-block-paragraph">NCPA’s source is hosted on GitHub. Clone the repository to your system.</p>



<p class="wp-block-paragraph">Clone the NCPA Repository:</p>



<pre class="wp-block-code"><code></code></pre>



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



<p class="wp-block-paragraph">This downloads the latest NCPA source (e.g., version 3.1.2 or newer if updated post-March 2025).</p>



<p class="wp-block-paragraph"><strong>Optional: Check for Updates</strong>: If you want a specific version, use git checkout v3.1.2 (replace with the desired tag). Otherwise, the default branch (master) is fine.</p>



<p class="wp-block-paragraph">To ensure the services start automatically on boot, use <code>launchctl</code>:</p>



<h3 class="wp-block-heading">Step 3: Build NCPA from Source</h3>



<p class="wp-block-paragraph">Compile NCPA into a single ncpa binary for macOS.</p>



<ol class="wp-block-list">
<li><strong>Install Python Dependencies</strong>:</li>
</ol>



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



<p class="wp-block-paragraph">This installs libraries like psutil, bottle, and others listed in requirements.txt.</p>



<p class="wp-block-paragraph"><strong>2. Run the Build Script:</strong> Build NCPA for macOS:</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>python3 build.py --platform macos</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: #DCDCAA">python3</span><span style="color: #D4D4D4"> </span><span style="color: #CE9178">build.py</span><span style="color: #D4D4D4"> </span><span style="color: #569CD6">--platform</span><span style="color: #D4D4D4"> </span><span style="color: #CE9178">macos</span></span></code></pre></div>



<ul class="wp-block-list">
<li>The &#8211;platform macos flag ensures macOS-specific adjustments. On Apple Silicon, Python and dependencies should automatically target ARM64, as Homebrew provides ARM-native versions.</li>



<li>If the build fails due to architecture issues, you may need to specify the target explicitly with arch -arm64 python3 build.py &#8211;platform macos.</li>
</ul>



<p class="wp-block-paragraph"><strong>Locate the Output</strong>: After a successful build, the executable and supporting files are typically placed in a build subdirectory (e.g., build/ncpa). The exact folder name may vary (e.g., build/ncpa-macos-arm64).</p>



<h3 class="wp-block-heading">Step 4: Install NCPA</h3>



<p class="wp-block-paragraph">Move the built files to a standard location and set up the agent.</p>



<ol class="wp-block-list">
<li><strong>Copy Files to Installation Directory</strong>: For consistency, install NCPA to /usr/local/ncpa</li>
</ol>



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



<ul class="wp-block-list">
<li>Adjust the build/ncpa path based on your build output.</li>
</ul>



<p class="wp-block-paragraph"><strong>Set Permissions</strong>: Ensure the files are executable</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 chmod +x /usr/local/ncpa/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: #DCDCAA">sudo</span><span style="color: #D4D4D4"> </span><span style="color: #CE9178">chmod</span><span style="color: #D4D4D4"> </span><span style="color: #CE9178">+x</span><span style="color: #D4D4D4"> </span><span style="color: #CE9178">/usr/local/ncpa/ncpa</span></span></code></pre></div>



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



<p class="wp-block-paragraph">Edit the configuration file to secure and customize the agent.</p>



<ol class="wp-block-list">
<li><strong>Edit the Configuration File</strong>: The config file is usually ncpa.cfg in the installation directory</li>
</ol>



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



<ul class="wp-block-list">
<li>Update the API token (used for secure communication):</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>&#91;general&#93;
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">&#91;general&#93;</span></span>
<span class="line"><span style="color: #DCDCAA">community_string</span><span style="color: #D4D4D4"> </span><span style="color: #CE9178">=</span><span style="color: #D4D4D4"> </span><span style="color: #CE9178">Str0ngT0k3n!</span></span></code></pre></div>



<ul class="wp-block-list">
<li>Restrict access to your Nagios server’s IP:</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>&#91;general&#93;
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">&#91;general&#93;</span></span>
<span class="line"><span style="color: #DCDCAA">allowed_hosts</span><span style="color: #D4D4D4"> </span><span style="color: #CE9178">=</span><span style="color: #D4D4D4"> &lt;</span><span style="color: #CE9178">Nagios_IP_addres</span><span style="color: #D4D4D4">s&gt;</span></span></code></pre></div>



<ul class="wp-block-list">
<li>Save and exit <strong>(Ctrl+X, Y, Enter)</strong></li>
</ul>



<p class="wp-block-paragraph"><strong>2. Test the Configuration:</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 /usr/local/ncpa/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: #DCDCAA">sudo</span><span style="color: #D4D4D4"> </span><span style="color: #CE9178">/usr/local/ncpa/ncpa</span></span></code></pre></div>



<ul class="wp-block-list">
<li>If it runs without errors (e.g., binding to port 5693), press Ctrl+C to stop it.</li>
</ul>



<h3 class="wp-block-heading">Step 6: Set Up NCPA as a Service</h3>



<p class="wp-block-paragraph">To run NCPA automatically on boot, create launchd service files.</p>



<ol class="wp-block-list">
<li><strong>Create Service File</strong>:</li>
</ol>



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



<p class="wp-block-paragraph">Paste the following:</p>



<div class="wp-block-kevinbatdorf-code-block-pro" data-code-block-pro-font-family="Code-Pro-Geist-Mono" style="font-size:.875rem;font-family:Code-Pro-Geist-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:1.5rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)"><span role="button" tabindex="0" style="color:#D4D4D4;display:none" aria-label="Copy" class="code-block-pro-copy-button"><pre class="code-block-pro-copy-button-pre" aria-hidden="true"><textarea class="code-block-pro-copy-button-textarea" tabindex="-1" aria-hidden="true" readonly>&lt;?xml version="1.0" encoding="UTF-8"?>
&lt;!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
&lt;plist version="1.0">
&lt;dict>
    &lt;key>Label&lt;/key>
    &lt;string>com.nagios.ncpa&lt;/string>
    &lt;key>ProgramArguments&lt;/key>
    &lt;array>
        &lt;string>/usr/local/ncpa/ncpa&lt;/string>
    &lt;/array>
    &lt;key>RunAtLoad&lt;/key>
    &lt;true/>
    &lt;key>KeepAlive&lt;/key>
    &lt;true/>
&lt;/dict>
&lt;/plist></textarea></pre><svg xmlns="http://www.w3.org/2000/svg" style="width:24px;height:24px" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2"><path class="with-check" stroke-linecap="round" stroke-linejoin="round" d="M4.5 12.75l6 6 9-13.5"></path><path class="without-check" stroke-linecap="round" stroke-linejoin="round" d="M16.5 8.25V6a2.25 2.25 0 00-2.25-2.25H6A2.25 2.25 0 003.75 6v8.25A2.25 2.25 0 006 16.5h2.25m8.25-8.25H18a2.25 2.25 0 012.25 2.25V18A2.25 2.25 0 0118 20.25h-7.5A2.25 2.25 0 018.25 18v-1.5m8.25-8.25h-6a2.25 2.25 0 00-2.25 2.25v6"></path></svg></span><pre class="shiki dark-plus" style="background-color: #1E1E1E" tabindex="0"><code><span class="line"><span style="color: #D4D4D4">&lt;?xml version=</span><span style="color: #CE9178">&quot;1.0&quot;</span><span style="color: #D4D4D4"> encoding=</span><span style="color: #CE9178">&quot;UTF-8&quot;</span><span style="color: #D4D4D4">?&gt;</span></span>
<span class="line"><span style="color: #D4D4D4">&lt;!</span><span style="color: #DCDCAA">DOCTYPE</span><span style="color: #D4D4D4"> </span><span style="color: #CE9178">plist</span><span style="color: #D4D4D4"> </span><span style="color: #CE9178">PUBLIC</span><span style="color: #D4D4D4"> </span><span style="color: #CE9178">&quot;-//Apple//DTD PLIST 1.0//EN&quot;</span><span style="color: #D4D4D4"> </span><span style="color: #CE9178">&quot;http://www.apple.com/DTDs/PropertyList-1.0.dtd&quot;</span><span style="color: #D4D4D4">&gt;</span></span>
<span class="line"><span style="color: #D4D4D4">&lt;plist version=</span><span style="color: #CE9178">&quot;1.0&quot;</span><span style="color: #D4D4D4">&gt;</span></span>
<span class="line"><span style="color: #D4D4D4">&lt;dict&gt;</span></span>
<span class="line"><span style="color: #D4D4D4">    &lt;</span><span style="color: #DCDCAA">key&gt;Label&lt;/key&gt;</span></span>
<span class="line"><span style="color: #D4D4D4">    &lt;</span><span style="color: #DCDCAA">string&gt;com.nagios.ncpa&lt;/string&gt;</span></span>
<span class="line"><span style="color: #D4D4D4">    &lt;</span><span style="color: #DCDCAA">key&gt;ProgramArguments&lt;/key&gt;</span></span>
<span class="line"><span style="color: #D4D4D4">    &lt;</span><span style="color: #DCDCAA">array&gt;</span></span>
<span class="line"><span style="color: #D4D4D4">        &lt;</span><span style="color: #DCDCAA">string&gt;/usr/local/ncpa/ncpa&lt;/string&gt;</span></span>
<span class="line"><span style="color: #D4D4D4">    &lt;</span><span style="color: #DCDCAA">/array&gt;</span></span>
<span class="line"><span style="color: #D4D4D4">    &lt;</span><span style="color: #DCDCAA">key&gt;RunAtLoad&lt;/key&gt;</span></span>
<span class="line"><span style="color: #D4D4D4">    &lt;</span><span style="color: #DCDCAA">true/&gt;</span></span>
<span class="line"><span style="color: #D4D4D4">    &lt;</span><span style="color: #DCDCAA">key&gt;KeepAlive&lt;/key&gt;</span></span>
<span class="line"><span style="color: #D4D4D4">    &lt;</span><span style="color: #DCDCAA">true/&gt;</span></span>
<span class="line"><span style="color: #D4D4D4">&lt;/dict&gt;</span></span>
<span class="line"><span style="color: #D4D4D4">&lt;/plist&gt;</span></span></code></pre></div>



<p class="wp-block-paragraph"><strong>2. Load and Start:</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 launchctl load /Library/LaunchDaemons/com.nagios.ncpa.plist
sudo launchctl start com.nagios.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: #DCDCAA">sudo</span><span style="color: #D4D4D4"> </span><span style="color: #CE9178">launchctl</span><span style="color: #D4D4D4"> </span><span style="color: #CE9178">load</span><span style="color: #D4D4D4"> </span><span style="color: #CE9178">/Library/LaunchDaemons/com.nagios.ncpa.plist</span></span>
<span class="line"><span style="color: #DCDCAA">sudo</span><span style="color: #D4D4D4"> </span><span style="color: #CE9178">launchctl</span><span style="color: #D4D4D4"> </span><span style="color: #CE9178">start</span><span style="color: #D4D4D4"> </span><span style="color: #CE9178">com.nagios.ncpa</span></span></code></pre></div>



<p class="wp-block-paragraph"><strong>3. Verify Services:</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 launchctl list | grep 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: #DCDCAA">sudo</span><span style="color: #D4D4D4"> </span><span style="color: #CE9178">launchctl</span><span style="color: #D4D4D4"> </span><span style="color: #CE9178">list</span><span style="color: #D4D4D4"> | </span><span style="color: #DCDCAA">grep</span><span style="color: #D4D4D4"> </span><span style="color: #CE9178">ncpa</span></span></code></pre></div>



<ul class="wp-block-list">
<li>You should see both services listed with PIDs if running.</li>
</ul>



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



<ol class="wp-block-list">
<li><strong>Check the Web Interface</strong>: Open a browser and go to:</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>https://localhost: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: #DCDCAA">https://localhost:5693</span></span></code></pre></div>



<ul class="wp-block-list">
<li>Log in with the API token (Str0ngT0k3n! or your custom value).</li>
</ul>



<p class="wp-block-paragraph">      <strong>2. Test from Nagios Server:</strong> From your Nagios server, 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>curl -k https://&lt;your_mac_ip>: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: #DCDCAA">curl</span><span style="color: #D4D4D4"> </span><span style="color: #569CD6">-k</span><span style="color: #D4D4D4"> </span><span style="color: #CE9178">https://</span><span style="color: #D4D4D4">&lt;</span><span style="color: #CE9178">your_mac_i</span><span style="color: #D4D4D4">p&gt;</span><span style="color: #CE9178">:5693/api</span></span></code></pre></div>



<p class="wp-block-paragraph">You should receive a JSON response indicating the system’s status.</p>



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



<p class="wp-block-paragraph">On your <strong>Nagios XI</strong> web GUI:</p>



<ul start="1" class="wp-block-list">
<li>Navigate to <strong>Run a Wizard</strong>.</li>
</ul>



<figure class="wp-block-image size-full"><a href="https://library.nagios.com/wp-content/uploads/2025/03/Configuration-Wizards.png"><img loading="lazy" decoding="async" width="1015" height="744" src="https://library.nagios.com/wp-content/uploads/2025/03/Configuration-Wizards.png" alt="Configuration Wizards" class="wp-image-52520" title="How to Install Nagios Cross-Platform Agent (NCPA) on Apple Silicon macOS 12" srcset="https://library.nagios.com/wp-content/uploads/2025/03/Configuration-Wizards.png 1015w, https://library.nagios.com/wp-content/uploads/2025/03/Configuration-Wizards-300x220.png 300w, https://library.nagios.com/wp-content/uploads/2025/03/Configuration-Wizards-768x563.png 768w" sizes="(max-width: 1015px) 100vw, 1015px" /></a><figcaption class="wp-element-caption">Configuration Wizards</figcaption></figure>



<ul start="1" class="wp-block-list">
<li>Select <strong>Mac OS X</strong>.</li>
</ul>



<figure class="wp-block-image size-large"><a href="https://library.nagios.com/wp-content/uploads/2025/03/Screenshot-2025-02-20-093742.png"><img loading="lazy" decoding="async" width="1024" height="532" src="https://library.nagios.com/wp-content/uploads/2025/03/Screenshot-2025-02-20-093742-1024x532.png" alt="Screenshot 2025 02 20 093742" class="wp-image-52518" title="How to Install Nagios Cross-Platform Agent (NCPA) on Apple Silicon macOS 13" srcset="https://library.nagios.com/wp-content/uploads/2025/03/Screenshot-2025-02-20-093742-1024x532.png 1024w, https://library.nagios.com/wp-content/uploads/2025/03/Screenshot-2025-02-20-093742-300x156.png 300w, https://library.nagios.com/wp-content/uploads/2025/03/Screenshot-2025-02-20-093742-768x399.png 768w, https://library.nagios.com/wp-content/uploads/2025/03/Screenshot-2025-02-20-093742-1536x797.png 1536w, https://library.nagios.com/wp-content/uploads/2025/03/Screenshot-2025-02-20-093742.png 1541w" sizes="(max-width: 1024px) 100vw, 1024px" /></a><figcaption class="wp-element-caption">Mac Wizard</figcaption></figure>



<ul start="1" class="wp-block-list">
<li>Enter the <strong>IP address</strong> of your <strong>macOS system</strong> and the <strong>token</strong> you created in the configuration file.</li>
</ul>



<figure class="wp-block-image size-large"><a href="https://library.nagios.com/wp-content/uploads/2025/03/Screenshot-2025-02-20-094438.png"><img loading="lazy" decoding="async" width="1024" height="565" src="https://library.nagios.com/wp-content/uploads/2025/03/Screenshot-2025-02-20-094438-1024x565.png" alt="Screenshot 2025 02 20 094438" class="wp-image-52519" title="How to Install Nagios Cross-Platform Agent (NCPA) on Apple Silicon macOS 14" srcset="https://library.nagios.com/wp-content/uploads/2025/03/Screenshot-2025-02-20-094438-1024x565.png 1024w, https://library.nagios.com/wp-content/uploads/2025/03/Screenshot-2025-02-20-094438-300x166.png 300w, https://library.nagios.com/wp-content/uploads/2025/03/Screenshot-2025-02-20-094438-768x424.png 768w, https://library.nagios.com/wp-content/uploads/2025/03/Screenshot-2025-02-20-094438.png 1471w" sizes="(max-width: 1024px) 100vw, 1024px" /></a><figcaption class="wp-element-caption">setup NCPA</figcaption></figure>



<ul start="1" class="wp-block-list">
<li>Click <strong>Next</strong> and choose the system metrics you want to monitor, or leave everything as default.</li>



<li>Click <strong>Finish</strong> to complete the setup.</li>
</ul>



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



<p class="wp-block-paragraph">By following these steps, you have successfully installed <strong>Nagios Cross-Platform Agent (NCPA) on Apple Silicon macOS</strong>. Your Nagios monitoring server will now be able to collect system metrics and monitor your macOS system in real time.</p>



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



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



<li>Nagios Knowledge Base: <a href="https://support.nagios.com/kb/" target="_blank" rel="noopener">https://support.nagios.com/kb/</a></li>
</ul>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>Installing and Configuring Nagios Log Server on SUSE Linux Enterprise Server (SLES) 11</title>
		<link>https://library.nagios.com/documentation/installing-and-configuring-nagios-log-server-on-suse-linux-enterprise-server-sles-11/</link>
		
		<dc:creator><![CDATA[Jack Brisben]]></dc:creator>
		<pubDate>Fri, 14 Mar 2025 16:53:43 +0000</pubDate>
				<category><![CDATA[Documentation]]></category>
		<category><![CDATA[Monitoring]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Operating System Monitoring]]></category>
		<category><![CDATA[SUSE 11]]></category>
		<guid isPermaLink="false">https://library.nagios.com/?p=52169</guid>

					<description><![CDATA[Introduction Efficient log management is essential for system monitoring, security, and troubleshooting. Nagios Log Server (NLS) provides centralized log collection, real-time data analysis, and alerting to ensure your systems run smoothly. This guide will walk you through the installation and configuration of Nagios Log Server on SUSE Linux Enterprise Server 11. Prerequisites Before proceeding, ensure [&#8230;]]]></description>
										<content:encoded><![CDATA[
<h3 class="wp-block-heading">Introduction</h3>



<p class="wp-block-paragraph">Efficient log management is essential for system monitoring, security, and troubleshooting. Nagios Log Server (NLS) provides centralized log collection, real-time data analysis, and alerting to ensure your systems run smoothly.</p>



<p class="wp-block-paragraph">This guide will walk you through the installation and configuration of Nagios Log Server on SUSE Linux Enterprise Server 11.</p>



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



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



<ul class="wp-block-list">
<li>A system running SUSE Linux Enterprise Server 11</li>



<li>Root privileges</li>



<li>Internet access or an offline method to transfer the Nagios Log Server package</li>
</ul>



<h3 class="wp-block-heading">Verify Your SUSE Version</h3>



<p class="wp-block-paragraph">Run the following command to check your system version:</p>



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



<p class="wp-block-paragraph">Example Output:</p>



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



<h3 class="wp-block-heading">Step 1: Download the Nagios Log Server Package</h3>



<p class="wp-block-paragraph">To download the latest Nagios Log Server package for SUSE 11, visit the Nagios Log Server Downloads page or use <code>wget</code>:</p>



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



<h3 class="wp-block-heading">Step 2: Install Nagios Log Server</h3>



<h4 class="wp-block-heading">Method 1: Standard Installation</h4>



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



<p class="wp-block-paragraph">Install required dependencies:</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>zypper install java-1_8_0-openjdk curl</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: #DCDCAA">zypper</span><span style="color: #D4D4D4"> </span><span style="color: #CE9178">install</span><span style="color: #D4D4D4"> </span><span style="color: #CE9178">java-1_8_0-openjdk</span><span style="color: #D4D4D4"> </span><span style="color: #CE9178">curl</span></span></code></pre></div>



<p class="wp-block-paragraph">Install the Log Server package:</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>zypper install ./logserver-latest.sles11.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: #DCDCAA">zypper</span><span style="color: #D4D4D4"> </span><span style="color: #CE9178">install</span><span style="color: #D4D4D4"> </span><span style="color: #CE9178">./logserver-latest.sles11.x86_64.rpm</span></span></code></pre></div>



<p class="wp-block-paragraph">Method 2: Silent Installation (For automated deployments)</p>



<p class="wp-block-paragraph"></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>rpm -ivh logserver-latest.sles11.x86_64.rpm --quiet</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: #DCDCAA">rpm</span><span style="color: #D4D4D4"> </span><span style="color: #569CD6">-ivh</span><span style="color: #D4D4D4"> </span><span style="color: #CE9178">logserver-latest.sles11.x86_64.rpm</span><span style="color: #D4D4D4"> </span><span style="color: #569CD6">--quiet</span></span></code></pre></div>



<h3 class="wp-block-heading">Step 3: Configure Nagios Log Server</h3>



<p class="wp-block-paragraph">After installation, configure the Log Server to accept logs from monitored systems.</p>



<p class="wp-block-paragraph">Edit the configuration file:</p>



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



<p class="wp-block-paragraph">Set the admin user password and enable external access:</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>&#91;admin&#93;
password = your_secure_password
allow_external_access = true</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">&#91;admin&#93;</span></span>
<span class="line"><span style="color: #DCDCAA">password</span><span style="color: #D4D4D4"> </span><span style="color: #CE9178">=</span><span style="color: #D4D4D4"> </span><span style="color: #CE9178">your_secure_password</span></span>
<span class="line"><span style="color: #DCDCAA">allow_external_access</span><span style="color: #D4D4D4"> </span><span style="color: #CE9178">=</span><span style="color: #D4D4D4"> </span><span style="color: #569CD6">true</span></span></code></pre></div>



<p class="wp-block-paragraph">Save and exit (Press <code>CTRL + X</code>, then <code>Y</code>, then <code>Enter</code>).</p>



<h3 class="wp-block-heading">Step 4: Start and Enable Nagios Log Server Service</h3>



<p class="wp-block-paragraph">Run the following commands to start the Log Server and enable it at 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>service nagioslogserver start
chkconfig nagioslogserver on</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: #DCDCAA">service</span><span style="color: #D4D4D4"> </span><span style="color: #CE9178">nagioslogserver</span><span style="color: #D4D4D4"> </span><span style="color: #CE9178">start</span></span>
<span class="line"><span style="color: #DCDCAA">chkconfig</span><span style="color: #D4D4D4"> </span><span style="color: #CE9178">nagioslogserver</span><span style="color: #D4D4D4"> </span><span style="color: #CE9178">on</span></span></code></pre></div>



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



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



<h3 class="wp-block-heading">Step 5: Configure SUSE Firewall (if enabled)</h3>



<p class="wp-block-paragraph">If the firewall is active, allow traffic on port 5544 (default Log Server port for receiving logs):</p>



<div class="wp-block-kevinbatdorf-code-block-pro" data-code-block-pro-font-family="Code-Pro-Geist-Mono" style="font-size:.875rem;font-family:Code-Pro-Geist-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:1.5rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)"><span role="button" tabindex="0" style="color:#D4D4D4;display:none" aria-label="Copy" class="code-block-pro-copy-button"><pre class="code-block-pro-copy-button-pre" aria-hidden="true"><textarea class="code-block-pro-copy-button-textarea" tabindex="-1" aria-hidden="true" readonly>iptables -A INPUT -p tcp --dport 5544 -j ACCEPT
iptables-save > /etc/sysconfig/iptables</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: #DCDCAA">iptables</span><span style="color: #D4D4D4"> </span><span style="color: #569CD6">-A</span><span style="color: #D4D4D4"> </span><span style="color: #CE9178">INPUT</span><span style="color: #D4D4D4"> </span><span style="color: #569CD6">-p</span><span style="color: #D4D4D4"> </span><span style="color: #CE9178">tcp</span><span style="color: #D4D4D4"> </span><span style="color: #569CD6">--dport</span><span style="color: #D4D4D4"> </span><span style="color: #B5CEA8">5544</span><span style="color: #D4D4D4"> </span><span style="color: #569CD6">-j</span><span style="color: #D4D4D4"> </span><span style="color: #CE9178">ACCEPT</span></span>
<span class="line"><span style="color: #DCDCAA">iptables-save</span><span style="color: #D4D4D4"> &gt; </span><span style="color: #CE9178">/etc/sysconfig/iptables</span></span></code></pre></div>



<p class="wp-block-paragraph">For firewalld (if installed):</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>firewall-cmd --add-port=5544/tcp --permanent
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: #DCDCAA">firewall-cmd</span><span style="color: #D4D4D4"> </span><span style="color: #569CD6">--add-port=5544/tcp</span><span style="color: #D4D4D4"> </span><span style="color: #569CD6">--permanent</span></span>
<span class="line"><span style="color: #DCDCAA">firewall-cmd</span><span style="color: #D4D4D4"> </span><span style="color: #569CD6">--reload</span></span></code></pre></div>



<h3 class="wp-block-heading">Step 6: Access Nagios Log Server Web Interface</h3>



<p class="wp-block-paragraph">To verify Nagios Log Server is running, open a web browser and navigate to:</p>



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



<p class="wp-block-paragraph">Log in using the admin credentials you configured earlier.</p>



<h3 class="wp-block-heading">Step 7: Configure a Log Source</h3>



<p class="wp-block-paragraph">To collect logs from a remote system, configure a syslog client to send logs to Nagios Log Server.</p>



<p class="wp-block-paragraph">On a monitored system, edit the syslog configuration file:</p>



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



<p class="wp-block-paragraph">Add the following line:</p>



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



<p class="wp-block-paragraph">Save and restart the syslog service:</p>



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



<h3 class="wp-block-heading">Step 8: Verify Log Collection</h3>



<p class="wp-block-paragraph">To verify that the Log Server is successfully receiving logs, enter the IP address of your SUSE 11 host where it prompts you to ‘Verify Incoming Logs’ in the Nagios Log Server web interface. This will confirm that the logs from your host are being properly sent to and received by the Log Server, ensuring everything is functioning as expected.</p>



<figure class="wp-block-image size-full"><a href="https://library.nagios.com/wp-content/uploads/2025/03/LogServer-verification.png"><img loading="lazy" decoding="async" width="929" height="159" src="https://library.nagios.com/wp-content/uploads/2025/03/LogServer-verification.png" alt="LogServer verification" class="wp-image-52180" title="Installing and Configuring Nagios Log Server on SUSE Linux Enterprise Server (SLES) 11 15" srcset="https://library.nagios.com/wp-content/uploads/2025/03/LogServer-verification.png 929w, https://library.nagios.com/wp-content/uploads/2025/03/LogServer-verification-300x51.png 300w, https://library.nagios.com/wp-content/uploads/2025/03/LogServer-verification-768x131.png 768w" sizes="(max-width: 929px) 100vw, 929px" /></a><figcaption class="wp-element-caption">Verified Logs</figcaption></figure>



<p class="wp-block-paragraph">Once verified, you should see a confirmation message indicating that logs are being received from your new SUSE 11 host. This confirms that all setup steps have been completed successfully, and Nagios Log Server is now properly receiving logs from the newly added host.</p>



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



<figure class="wp-block-table"><table class="has-fixed-layout"><tbody><tr><th>Issue</th><th>Solution</th></tr><tr><td>Log Server not starting</td><td>Check logs in <code>/usr/local/nagioslogserver/var/log/nagioslogserver.log</code>. Verify Java is installed.</td></tr><tr><td>Logs not received</td><td>Ensure the monitored system’s <code>rsyslog.conf</code> is correctly configured and the firewall allows traffic on port 5544.</td></tr><tr><td>Web interface inaccessible</td><td>Check if Apache is running (<code>service apache2 status</code>). Restart it if needed (<code>service apache2 restart</code>).</td></tr></tbody></table></figure>



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



<p class="wp-block-paragraph">By following this guide, you have successfully installed and configured Nagios Log Server on SUSE 11. Your system logs are now centrally collected and monitored, helping you detect and resolve issues efficiently.</p>



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



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



<li>Nagios Knowledge Base: <a href="https://support.nagios.com/kb/" target="_blank" rel="noopener">https://support.nagios.com/kb/</a></li>
</ul>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>Installing and Monitoring SUSE 11 with SNMP</title>
		<link>https://library.nagios.com/monitoring/installing-and-monitoring-suse-11-with-snmp/</link>
		
		<dc:creator><![CDATA[Jack Brisben]]></dc:creator>
		<pubDate>Thu, 13 Mar 2025 21:17:18 +0000</pubDate>
				<category><![CDATA[Monitoring]]></category>
		<category><![CDATA[Documentation]]></category>
		<category><![CDATA[Operating System Monitoring]]></category>
		<category><![CDATA[SNMP]]></category>
		<category><![CDATA[SUSE 11]]></category>
		<guid isPermaLink="false">https://library.nagios.com/?p=52093</guid>

					<description><![CDATA[Keeping IT systems running smoothly requires constant monitoring, and that’s where Simple Network Management Protocol (SNMP) comes in. Whether you’re managing a single server or an entire network, SNMP provides real-time insights into system performance, helping you catch issues before they escalate. In this guide, you’ll learn how to install and configure SNMP on SUSE [&#8230;]]]></description>
										<content:encoded><![CDATA[
<p class="wp-block-paragraph">Keeping IT systems running smoothly requires constant monitoring, and that’s where Simple Network Management Protocol (SNMP) comes in.</p>



<p class="wp-block-paragraph">Whether you’re managing a single server or an entire network, SNMP provides real-time insights into system performance, helping you catch issues before they escalate.</p>



<p class="wp-block-paragraph">In this guide, you’ll learn how to install and configure SNMP on SUSE Linux Enterprise Server (SLES) 11, ensuring seamless monitoring and optimal system health.</p>



<h3 class="wp-block-heading"><strong>SNMP Versions and Monitoring Methods</strong></h3>



<p class="wp-block-paragraph">SNMP supports multiple versions, but the most commonly used are:</p>



<ul class="wp-block-list">
<li><strong>SNMPv2c:</strong> Uses community strings for authentication (less secure but widely used).</li>



<li><strong>SNMPv3:</strong> Provides authentication and encryption for secure monitoring.</li>
</ul>



<p class="wp-block-paragraph"><strong>Recommendation:</strong> SNMPv3 is preferred for security reasons, but SNMPv2c is easier to set up and sufficient for many environments.</p>



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



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



<ul class="wp-block-list">
<li>A system running SUSE Linux Enterprise Server 11</li>



<li>Root privileges</li>



<li>Internet access or a way to transfer SNMP packages</li>
</ul>



<h3 class="wp-block-heading"><strong>Verify Your SUSE Version</strong></h3>



<p class="wp-block-paragraph">Run the following command to check your system version:</p>



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



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



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



<p class="wp-block-paragraph">To install SNMP on SUSE 11, use the following command:</p>



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



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



<p class="wp-block-paragraph">After installation, configure SNMP to allow monitoring.</p>



<p class="wp-block-paragraph">Edit the SNMP configuration file:</p>



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



<p class="wp-block-paragraph">Modify or add the following lines based on your SNMP version:</p>



<p class="wp-block-paragraph"><strong>For SNMPv2c:</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>rocommunity public  default    # Read-only access with community string 'public'
rwcommunity private 127.0.0.1  # Read-write access only for localhost</textarea></pre><svg xmlns="http://www.w3.org/2000/svg" style="width:24px;height:24px" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2"><path class="with-check" stroke-linecap="round" stroke-linejoin="round" d="M4.5 12.75l6 6 9-13.5"></path><path class="without-check" stroke-linecap="round" stroke-linejoin="round" d="M16.5 8.25V6a2.25 2.25 0 00-2.25-2.25H6A2.25 2.25 0 003.75 6v8.25A2.25 2.25 0 006 16.5h2.25m8.25-8.25H18a2.25 2.25 0 012.25 2.25V18A2.25 2.25 0 0118 20.25h-7.5A2.25 2.25 0 018.25 18v-1.5m8.25-8.25h-6a2.25 2.25 0 00-2.25 2.25v6"></path></svg></span><pre class="shiki dark-plus" style="background-color: #1E1E1E" tabindex="0"><code><span class="line"><span style="color: #DCDCAA">rocommunity</span><span style="color: #D4D4D4"> </span><span style="color: #CE9178">public</span><span style="color: #D4D4D4">  </span><span style="color: #CE9178">default</span><span style="color: #D4D4D4">    </span><span style="color: #6A9955"># Read-only access with community string &#39;public&#39;</span></span>
<span class="line"><span style="color: #DCDCAA">rwcommunity</span><span style="color: #D4D4D4"> </span><span style="color: #CE9178">private</span><span style="color: #D4D4D4"> </span><span style="color: #B5CEA8">127.0</span><span style="color: #CE9178">.0.1</span><span style="color: #D4D4D4">  </span><span style="color: #6A9955"># Read-write access only for localhost</span></span></code></pre></div>



<p class="wp-block-paragraph"><strong>For SNMPv3 (More Secure):</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>createUser monitoringUser SHA mysecurepassword AES myencryptionkey
rouser monitoringUser authPriv</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: #DCDCAA">createUser</span><span style="color: #D4D4D4"> </span><span style="color: #CE9178">monitoringUser</span><span style="color: #D4D4D4"> </span><span style="color: #CE9178">SHA</span><span style="color: #D4D4D4"> </span><span style="color: #CE9178">mysecurepassword</span><span style="color: #D4D4D4"> </span><span style="color: #CE9178">AES</span><span style="color: #D4D4D4"> </span><span style="color: #CE9178">myencryptionkey</span></span>
<span class="line"><span style="color: #DCDCAA">rouser</span><span style="color: #D4D4D4"> </span><span style="color: #CE9178">monitoringUser</span><span style="color: #D4D4D4"> </span><span style="color: #CE9178">authPriv</span></span></code></pre></div>



<p class="wp-block-paragraph">Save and exit (Press <strong>CTRL + X</strong>, then <strong>Y</strong>, then <strong>Enter</strong>).</p>



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



<p class="wp-block-paragraph">Run the following commands to start SNMP and enable it at 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>service snmpd start
chkconfig snmpd on</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: #DCDCAA">service</span><span style="color: #D4D4D4"> </span><span style="color: #CE9178">snmpd</span><span style="color: #D4D4D4"> </span><span style="color: #CE9178">start</span></span>
<span class="line"><span style="color: #DCDCAA">chkconfig</span><span style="color: #D4D4D4"> </span><span style="color: #CE9178">snmpd</span><span style="color: #D4D4D4"> </span><span style="color: #CE9178">on</span></span></code></pre></div>



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



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



<h3 class="wp-block-heading"><strong>Step 4: Configure SUSE Firewall (if enabled)</strong></h3>



<p class="wp-block-paragraph">If the firewall is active, allow SNMP traffic on port <strong>161</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>iptables -A INPUT -p udp --dport 161 -j ACCEPT
iptables-save > /etc/sysconfig/iptables</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: #DCDCAA">iptables</span><span style="color: #D4D4D4"> </span><span style="color: #569CD6">-A</span><span style="color: #D4D4D4"> </span><span style="color: #CE9178">INPUT</span><span style="color: #D4D4D4"> </span><span style="color: #569CD6">-p</span><span style="color: #D4D4D4"> </span><span style="color: #CE9178">udp</span><span style="color: #D4D4D4"> </span><span style="color: #569CD6">--dport</span><span style="color: #D4D4D4"> </span><span style="color: #B5CEA8">161</span><span style="color: #D4D4D4"> </span><span style="color: #569CD6">-j</span><span style="color: #D4D4D4"> </span><span style="color: #CE9178">ACCEPT</span></span>
<span class="line"><span style="color: #DCDCAA">iptables-save</span><span style="color: #D4D4D4"> &gt; </span><span style="color: #CE9178">/etc/sysconfig/iptables</span></span></code></pre></div>



<p class="wp-block-paragraph">For firewalld (if installed):</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>firewall-cmd --add-port=161/udp --permanent
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: #DCDCAA">firewall-cmd</span><span style="color: #D4D4D4"> </span><span style="color: #569CD6">--add-port=161/udp</span><span style="color: #D4D4D4"> </span><span style="color: #569CD6">--permanent</span></span>
<span class="line"><span style="color: #DCDCAA">firewall-cmd</span><span style="color: #D4D4D4"> </span><span style="color: #569CD6">--reload</span></span></code></pre></div>



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



<p class="wp-block-paragraph">To verify SNMP is working, run the following command:</p>



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



<p class="wp-block-paragraph"><strong>For SNMPv3:</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>snmpwalk -v3 -u monitoringUser -A mysecurepassword -X myencryptionkey -l authPriv localhost system</textarea></pre><svg xmlns="http://www.w3.org/2000/svg" style="width:24px;height:24px" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2"><path class="with-check" stroke-linecap="round" stroke-linejoin="round" d="M4.5 12.75l6 6 9-13.5"></path><path class="without-check" stroke-linecap="round" stroke-linejoin="round" d="M16.5 8.25V6a2.25 2.25 0 00-2.25-2.25H6A2.25 2.25 0 003.75 6v8.25A2.25 2.25 0 006 16.5h2.25m8.25-8.25H18a2.25 2.25 0 012.25 2.25V18A2.25 2.25 0 0118 20.25h-7.5A2.25 2.25 0 018.25 18v-1.5m8.25-8.25h-6a2.25 2.25 0 00-2.25 2.25v6"></path></svg></span><pre class="shiki dark-plus" style="background-color: #1E1E1E" tabindex="0"><code><span class="line"><span style="color: #DCDCAA">snmpwalk</span><span style="color: #D4D4D4"> </span><span style="color: #569CD6">-v3</span><span style="color: #D4D4D4"> </span><span style="color: #569CD6">-u</span><span style="color: #D4D4D4"> </span><span style="color: #CE9178">monitoringUser</span><span style="color: #D4D4D4"> </span><span style="color: #569CD6">-A</span><span style="color: #D4D4D4"> </span><span style="color: #CE9178">mysecurepassword</span><span style="color: #D4D4D4"> </span><span style="color: #569CD6">-X</span><span style="color: #D4D4D4"> </span><span style="color: #CE9178">myencryptionkey</span><span style="color: #D4D4D4"> </span><span style="color: #569CD6">-l</span><span style="color: #D4D4D4"> </span><span style="color: #CE9178">authPriv</span><span style="color: #D4D4D4"> </span><span style="color: #CE9178">localhost</span><span style="color: #D4D4D4"> </span><span style="color: #CE9178">system</span></span></code></pre></div>



<h3 class="wp-block-heading"><strong>Step 6: Configure Nagios to Monitor SUSE 11 with SNMP</strong></h3>



<p class="wp-block-paragraph">Now that you have SNMP installed and configured on your SUSE 11 system, it’s time to integrate it with <strong>Nagios</strong> for real-time monitoring.</p>



<p class="wp-block-paragraph">From your Nagios XI web interface home page, click on&nbsp;<strong>Run a Wizard.</strong></p>



<figure class="wp-block-image size-full"><a href="https://library.nagios.com/wp-content/uploads/2025/03/RunAWizard-1.png"><img loading="lazy" decoding="async" width="1024" height="538" src="https://library.nagios.com/wp-content/uploads/2025/03/RunAWizard-1.png" alt="RunAWizard 1" class="wp-image-52117" title="Installing and Monitoring SUSE 11 with SNMP 16" srcset="https://library.nagios.com/wp-content/uploads/2025/03/RunAWizard-1.png 1024w, https://library.nagios.com/wp-content/uploads/2025/03/RunAWizard-1-300x158.png 300w, https://library.nagios.com/wp-content/uploads/2025/03/RunAWizard-1-768x404.png 768w" sizes="(max-width: 1024px) 100vw, 1024px" /></a><figcaption class="wp-element-caption">XI Homepage</figcaption></figure>



<p class="wp-block-paragraph">Then, scroll until you find the&nbsp;<strong>Linux</strong>&nbsp;<strong>SNMP</strong>&nbsp;wizard.</p>



<figure class="wp-block-image size-full"><a href="https://library.nagios.com/wp-content/uploads/2025/03/SNMPWizard.png"><img loading="lazy" decoding="async" width="1024" height="528" src="https://library.nagios.com/wp-content/uploads/2025/03/SNMPWizard.png" alt="SNMPWizard" class="wp-image-52115" title="Installing and Monitoring SUSE 11 with SNMP 17" srcset="https://library.nagios.com/wp-content/uploads/2025/03/SNMPWizard.png 1024w, https://library.nagios.com/wp-content/uploads/2025/03/SNMPWizard-300x155.png 300w, https://library.nagios.com/wp-content/uploads/2025/03/SNMPWizard-768x396.png 768w" sizes="(max-width: 1024px) 100vw, 1024px" /></a><figcaption class="wp-element-caption">Wizards page</figcaption></figure>



<p class="wp-block-paragraph">Then enter the IP address of your SUSE 11 machine. Leave the&nbsp;<strong>SNMP version</strong>&nbsp;at 2c and the&nbsp;<strong>SNMP Port</strong>&nbsp;at 161. The&nbsp;<strong>SNMP Community</strong>&nbsp;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/03/LinuxSNMPWizard.png"><img loading="lazy" decoding="async" width="936" height="754" src="https://library.nagios.com/wp-content/uploads/2025/03/LinuxSNMPWizard.png" alt="" class="wp-image-52118" title="Installing and Monitoring SUSE 11 with SNMP 18" srcset="https://library.nagios.com/wp-content/uploads/2025/03/LinuxSNMPWizard.png 936w, https://library.nagios.com/wp-content/uploads/2025/03/LinuxSNMPWizard-300x242.png 300w, https://library.nagios.com/wp-content/uploads/2025/03/LinuxSNMPWizard-768x619.png 768w" sizes="(max-width: 936px) 100vw, 936px" /></a><figcaption class="wp-element-caption">Linux SNMP configuration wizard page</figcaption></figure>



<p class="wp-block-paragraph">Now, you can change any settings you need and choose which metrics you would like to monitor.</p>



<figure class="wp-block-image size-full"><a href="https://library.nagios.com/wp-content/uploads/2025/03/LinuxSNMPWizardSettings.png"><img loading="lazy" decoding="async" width="1024" height="568" src="https://library.nagios.com/wp-content/uploads/2025/03/LinuxSNMPWizardSettings.png" alt="" class="wp-image-52120" title="Installing and Monitoring SUSE 11 with SNMP 19" srcset="https://library.nagios.com/wp-content/uploads/2025/03/LinuxSNMPWizardSettings.png 1024w, https://library.nagios.com/wp-content/uploads/2025/03/LinuxSNMPWizardSettings-300x166.png 300w, https://library.nagios.com/wp-content/uploads/2025/03/LinuxSNMPWizardSettings-768x426.png 768w" sizes="(max-width: 1024px) 100vw, 1024px" /></a><figcaption class="wp-element-caption">Configuration page</figcaption></figure>



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



<figure class="wp-block-table"><table class="has-fixed-layout"><thead><tr><th><strong>Issue</strong></th><th><strong>Solution</strong></th></tr></thead><tbody><tr><td>SNMP service not starting</td><td>Check <code>/var/log/messages</code> for errors. Restart with <code>service snmpd restart</code>.</td></tr><tr><td>SNMPwalk not returning data</td><td>Ensure the correct community string (<code>-C public</code>) or SNMPv3 credentials are used.</td></tr><tr><td>Nagios not displaying host</td><td>Verify the Nagios config using <code>nagios -v /usr/local/nagios/etc/nagios.cfg</code>.</td></tr><tr><td>Firewall blocking SNMP</td><td>Ensure port <strong>161/UDP</strong> is open in <code>iptables</code> or <code>firewalld</code>.</td></tr></tbody></table></figure>



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



<p class="wp-block-paragraph">By following this guide, you have successfully installed and configured <strong>SNMP on SUSE 11</strong> and integrated it with <strong>Nagios</strong>. Now, you can <strong>monitor uptime, CPU load, and other system metrics in real-time!</strong> For additional support, visit the <a href="https://support.nagios.com/forum" target="_blank" rel="noreferrer noopener">Nagios Support Forum</a> or the <a href="https://support.nagios.com/kb" target="_blank" rel="noreferrer noopener"><a href="https://library.nagios.com/docs" target="_blank" rel="noreferrer noopener">Nagios Documentation</a></a>.</p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>How to Install and Monitor SUSE 11 with Nagios Cross-Platform Agent (NCPA)</title>
		<link>https://library.nagios.com/documentation/how-to-install-and-monitor-suse-11-with-nagios-cross-platform-agent-ncpa/</link>
		
		<dc:creator><![CDATA[Jack Brisben]]></dc:creator>
		<pubDate>Thu, 13 Mar 2025 15:31:45 +0000</pubDate>
				<category><![CDATA[Documentation]]></category>
		<category><![CDATA[Monitoring]]></category>
		<category><![CDATA[NCPA]]></category>
		<category><![CDATA[Operating System Monitoring]]></category>
		<category><![CDATA[SUSE 11]]></category>
		<guid isPermaLink="false">https://library.nagios.com/?p=52035</guid>

					<description><![CDATA[Keeping IT systems running smoothly requires constant monitoring, and that’s where Nagios Cross-Platform Agent (NCPA) comes in. Whether you’re managing a single server or an entire network, NCPA provides real-time insights into system performance, helping you catch issues before they escalate. In this guide, you’ll learn how to install and configure NCPA on SUSE Linux [&#8230;]]]></description>
										<content:encoded><![CDATA[
<h3 class="wp-block-heading"><strong>Keeping IT systems running smoothly requires constant monitoring, and that’s where Nagios Cross-Platform Agent (NCPA) comes in.</strong></h3>



<p class="wp-block-paragraph">Whether you’re managing a single server or an entire network, NCPA provides real-time insights into system performance, helping you catch issues before they escalate.</p>



<p class="wp-block-paragraph">In this guide, you’ll learn how to install and configure NCPA on <strong>SUSE Linux Enterprise Server (SLES) 11</strong>, ensuring seamless monitoring and optimal system health.</p>



<h3 class="wp-block-heading"><strong>Active vs Passive Monitoring</strong></h3>



<p class="wp-block-paragraph">NCPA supports two monitoring methods:</p>



<ul class="wp-block-list">
<li><strong>Active Monitoring</strong>: Nagios actively checks system metrics on a schedule.</li>



<li><strong>Passive Monitoring</strong>: NCPA submits check results to Nagios when triggered.</li>
</ul>



<p class="wp-block-paragraph"><strong>Recommendation</strong>: Active monitoring is preferred for most cases, as it allows Nagios to control check scheduling.</p>



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



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



<p class="wp-block-paragraph"> A system running <strong>SUSE Linux Enterprise Server 11</strong><br> <strong>Root</strong> privileges<br> <strong>Internet access</strong> or a way to transfer the NCPA package</p>



<h3 class="wp-block-heading"><strong>Verify Your SUSE Version</strong></h3>



<p class="wp-block-paragraph">Run the following command to check your system version:</p>



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



<p class="wp-block-paragraph">Example Output:</p>



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



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



<p class="wp-block-paragraph">To download the latest NCPA package for SUSE 11, visit the <a href="https://www.nagios.org/projects/ncpa/" target="_blank" rel="noopener">Nagios NCPA Downloads Page</a> or use <code>wget</code>:</p>



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



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



<h4 class="wp-block-heading"><strong>Method 1: Standard Installation</strong></h4>



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



<p class="wp-block-paragraph"><strong>Install dependencies (if required)</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>zypper install python python-xml</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: #DCDCAA">zypper</span><span style="color: #D4D4D4"> </span><span style="color: #CE9178">install</span><span style="color: #D4D4D4"> </span><span style="color: #CE9178">python</span><span style="color: #D4D4D4"> </span><span style="color: #CE9178">python-xml</span></span></code></pre></div>



<p class="wp-block-paragraph"><strong>Install the NCPA package</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>zypper install ./ncpa-latest.sles11.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: #DCDCAA">zypper</span><span style="color: #D4D4D4"> </span><span style="color: #CE9178">install</span><span style="color: #D4D4D4"> </span><span style="color: #CE9178">./ncpa-latest.sles11.x86_64.rpm</span></span></code></pre></div>



<p class="wp-block-paragraph"><strong>Method 2: Silent Installation</strong> (For automated deployments)</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>rpm -ivh ncpa-latest.sles11.x86_64.rpm --quiet</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: #DCDCAA">rpm</span><span style="color: #D4D4D4"> </span><span style="color: #569CD6">-ivh</span><span style="color: #D4D4D4"> </span><span style="color: #CE9178">ncpa-latest.sles11.x86_64.rpm</span><span style="color: #D4D4D4"> </span><span style="color: #569CD6">--quiet</span></span></code></pre></div>



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



<p class="wp-block-paragraph">After installation, configure NCPA to allow Nagios to monitor the system.</p>



<p class="wp-block-paragraph"><strong>Edit the NCPA configuration file</strong></p>



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



<p class="wp-block-paragraph"><strong>Set the API token for authentication</strong> (replace <code>"your_secure_token"</code> with a strong password)</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>&#91;api&#93;
community_string = your_secure_token</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">&#91;api&#93;</span></span>
<span class="line"><span style="color: #DCDCAA">community_string</span><span style="color: #D4D4D4"> </span><span style="color: #CE9178">=</span><span style="color: #D4D4D4"> </span><span style="color: #CE9178">your_secure_token</span></span></code></pre></div>



<p class="wp-block-paragraph">Enable passive checks if required</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>&#91;passive&#93;
sleep = 300</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">&#91;passive&#93;</span></span>
<span class="line"><span style="color: #DCDCAA">sleep</span><span style="color: #D4D4D4"> </span><span style="color: #CE9178">=</span><span style="color: #D4D4D4"> </span><span style="color: #B5CEA8">300</span></span></code></pre></div>



<p class="wp-block-paragraph"><strong>Save and exit</strong> (Press <code>CTRL + X</code>, then <code>Y</code>, then <code>Enter</code>).</p>



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



<p class="wp-block-paragraph">Run the following commands to start NCPA and enable it at 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>service ncpa_listener start
service ncpa_passive start
chkconfig ncpa_listener on
chkconfig ncpa_passive on
</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: #DCDCAA">service</span><span style="color: #D4D4D4"> </span><span style="color: #CE9178">ncpa_listener</span><span style="color: #D4D4D4"> </span><span style="color: #CE9178">start</span></span>
<span class="line"><span style="color: #DCDCAA">service</span><span style="color: #D4D4D4"> </span><span style="color: #CE9178">ncpa_passive</span><span style="color: #D4D4D4"> </span><span style="color: #CE9178">start</span></span>
<span class="line"><span style="color: #DCDCAA">chkconfig</span><span style="color: #D4D4D4"> </span><span style="color: #CE9178">ncpa_listener</span><span style="color: #D4D4D4"> </span><span style="color: #CE9178">on</span></span>
<span class="line"><span style="color: #DCDCAA">chkconfig</span><span style="color: #D4D4D4"> </span><span style="color: #CE9178">ncpa_passive</span><span style="color: #D4D4D4"> </span><span style="color: #CE9178">on</span></span>
<span class="line"></span></code></pre></div>



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



<h3 class="wp-block-heading"><strong>Step 5: Configure SUSE Firewall (if enabled)</strong></h3>



<p class="wp-block-paragraph">If the firewall is active, allow traffic on <strong>port 5693</strong> (default NCPA port):</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>iptables -A INPUT -p tcp --dport 5693 -j ACCEPT
iptables-save > /etc/sysconfig/iptables</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: #DCDCAA">iptables</span><span style="color: #D4D4D4"> </span><span style="color: #569CD6">-A</span><span style="color: #D4D4D4"> </span><span style="color: #CE9178">INPUT</span><span style="color: #D4D4D4"> </span><span style="color: #569CD6">-p</span><span style="color: #D4D4D4"> </span><span style="color: #CE9178">tcp</span><span style="color: #D4D4D4"> </span><span style="color: #569CD6">--dport</span><span style="color: #D4D4D4"> </span><span style="color: #B5CEA8">5693</span><span style="color: #D4D4D4"> </span><span style="color: #569CD6">-j</span><span style="color: #D4D4D4"> </span><span style="color: #CE9178">ACCEPT</span></span>
<span class="line"><span style="color: #DCDCAA">iptables-save</span><span style="color: #D4D4D4"> &gt; </span><span style="color: #CE9178">/etc/sysconfig/iptables</span></span></code></pre></div>



<p class="wp-block-paragraph">For <strong>firewalld</strong> (if installed):</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>firewall-cmd --add-port=5693/tcp --permanent
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: #DCDCAA">firewall-cmd</span><span style="color: #D4D4D4"> </span><span style="color: #569CD6">--add-port=5693/tcp</span><span style="color: #D4D4D4"> </span><span style="color: #569CD6">--permanent</span></span>
<span class="line"><span style="color: #DCDCAA">firewall-cmd</span><span style="color: #D4D4D4"> </span><span style="color: #569CD6">--reload</span></span></code></pre></div>



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



<p class="wp-block-paragraph">To verify NCPA is running, use the following command from your Nagios server:</p>



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



<p class="wp-block-paragraph">If NCPA is running correctly, you will receive JSON output with system information.</p>



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



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



<p class="wp-block-paragraph">Log in using the API token you configured earlier.</p>



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



<h3 class="wp-block-heading"><strong>Step 7: Configure Nagios to Monitor SUSE 11</strong></h3>



<p class="wp-block-paragraph">Now that you have&nbsp;<strong>NCPA installed and configured</strong>&nbsp;on your&nbsp;<strong>SUSE 1</strong>1&nbsp;system, it’s time to integrate it with&nbsp;<strong>Nagios</strong>&nbsp;for real-time monitoring.&nbsp;<strong>Nagios Core or Nagios XI</strong>&nbsp;can use NCPA to check system metrics such as CPU usage, memory utilization, disk space, and running processes.</p>



<p class="wp-block-paragraph">From your Nagios GUIs home page click on&nbsp;<strong>Run a Wizard</strong>.</p>



<figure class="wp-block-image size-full"><a href="https://library.nagios.com/wp-content/uploads/2025/03/RunAWizard.png"><img loading="lazy" decoding="async" width="1024" height="538" src="https://library.nagios.com/wp-content/uploads/2025/03/RunAWizard.png" alt="RunAWizard" class="wp-image-52041" title="How to Install and Monitor SUSE 11 with Nagios Cross-Platform Agent (NCPA) 21" srcset="https://library.nagios.com/wp-content/uploads/2025/03/RunAWizard.png 1024w, https://library.nagios.com/wp-content/uploads/2025/03/RunAWizard-300x158.png 300w, https://library.nagios.com/wp-content/uploads/2025/03/RunAWizard-768x404.png 768w" sizes="(max-width: 1024px) 100vw, 1024px" /></a><figcaption class="wp-element-caption">Run a Wizard</figcaption></figure>



<p class="wp-block-paragraph">Next, pick the&nbsp;<strong>NCPA wizard</strong>.</p>



<figure class="wp-block-image size-full"><a href="https://library.nagios.com/wp-content/uploads/2025/03/NCPAwizard.png"><img loading="lazy" decoding="async" width="1024" height="524" src="https://library.nagios.com/wp-content/uploads/2025/03/NCPAwizard.png" alt="NCPAwizard" class="wp-image-52042" title="How to Install and Monitor SUSE 11 with Nagios Cross-Platform Agent (NCPA) 22" srcset="https://library.nagios.com/wp-content/uploads/2025/03/NCPAwizard.png 1024w, https://library.nagios.com/wp-content/uploads/2025/03/NCPAwizard-300x154.png 300w, https://library.nagios.com/wp-content/uploads/2025/03/NCPAwizard-768x393.png 768w" sizes="(max-width: 1024px) 100vw, 1024px" /></a><figcaption class="wp-element-caption">NCPA Wizard</figcaption></figure>



<p class="wp-block-paragraph">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&nbsp;<code>ncpa.cfg</code>&nbsp;file. For System select SLES, Hit&nbsp;<strong>Next</strong></p>



<figure class="wp-block-image size-full"><a href="https://library.nagios.com/wp-content/uploads/2025/03/NCPAPage.png"><img loading="lazy" decoding="async" width="1024" height="673" src="https://library.nagios.com/wp-content/uploads/2025/03/NCPAPage.png" alt="NCPAPage" class="wp-image-52043" title="How to Install and Monitor SUSE 11 with Nagios Cross-Platform Agent (NCPA) 23" srcset="https://library.nagios.com/wp-content/uploads/2025/03/NCPAPage.png 1024w, https://library.nagios.com/wp-content/uploads/2025/03/NCPAPage-300x197.png 300w, https://library.nagios.com/wp-content/uploads/2025/03/NCPAPage-768x505.png 768w" sizes="(max-width: 1024px) 100vw, 1024px" /></a><figcaption class="wp-element-caption">NCPA Wizard</figcaption></figure>



<p class="wp-block-paragraph">Now you can change any monitoring settings depending on your needs, or click finish with default settings.</p>



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



<h3 class="wp-block-heading"><strong>Verifying Monitoring Setup</strong></h3>



<p class="wp-block-paragraph">After completing the configuration, <strong>Nagios should display the monitored SUSE 11 host and its services</strong>:</p>



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



<li>Navigate to <strong>Host Status</strong> and verify that the SUSE 11 system appears.</li>



<li>Check <strong>Service Status</strong> to confirm monitoring is active.</li>
</ol>



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



<figure class="wp-block-table"><table class="has-fixed-layout"><thead><tr><th><strong>Issue</strong></th><th><strong>Solution</strong></th></tr></thead><tbody><tr><td>NCPA service not starting</td><td>Verify token and configuration in <code>ncpa.cfg</code>. Check logs in <code>/usr/local/ncpa/var/log/ncpa_listener.log</code>.</td></tr><tr><td>Passive checks not received</td><td>Ensure NRDP settings are correct in <code>ncpa.cfg</code> and match Nagios server settings.</td></tr><tr><td>Firewall blocking communication</td><td>Ensure port <strong>5693</strong> is open using <code>iptables</code> or <code>firewalld</code>.</td></tr><tr><td>Nagios not displaying host</td><td>Check the Nagios configuration syntax using <code>nagios -v /usr/local/nagios/etc/nagios.cfg</code>.</td></tr></tbody></table></figure>



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



<p class="wp-block-paragraph">By following this guide, you have successfully installed and configured <strong>Nagios Cross-Platform Agent (NCPA) on SUSE 11</strong>. Your system is now actively monitored, allowing you to detect performance issues before they become critical. For additional support, refer to <strong>Nagios Support Forum</strong>: <a href="https://support.nagios.com/forum/" target="_blank" rel="noopener">https://support.nagios.com/forum/</a> or the <strong>Nagios Knowledge Base</strong>: <a href="https://support.nagios.com/kb/" target="_blank" rel="noopener">https://support.nagios.com/kb/</a>.</p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>Monitoring Windows Event Logs via SNMP in Nagios XI</title>
		<link>https://library.nagios.com/monitoring/monitoring-windows-event-logs-via-snmp-in-nagios-xi/</link>
		
		<dc:creator><![CDATA[Jack Brisben]]></dc:creator>
		<pubDate>Fri, 07 Mar 2025 21:33:22 +0000</pubDate>
				<category><![CDATA[Monitoring]]></category>
		<category><![CDATA[Documentation]]></category>
		<category><![CDATA[Log Monitoring]]></category>
		<category><![CDATA[Operating System Monitoring]]></category>
		<category><![CDATA[SNMP]]></category>
		<guid isPermaLink="false">https://library.nagios.com/?p=51677</guid>

					<description><![CDATA[Introduction Effective IT infrastructure monitoring requires robust tools to ensure system health and performance. Nagios XI provides comprehensive monitoring capabilities, and SNMP (Simple Network Management Protocol) is a widely used method for monitoring Windows servers. Configuring SNMP in Windows and integrating it with Nagios XI allows organizations to monitor system metrics efficiently. Why Use SNMP [&#8230;]]]></description>
										<content:encoded><![CDATA[
<h3 class="wp-block-heading">Introduction</h3>



<p class="wp-block-paragraph">Effective IT infrastructure monitoring requires robust tools to ensure system health and performance. Nagios XI provides comprehensive monitoring capabilities, and SNMP (Simple Network Management Protocol) is a widely used method for monitoring Windows servers. Configuring SNMP in Windows and integrating it with Nagios XI allows organizations to monitor system metrics efficiently.</p>



<h3 class="wp-block-heading">Why Use SNMP for Windows Monitoring?</h3>



<h4 class="wp-block-heading">1. Centralized Monitoring</h4>



<p class="wp-block-paragraph">SNMP enables centralized monitoring of multiple Windows servers, providing real-time insights into system performance and health.</p>



<h4 class="wp-block-heading">2. Lightweight and Efficient</h4>



<p class="wp-block-paragraph">SNMP is a lightweight protocol that requires minimal resources while offering detailed system information.</p>



<h4 class="wp-block-heading">3. Standardized Protocol</h4>



<p class="wp-block-paragraph">SNMP is a widely accepted protocol, making it compatible with various monitoring tools, including Nagios XI.</p>



<h4 class="wp-block-heading">4. Custom Monitoring</h4>



<p class="wp-block-paragraph">With SNMP, organizations can customize monitoring by configuring additional performance metrics based on their requirements.</p>



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



<p class="wp-block-paragraph">Before configuring SNMP for Windows monitoring in Nagios XI, ensure the following:</p>



<ul class="wp-block-list">
<li>Nagios XI is installed and running.</li>



<li>SNMP service is installed on the Windows server.</li>



<li>Firewall rules allow SNMP traffic.</li>



<li>SNMP community string is properly configured.</li>
</ul>



<h3 class="wp-block-heading">Installing and Configuring SNMP on Windows</h3>



<p class="wp-block-paragraph">To enable SNMP monitoring, install and configure the SNMP service on Windows.</p>



<h3 class="wp-block-heading">Steps to Install SNMP on Windows Server:</h3>



<ol start="1" class="wp-block-list">
<li>Open PowerShell as an administrator.</li>



<li>Run the following command to install SNMP:</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>Install-WindowsFeature -Name SNMP-Service -IncludeManagementTools</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: #DCDCAA">Install-WindowsFeature</span><span style="color: #D4D4D4"> </span><span style="color: #569CD6">-Name</span><span style="color: #D4D4D4"> </span><span style="color: #CE9178">SNMP-Service</span><span style="color: #D4D4D4"> </span><span style="color: #569CD6">-IncludeManagementTools</span></span></code></pre></div>



<p class="wp-block-paragraph">      3. Verify SNMP installation:</p>



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



<h3 class="wp-block-heading">Configuring SNMP on Windows Server:</h3>



<ol start="1" class="wp-block-list">
<li>Open <strong>Services</strong> (<code>services.msc</code>).</li>



<li>Locate and open <strong>SNMP Service</strong> properties.</li>



<li>Navigate to the <strong>Security</strong> tab.</li>



<li>Add a community string (e.g., <code>public</code>) and set permissions.</li>



<li>Allow SNMP packets from Nagios XI’s IP address.</li>



<li>Restart the SNMP service:</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>Restart-Service 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: #DCDCAA">Restart-Service</span><span style="color: #D4D4D4"> </span><span style="color: #CE9178">SNMP</span></span></code></pre></div>



<h3 class="wp-block-heading">Configuring Nagios XI for SNMP Monitoring</h3>



<p class="wp-block-paragraph">To integrate SNMP monitoring in Nagios XI, configure SNMP checks for the Windows server.</p>



<h3 class="wp-block-heading">Adding an SNMP Windows Host in Nagios XI</h3>



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



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



<li>Select <strong>Windows SNMP</strong>.</li>



<li>Enter the Windows server’s IP address.</li>



<li>Specify the SNMP community string (e.g., <code>public</code>).</li>



<li>Configure the desired monitoring checks (CPU, disk, memory, etc.).</li>



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



<h3 class="wp-block-heading">Manually Adding SNMP Host Configuration</h3>



<p class="wp-block-paragraph">Alternatively, add an SNMP host manually in Nagios XI.</p>



<h4 class="wp-block-heading">Example Nagios XI Configuration for SNMP Host:</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>define host {
    use             windows-server
    host_name       Windows_Server_01
    address         192.168.1.100
    max_check_attempts 5
    check_period    24x7
    check_command   check-host-alive
    notification_period 24x7
}</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: #DCDCAA">define</span><span style="color: #D4D4D4"> </span><span style="color: #CE9178">host</span><span style="color: #D4D4D4"> </span><span style="color: #CE9178">{</span></span>
<span class="line"><span style="color: #D4D4D4">    </span><span style="color: #DCDCAA">use</span><span style="color: #D4D4D4">             </span><span style="color: #CE9178">windows-server</span></span>
<span class="line"><span style="color: #D4D4D4">    </span><span style="color: #DCDCAA">host_name</span><span style="color: #D4D4D4">       </span><span style="color: #CE9178">Windows_Server_01</span></span>
<span class="line"><span style="color: #D4D4D4">    </span><span style="color: #DCDCAA">address</span><span style="color: #D4D4D4">         </span><span style="color: #B5CEA8">192.168</span><span style="color: #CE9178">.1.100</span></span>
<span class="line"><span style="color: #D4D4D4">    </span><span style="color: #DCDCAA">max_check_attempts</span><span style="color: #D4D4D4"> </span><span style="color: #B5CEA8">5</span></span>
<span class="line"><span style="color: #D4D4D4">    </span><span style="color: #DCDCAA">check_period</span><span style="color: #D4D4D4">    </span><span style="color: #B5CEA8">24</span><span style="color: #CE9178">x7</span></span>
<span class="line"><span style="color: #D4D4D4">    </span><span style="color: #DCDCAA">check_command</span><span style="color: #D4D4D4">   </span><span style="color: #CE9178">check-host-alive</span></span>
<span class="line"><span style="color: #D4D4D4">    </span><span style="color: #DCDCAA">notification_period</span><span style="color: #D4D4D4"> </span><span style="color: #B5CEA8">24</span><span style="color: #CE9178">x7</span></span>
<span class="line"><span style="color: #D4D4D4">}</span></span></code></pre></div>



<h4 class="wp-block-heading">Example Nagios XI Service Configuration for SNMP:</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>define service {
    use                 generic-service
    host_name           Windows_Server_01
    service_description CPU Load
    check_command       check_snmp! -H 192.168.1.100 -C public -o .1.3.6.1.2.1.25.3.3.1.2.1
}</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: #DCDCAA">define</span><span style="color: #D4D4D4"> </span><span style="color: #CE9178">service</span><span style="color: #D4D4D4"> </span><span style="color: #CE9178">{</span></span>
<span class="line"><span style="color: #D4D4D4">    </span><span style="color: #DCDCAA">use</span><span style="color: #D4D4D4">                 </span><span style="color: #CE9178">generic-service</span></span>
<span class="line"><span style="color: #D4D4D4">    </span><span style="color: #DCDCAA">host_name</span><span style="color: #D4D4D4">           </span><span style="color: #CE9178">Windows_Server_01</span></span>
<span class="line"><span style="color: #D4D4D4">    </span><span style="color: #DCDCAA">service_description</span><span style="color: #D4D4D4"> </span><span style="color: #CE9178">CPU</span><span style="color: #D4D4D4"> </span><span style="color: #CE9178">Load</span></span>
<span class="line"><span style="color: #D4D4D4">    </span><span style="color: #DCDCAA">check_command</span><span style="color: #D4D4D4">       </span><span style="color: #CE9178">check_snmp!</span><span style="color: #D4D4D4"> </span><span style="color: #569CD6">-H</span><span style="color: #D4D4D4"> </span><span style="color: #B5CEA8">192.168</span><span style="color: #CE9178">.1.100</span><span style="color: #D4D4D4"> </span><span style="color: #569CD6">-C</span><span style="color: #D4D4D4"> </span><span style="color: #CE9178">public</span><span style="color: #D4D4D4"> </span><span style="color: #569CD6">-o</span><span style="color: #D4D4D4"> </span><span style="color: #CE9178">.1.3.6.1.2.1.25.3.3.1.2.1</span></span>
<span class="line"><span style="color: #D4D4D4">}</span></span></code></pre></div>



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



<h3 class="wp-block-heading">Verification Steps:</h3>



<ul class="wp-block-list">
<li>Confirm SNMP service status on Windows:</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>Get-Service -Name 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: #DCDCAA">Get-Service</span><span style="color: #D4D4D4"> </span><span style="color: #569CD6">-Name</span><span style="color: #D4D4D4"> </span><span style="color: #CE9178">SNMP</span></span></code></pre></div>



<ul class="wp-block-list">
<li>Test SNMP response from Nagios XI:</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>snmpwalk -v2c -c public 192.168.1.100</textarea></pre><svg xmlns="http://www.w3.org/2000/svg" style="width:24px;height:24px" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2"><path class="with-check" stroke-linecap="round" stroke-linejoin="round" d="M4.5 12.75l6 6 9-13.5"></path><path class="without-check" stroke-linecap="round" stroke-linejoin="round" d="M16.5 8.25V6a2.25 2.25 0 00-2.25-2.25H6A2.25 2.25 0 003.75 6v8.25A2.25 2.25 0 006 16.5h2.25m8.25-8.25H18a2.25 2.25 0 012.25 2.25V18A2.25 2.25 0 0118 20.25h-7.5A2.25 2.25 0 018.25 18v-1.5m8.25-8.25h-6a2.25 2.25 0 00-2.25 2.25v6"></path></svg></span><pre class="shiki dark-plus" style="background-color: #1E1E1E" tabindex="0"><code><span class="line"><span style="color: #DCDCAA">snmpwalk</span><span style="color: #D4D4D4"> </span><span style="color: #569CD6">-v2c</span><span style="color: #D4D4D4"> </span><span style="color: #569CD6">-c</span><span style="color: #D4D4D4"> </span><span style="color: #CE9178">public</span><span style="color: #D4D4D4"> </span><span style="color: #B5CEA8">192.168</span><span style="color: #CE9178">.1.100</span></span></code></pre></div>



<ul class="wp-block-list">
<li>Check Nagios XI configuration syntax:</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>nagios -v /usr/local/nagios/etc/nagios.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: #DCDCAA">nagios</span><span style="color: #D4D4D4"> </span><span style="color: #569CD6">-v</span><span style="color: #D4D4D4"> </span><span style="color: #CE9178">/usr/local/nagios/etc/nagios.cfg</span></span></code></pre></div>



<ul class="wp-block-list">
<li>Restart Nagios XI service if needed:</li>
</ul>



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



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



<p class="wp-block-paragraph">Integrating Windows SNMP monitoring with Nagios XI enhances system visibility and ensures proactive issue resolution. By configuring SNMP properly, organizations can monitor CPU usage, disk space, memory utilization, and other key performance metrics efficiently. This setup minimizes downtime, optimizes resource management, and provides centralized monitoring for IT infrastructure. For additional support, visit the <a href="https://support.nagios.com/forum" target="_blank" rel="noopener">Nagios Support Forum</a> or <a href="https://library.nagios.com/docs" target="_blank" rel="noreferrer noopener">Nagios Documentation</a>.</p>
]]></content:encoded>
					
		
		
			</item>
	</channel>
</rss>
