<?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>Linux &#8211; Nagios Library</title>
	<atom:link href="https://library.nagios.com/tag/linux/feed/" rel="self" type="application/rss+xml" />
	<link>https://library.nagios.com</link>
	<description>Complete Nagios monitoring resources and documentation</description>
	<lastBuildDate>Thu, 12 Nov 2026 21:35:11 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=7.1.4</generator>

<image>
	<url>https://library.nagios.com/wp-content/uploads/2024/11/Nagios-Blue-N.svg</url>
	<title>Linux &#8211; Nagios Library</title>
	<link>https://library.nagios.com</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>Virtual Appliance Kernel Debt: How to Track Running Kernels</title>
		<link>https://library.nagios.com/industry-insights/virtual-appliance-kernel-debt-how-to-track-running-kernels/</link>
		
		<dc:creator><![CDATA[Sam Napier]]></dc:creator>
		<pubDate>Thu, 12 Nov 2026 21:16:10 +0000</pubDate>
				<category><![CDATA[Industry Insights]]></category>
		<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[VMware]]></category>
		<guid isPermaLink="false">https://library.nagios.com/?p=71335</guid>

					<description><![CDATA[An OVA (Open Virtualization Format Archive) is not only an application installer. It is a snapshot of a guest operating system, including the Linux kernel and every module that kernel can load. When a virtual appliance image remains in service for years, its guest-kernel security debt remains in service too—and most operations teams cannot immediately [&#8230;]]]></description>
										<content:encoded><![CDATA[
<p class="wp-block-paragraph">An OVA (Open Virtualization Format Archive) is not only an application installer. It is a snapshot of a guest operating system, including the Linux kernel and every module that kernel can load. When a virtual appliance image remains in service for years, its guest-kernel security debt remains in service too—and most operations teams cannot immediately report which kernel versions or drivers are running across the appliances they have already deployed.</p>



<p class="wp-block-paragraph">That blind spot becomes acute whenever a kernel driver vulnerability is disclosed before a fix or affected-version range is available. The current example is ZDI-CAN-34068, a local privilege-escalation report in the Linux kernel&#8217;s <code>vmwgfx</code> driver that reached public mailing lists without an accompanying patch, CVE assignment, or affected-version list. Whether a patch is pending or already shipping upstream, the operational problem is the same: replacing a downloadable OVA does not update appliances already running in the field, and patching the hypervisor does not touch the guest kernel inside them.</p>



<h2 class="wp-block-heading">ZDI-CAN-34068 as the Current Example—and Why <code>vmwgfx</code> Is a Recurring Surface</h2>



<p class="wp-block-paragraph">On October 21, 2026, the Zero Day Initiative sent a report to the public Linux kernel mailing list titled “Linux Kernel vmwgfx Dirty Tracking Out-Of-Bounds Write Local Privilege Escalation Vulnerability.” The report is tracked as ZDI-CAN-34068. Greg Kroah-Hartman replied on October 22 that the report had reached public lists without a patch. ZDI&#8217;s upcoming-advisory page lists Linux as the vendor, CVSS 8.8, a report date of October 21, 2026, and a disclosure deadline of February 18, 2027.</p>



<p class="wp-block-paragraph">Contemporaneous reporting described the disclosure as one of several vulnerability reports posted before a mainline fix was available. TuxCare&#8217;s status table identifies <code>vmwgfx</code> and local privilege escalation, labels the entry “title only,” and states that no KernelCare action is planned until technical details exist.</p>



<p class="wp-block-paragraph">As of October 22, 2026, the public record supports these statements:</p>



<ul class="wp-block-list">
<li>The reported vulnerability is associated with the Linux kernel&#8217;s <code>vmwgfx</code> component.</li>



<li>Its published title describes dirty tracking, an out-of-bounds write, and local privilege escalation.</li>



<li>No upstream patch accompanied the public mailing-list report.</li>



<li>No affected-version range has been published.</li>



<li>No CVE tied to ZDI-CAN-34068 was found in current public search results.</li>
</ul>



<p class="wp-block-paragraph">The record does <strong>not</strong> support claims about a triggering operation, vulnerable data structure, reliable workaround, indicators of compromise, or which appliance releases are affected. Those questions remain open until maintainers or distribution vendors publish authoritative details.</p>



<p class="wp-block-paragraph">Even after ZDI-CAN-34068 receives an upstream fix, <code>vmwgfx</code> will remain a relevant case study for virtual appliance hygiene. Earlier disclosures in the same driver show that virtual graphics modules in Linux guests require routine kernel lifecycle management:</p>



<figure class="wp-block-table"><table class="has-fixed-layout"><thead><tr><th>Identifier</th><th>Reported area in <code>vmwgfx</code></th><th>Impact class</th><th>Operational takeaway</th></tr></thead><tbody><tr><td><strong>CVE-2022-36280</strong></td><td>Cursor snooper handling</td><td>Out-of-bounds write / local privilege escalation</td><td>In-guest driver flaws persist in older appliance kernels until the guest OS is patched</td></tr><tr><td><strong>ZDI-26-232 / CVE-2025-40277</strong></td><td><code>vmw_cmd_check</code> command validation</td><td>Local privilege escalation</td><td>Hypervisor updates do not remediate command-checking defects inside the guest kernel module</td></tr><tr><td><strong>CVE-2026-80700</strong></td><td><code>vmw_external_bo_copy</code> bounds checking</td><td>Out-of-bounds access</td><td>Requires verifying the exact running guest kernel package, not just the appliance version</td></tr><tr><td><strong>ZDI-CAN-34068</strong></td><td>Dirty tracking (title-only disclosure)</td><td>Out-of-bounds write / local privilege escalation (CVSS 8.8)</td><td>Demonstrates why operators need kernel and module inventory before affected versions are named</td></tr></tbody></table></figure>



<p class="wp-block-paragraph">ZDI-CAN-34068 must not be conflated with those earlier flaws. Their mechanics do not explain this report, and their fixes do not remediate it. Together, however, they show that an in-guest virtual hardware driver is a recurring kernel patch surface.</p>



<p class="wp-block-paragraph">Sources: <a href="https://www.zerodayinitiative.com/advisories/upcoming/" target="_blank" rel="noopener">ZDI upcoming-advisory record</a>, <a href="https://lore.landau.one/lkml/2026102254-protector-seventy-6454@gregkh/T/" target="_blank" rel="noopener">Linux kernel mailing-list thread</a>, <a href="https://www.phoronix.com/news/LKML-New-Trend-Vulnerabilities" target="_blank" rel="noopener">Phoronix reporting</a>, and <a href="https://tuxcare.com/blog/zdi-ksmbd-bugs-cve/" target="_blank" rel="noopener">TuxCare status summary</a>.</p>



<h2 class="wp-block-heading"><strong>The Patch Belongs to the Guest Kernel, Not the Hypervisor</strong></h2>



<p class="wp-block-paragraph"><code>vmwgfx</code> is the Linux Direct Rendering Manager (DRM) driver for VMware&#8217;s virtual GPU. In a virtual appliance deployment, it is part of the Linux kernel running inside the guest virtual machine (VM) created from the OVA. ESXi or another hypervisor hosts that guest, but does not replace the guest&#8217;s kernel modules.</p>



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

  hypervisor&#91;Hypervisor&#93;

  guest&#91;Guest VM&#93;

  kernel&#91;Guest Linux kernel&#93;

  vmwgfx&#91;vmwgfx module&#93;

  flaw&#91;Driver vulnerability&#93;

  hypervisor --> guest

  guest --> kernel

  kernel --> vmwgfx

  vmwgfx --> flaw</textarea></pre><svg xmlns="http://www.w3.org/2000/svg" style="width:24px;height:24px" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2"><path class="with-check" stroke-linecap="round" stroke-linejoin="round" d="M4.5 12.75l6 6 9-13.5"></path><path class="without-check" stroke-linecap="round" stroke-linejoin="round" d="M16.5 8.25V6a2.25 2.25 0 00-2.25-2.25H6A2.25 2.25 0 003.75 6v8.25A2.25 2.25 0 006 16.5h2.25m8.25-8.25H18a2.25 2.25 0 012.25 2.25V18A2.25 2.25 0 0118 20.25h-7.5A2.25 2.25 0 018.25 18v-1.5m8.25-8.25h-6a2.25 2.25 0 00-2.25 2.25v6"></path></svg></span><pre class="shiki dark-plus" style="background-color: #1E1E1E" tabindex="0"><code><span class="line"><span style="color: #C586C0">flowchart</span><span style="color: #D4D4D4"> </span><span style="color: #DCDCAA">TB</span></span>
<span class="line"></span>
<span class="line"><span style="color: #D4D4D4">  </span><span style="color: #9CDCFE">hypervisor</span><span style="color: #C586C0">&#91;</span><span style="color: #CE9178">Hypervisor</span><span style="color: #C586C0">&#93;</span></span>
<span class="line"></span>
<span class="line"><span style="color: #D4D4D4">  </span><span style="color: #9CDCFE">guest</span><span style="color: #C586C0">&#91;</span><span style="color: #CE9178">Guest VM</span><span style="color: #C586C0">&#93;</span></span>
<span class="line"></span>
<span class="line"><span style="color: #D4D4D4">  </span><span style="color: #9CDCFE">kernel</span><span style="color: #C586C0">&#91;</span><span style="color: #CE9178">Guest Linux kernel</span><span style="color: #C586C0">&#93;</span></span>
<span class="line"></span>
<span class="line"><span style="color: #D4D4D4">  </span><span style="color: #9CDCFE">vmwgfx</span><span style="color: #C586C0">&#91;</span><span style="color: #CE9178">vmwgfx module</span><span style="color: #C586C0">&#93;</span></span>
<span class="line"></span>
<span class="line"><span style="color: #D4D4D4">  </span><span style="color: #9CDCFE">flaw</span><span style="color: #C586C0">&#91;</span><span style="color: #CE9178">Driver vulnerability</span><span style="color: #C586C0">&#93;</span></span>
<span class="line"></span>
<span class="line"><span style="color: #D4D4D4">  </span><span style="color: #9CDCFE">hypervisor </span><span style="color: #C586C0">--&gt;</span><span style="color: #D4D4D4"> </span><span style="color: #9CDCFE">guest</span></span>
<span class="line"></span>
<span class="line"><span style="color: #D4D4D4">  </span><span style="color: #9CDCFE">guest </span><span style="color: #C586C0">--&gt;</span><span style="color: #D4D4D4"> </span><span style="color: #9CDCFE">kernel</span></span>
<span class="line"></span>
<span class="line"><span style="color: #D4D4D4">  </span><span style="color: #9CDCFE">kernel </span><span style="color: #C586C0">--&gt;</span><span style="color: #D4D4D4"> </span><span style="color: #9CDCFE">vmwgfx</span></span>
<span class="line"></span>
<span class="line"><span style="color: #D4D4D4">  </span><span style="color: #9CDCFE">vmwgfx </span><span style="color: #C586C0">--&gt;</span><span style="color: #D4D4D4"> </span><span style="color: #9CDCFE">flaw</span></span></code></pre></div>



<p class="wp-block-paragraph">The remediation unit is therefore the guest kernel. Patching the hypervisor is necessary infrastructure maintenance, but it does not update a vulnerable guest kernel and should not be recorded as remediation for an in-guest driver flaw.</p>



<p class="wp-block-paragraph">Every published OVA should have a build manifest that names its kernel version, and vendors should record whether <code>vmwgfx</code> is present and expected to load. Without that record, neither a vendor nor an operator can quickly determine whether an upstream fix has reached a given appliance.</p>



<h2 class="wp-block-heading"><strong>Why Historical Appliance Images Preserve Guest-Kernel Debt</strong></h2>



<p class="wp-block-paragraph">When a vendor builds an OVA, the build freezes an application and operating-system stack into a single image. A download portal or image library distributes that file, and operators deploy running virtual machines from it. Replacing the download file later does not touch appliances that were already deployed.</p>



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

  build&#91;Appliance build&#93; --> ova&#91;Published OVA&#93;

  ova --> portal&#91;Download portal or template library&#93;

  portal --> deployed&#91;Deployed appliance in the field&#93;

  build --> replacement&#91;Replacement OVA with patched kernel&#93;

  replacement --> portal

  deployed -->|"In-place kernel update or migration"| replacement</textarea></pre><svg xmlns="http://www.w3.org/2000/svg" style="width:24px;height:24px" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2"><path class="with-check" stroke-linecap="round" stroke-linejoin="round" d="M4.5 12.75l6 6 9-13.5"></path><path class="without-check" stroke-linecap="round" stroke-linejoin="round" d="M16.5 8.25V6a2.25 2.25 0 00-2.25-2.25H6A2.25 2.25 0 003.75 6v8.25A2.25 2.25 0 006 16.5h2.25m8.25-8.25H18a2.25 2.25 0 012.25 2.25V18A2.25 2.25 0 0118 20.25h-7.5A2.25 2.25 0 018.25 18v-1.5m8.25-8.25h-6a2.25 2.25 0 00-2.25 2.25v6"></path></svg></span><pre class="shiki dark-plus" style="background-color: #1E1E1E" tabindex="0"><code><span class="line"><span style="color: #C586C0">flowchart</span><span style="color: #D4D4D4"> </span><span style="color: #DCDCAA">LR</span></span>
<span class="line"></span>
<span class="line"><span style="color: #D4D4D4">  </span><span style="color: #9CDCFE">build</span><span style="color: #C586C0">&#91;</span><span style="color: #CE9178">Appliance build</span><span style="color: #C586C0">&#93;</span><span style="color: #D4D4D4"> </span><span style="color: #C586C0">--&gt;</span><span style="color: #D4D4D4"> </span><span style="color: #9CDCFE">ova</span><span style="color: #C586C0">&#91;</span><span style="color: #CE9178">Published OVA</span><span style="color: #C586C0">&#93;</span></span>
<span class="line"></span>
<span class="line"><span style="color: #D4D4D4">  </span><span style="color: #9CDCFE">ova </span><span style="color: #C586C0">--&gt;</span><span style="color: #D4D4D4"> </span><span style="color: #9CDCFE">portal</span><span style="color: #C586C0">&#91;</span><span style="color: #CE9178">Download portal or template library</span><span style="color: #C586C0">&#93;</span></span>
<span class="line"></span>
<span class="line"><span style="color: #D4D4D4">  </span><span style="color: #9CDCFE">portal </span><span style="color: #C586C0">--&gt;</span><span style="color: #D4D4D4"> </span><span style="color: #9CDCFE">deployed</span><span style="color: #C586C0">&#91;</span><span style="color: #CE9178">Deployed appliance in the field</span><span style="color: #C586C0">&#93;</span></span>
<span class="line"></span>
<span class="line"><span style="color: #D4D4D4">  </span><span style="color: #9CDCFE">build </span><span style="color: #C586C0">--&gt;</span><span style="color: #D4D4D4"> </span><span style="color: #9CDCFE">replacement</span><span style="color: #C586C0">&#91;</span><span style="color: #CE9178">Replacement OVA with patched kernel</span><span style="color: #C586C0">&#93;</span></span>
<span class="line"></span>
<span class="line"><span style="color: #D4D4D4">  </span><span style="color: #9CDCFE">replacement </span><span style="color: #C586C0">--&gt;</span><span style="color: #D4D4D4"> </span><span style="color: #9CDCFE">portal</span></span>
<span class="line"></span>
<span class="line"><span style="color: #D4D4D4">  </span><span style="color: #9CDCFE">deployed </span><span style="color: #C586C0">--&gt;|</span><span style="color: #CE9178">&quot;In-place kernel update or migration&quot;</span><span style="color: #C586C0">|</span><span style="color: #D4D4D4"> </span><span style="color: #9CDCFE">replacement</span></span></code></pre></div>



<p class="wp-block-paragraph">This lifecycle creates a gap across almost every long-lived Linux appliance:</p>



<ul class="wp-block-list">
<li>Updating the file on a download page protects only future deployments.</li>



<li>Publishing a replacement OVA gives operators a clean image for new builds or migrations.</li>



<li>Appliances already running in the field still require an in-place kernel update (plus a reboot into the updated kernel) or migration to the replacement image.</li>



<li>A newer OVA is only a security fix once its guest kernel is verified to contain the upstream or distribution patch.</li>
</ul>



<p class="wp-block-paragraph">Image owners and infrastructure teams need to trace which build produced each OVA, where older images remain cached as internal templates, how many deployed instances exist in the field, and whether those instances can consume standard package updates.</p>



<h2 class="wp-block-heading"><strong>Compensating Controls Must Carry an Uncertainty Label</strong></h2>



<p class="wp-block-paragraph">Because the published impact of ZDI-CAN-34068 is local privilege escalation, the threat model starts with code already executing as a local user or service account inside the guest. A guest DRM device node is worth inspecting because DRM nodes normally mediate userspace access to the graphics subsystem, though the public record does not establish that a specific node or operation is required for this vulnerability.</p>



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

  workload&#91;Appliance workload&#93; --> localProcess&#91;Local user or service process&#93;

  localProcess --> drmNode&#91;DRM device node&#93;

  drmNode --> vmwgfx&#91;vmwgfx module&#93;

  vmwgfx --> kernelPrivileges&#91;Guest kernel privileges&#93;</textarea></pre><svg xmlns="http://www.w3.org/2000/svg" style="width:24px;height:24px" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2"><path class="with-check" stroke-linecap="round" stroke-linejoin="round" d="M4.5 12.75l6 6 9-13.5"></path><path class="without-check" stroke-linecap="round" stroke-linejoin="round" d="M16.5 8.25V6a2.25 2.25 0 00-2.25-2.25H6A2.25 2.25 0 003.75 6v8.25A2.25 2.25 0 006 16.5h2.25m8.25-8.25H18a2.25 2.25 0 012.25 2.25V18A2.25 2.25 0 0118 20.25h-7.5A2.25 2.25 0 018.25 18v-1.5m8.25-8.25h-6a2.25 2.25 0 00-2.25 2.25v6"></path></svg></span><pre class="shiki dark-plus" style="background-color: #1E1E1E" tabindex="0"><code><span class="line"><span style="color: #C586C0">flowchart</span><span style="color: #D4D4D4"> </span><span style="color: #DCDCAA">LR</span></span>
<span class="line"></span>
<span class="line"><span style="color: #D4D4D4">  </span><span style="color: #9CDCFE">workload</span><span style="color: #C586C0">&#91;</span><span style="color: #CE9178">Appliance workload</span><span style="color: #C586C0">&#93;</span><span style="color: #D4D4D4"> </span><span style="color: #C586C0">--&gt;</span><span style="color: #D4D4D4"> </span><span style="color: #9CDCFE">localProcess</span><span style="color: #C586C0">&#91;</span><span style="color: #CE9178">Local user or service process</span><span style="color: #C586C0">&#93;</span></span>
<span class="line"></span>
<span class="line"><span style="color: #D4D4D4">  </span><span style="color: #9CDCFE">localProcess </span><span style="color: #C586C0">--&gt;</span><span style="color: #D4D4D4"> </span><span style="color: #9CDCFE">drmNode</span><span style="color: #C586C0">&#91;</span><span style="color: #CE9178">DRM device node</span><span style="color: #C586C0">&#93;</span></span>
<span class="line"></span>
<span class="line"><span style="color: #D4D4D4">  </span><span style="color: #9CDCFE">drmNode </span><span style="color: #C586C0">--&gt;</span><span style="color: #D4D4D4"> </span><span style="color: #9CDCFE">vmwgfx</span><span style="color: #C586C0">&#91;</span><span style="color: #CE9178">vmwgfx module</span><span style="color: #C586C0">&#93;</span></span>
<span class="line"></span>
<span class="line"><span style="color: #D4D4D4">  </span><span style="color: #9CDCFE">vmwgfx </span><span style="color: #C586C0">--&gt;</span><span style="color: #D4D4D4"> </span><span style="color: #9CDCFE">kernelPrivileges</span><span style="color: #C586C0">&#91;</span><span style="color: #CE9178">Guest kernel privileges</span><span style="color: #C586C0">&#93;</span></span></code></pre></div>



<p class="wp-block-paragraph">This diagram represents a general reachability boundary, not a confirmed trigger path.</p>



<p class="wp-block-paragraph">Two precautions can reduce general exposure to <code>vmwgfx</code>:</p>



<ul class="wp-block-list">
<li>Restrict access to <code>/dev/dri/...</code> DRM device nodes to accounts that require virtual-GPU functionality.</li>



<li>Avoid loading <code>vmwgfx</code> when the appliance is verified not to require VMware SVGA acceleration.</li>
</ul>



<p class="wp-block-paragraph">Neither is a confirmed fix for ZDI-CAN-34068. The public record does not establish the exact reachability conditions, and disabling a graphics driver can affect virtual consoles, display management, support workflows, or vendor supportability. Test any module or permission change in a non-production clone, document the change, and keep a recovery path.</p>



<p class="wp-block-paragraph">Similarly, restricting shell access and removing unused local accounts shrinks the set of local processes that could attempt privilege escalation, while keeping management interfaces off untrusted networks reduces the chance that an application compromise yields local code execution inside the guest.</p>



<h2 class="wp-block-heading"><strong>What Operators and Vendors Should Do Before and After a Fix Lands</strong></h2>



<p class="wp-block-paragraph">Reducing virtual appliance kernel debt does not wait on a proof of concept.</p>



<h3 class="wp-block-heading"><strong>Before an Authoritative Patch or Version Range Exists</strong></h3>



<ol class="wp-block-list">
<li><strong>Inventory every deployed appliance.</strong> Record the appliance product and release, source OVA filename or template, <code>uname -r</code> output, distribution release, update channel, and whether a reboot is pending.</li>



<li><strong>Record driver state.</strong> Check whether <code>vmwgfx</code> is installed and currently loaded (<code>lsmod</code>, <code>modinfo vmwgfx</code>). Record its module filename, <code>vermagic</code>, and owning distribution package so the inventory can be matched against future advisories.</li>



<li><strong>Audit local execution paths and DRM permissions.</strong> Review interactive accounts, support credentials, service accounts, scheduled jobs, and plugins that execute inside the guest, and verify which users or groups can open <code>/dev/dri/card*</code> or <code>/dev/dri/renderD*</code>.</li>



<li><strong>Confirm update and reboot mechanics.</strong> Verify whether deployed appliances can take an in-place distribution kernel update or whether they must be migrated to a newly issued OVA.</li>
</ol>



<h3 class="wp-block-heading"><strong>When a Fix and Advisory Are Published</strong></h3>



<ol class="wp-block-list">
<li><strong>Map advisories to exact kernel packages.</strong> Compare the upstream or distribution advisory against the recorded kernel version of every supported OVA and deployed instance.</li>



<li><strong>Deliver both remediation paths.</strong> Vendors should publish an updated OVA through their normal build pipeline (naming the fixed kernel package in release notes), retire unpatched downloads, and provide an authenticated in-place update path where supported.</li>



<li><strong>Verify the running kernel after reboot.</strong> Operators should confirm that <code>uname -r</code> on each deployed appliance matches the fixed package after reboot, rather than checking only that an RPM or DEB package was installed on disk.</li>
</ol>



<h2 class="wp-block-heading"><strong>Tracking Appliance Kernel Versions and Drift With Monitoring Tooling</strong></h2>



<p class="wp-block-paragraph">The reason virtual appliance kernel debt accumulates silently is that appliance OS layers are rarely monitored with the same rigor as standard Linux servers. Once an OVA is imported, teams monitor the application service or web port, while the underlying guest kernel ages out of sight.</p>



<p class="wp-block-paragraph">Closing that gap requires continuous operational visibility across every deployed appliance. Regardless of which virtual appliances an organization runs, operators should track four data points across their fleet:</p>



<ul class="wp-block-list">
<li><strong>Running kernel release (<code>uname -r</code>):</strong> What kernel is active in memory right now on each appliance, and where does it diverge from the organization&#8217;s approved baseline?</li>



<li><strong>Installed versus running kernel drift:</strong> Has an appliance installed a security update on disk without rebooting into the new kernel?</li>



<li><strong>Kernel module state:</strong> Is a target module such as <code>vmwgfx</code> loaded (<code>lsmod</code>) on appliances that do not require virtual graphics acceleration?</li>



<li><strong>Fleet-wide version skew:</strong> Which older appliance instances are still running kernel generations from historical OVA templates after newer deployments have moved ahead?</li>
</ul>



<p class="wp-block-paragraph">Infrastructure monitoring tooling makes this inventory continuous rather than a one-off spreadsheet exercise during an advisory scramble. In Nagios, for example, operators can run scheduled agent-based or SSH checks across virtual appliances to collect <code>uname -r</code>, compare the running kernel against the latest installed kernel package to flag pending reboots, check whether specific kernel modules are loaded, and alert when an appliance drifts behind an expected kernel baseline. When an advisory such as ZDI-CAN-34068 is published—or when its eventual patch arrives—having live kernel and module outputs already collected in the monitoring system lets teams identify exposed appliances immediately and verify post-reboot remediation from the same dashboard.</p>



<h2 class="wp-block-heading"><strong>What This Article Intentionally Does Not Provide</strong></h2>



<p class="wp-block-paragraph">This article does not provide exploit theory, ioctl sequences, dirty-tracking trigger conditions, memory-layout analysis, proof-of-concept code, or a walkthrough for compromising an appliance. The public title of ZDI-CAN-34068 is not enough to infer those details responsibly.</p>



<p class="wp-block-paragraph">The operational conclusion does not depend on them: <code>vmwgfx</code> lives in the guest kernel; historical OVAs preserve the guest kernels they shipped with; replacing a download link or patching a hypervisor does not update appliances already running in the field; and continuous kernel inventory is what turns an opaque advisory into a manageable maintenance task.</p>



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



<ul class="wp-block-list">
<li><strong>OVA (Open Virtualization Format Archive):</strong> A single-file distribution archive (<code>.ova</code>) of an Open Virtualization Format package containing an OVF descriptor, virtual disks, and related metadata used to deploy a preconfigured virtual machine. Source: <a href="https://www.dmtf.org/sites/default/files/standards/documents/DSP0243_2.1.1.pdf" target="_blank" rel="noopener">DMTF, <em>*Open Virtualization Format Specification*</em> (DSP0243 §5)</a>.</li>



<li><strong>DRM node (Direct Rendering Manager device node):</strong> A character-device interface in Linux, such as <code>/dev/dri/card*</code> or <code>/dev/dri/renderD*</code>, through which user-space processes interact with the kernel&#8217;s Direct Rendering Manager subsystem and underlying GPU or virtual-GPU drivers. Source: <a href="https://docs.kernel.org/gpu/drm-uapi.html" target="_blank" rel="noopener">Linux Kernel Documentation, <em>*Userland interfaces (DRM)*</em></a>.</li>



<li><strong>Dirty tracking:</strong> A memory- and graphics-management mechanism used by kernel drivers (including virtual graphics drivers such as <code>vmwgfx</code>) to track which memory pages, buffer objects, or framebuffer regions have been modified so only updated regions are synchronized or rendered. Source: <a href="https://docs.kernel.org/gpu/drm-mm.html" target="_blank" rel="noopener">Linux Kernel Documentation, <em>*DRM Memory Management*</em></a>.</li>



<li><strong>SBOM (Software Bill of Materials):</strong> A formal, machine-readable inventory of software components, packages, dependencies, and their relationships used to track supply-chain provenance and vulnerability exposure across build artifacts such as virtual appliances. Source: <a href="https://www.cisa.gov/sites/default/files/2024-10/SBOM%20Framing%20Software%20Component%20Transparency%202024.pdf" target="_blank" rel="noopener">CISA, <em>*Framing Software Component Transparency*</em></a>.</li>
</ul>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>Nagios PHP Upgrade: What to Know Before You Start</title>
		<link>https://library.nagios.com/documentation/nagios-php-upgrade-what-to-know/</link>
		
		<dc:creator><![CDATA[Andy Fried]]></dc:creator>
		<pubDate>Thu, 22 Oct 2026 16:38:05 +0000</pubDate>
				<category><![CDATA[Documentation]]></category>
		<category><![CDATA[Support Tips]]></category>
		<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Upgrade]]></category>
		<guid isPermaLink="false">https://library.nagios.com/?p=71054</guid>

					<description><![CDATA[On October 21, 2026, the PHP project released urgent security fixes, addressing two vulnerabilities, CVE-2026-109618 and CVE-2026-109619, known as PHP2Shell. Both carry a critical 9.2 CVSS v4.0 score, meaning an unauthorized user could remotely execute code on a vulnerable web server without logging in. As a result, many organizations are planning a PHP upgrade. This [&#8230;]]]></description>
										<content:encoded><![CDATA[
<p class="wp-block-paragraph">On October 21, 2026, the PHP project released urgent security fixes, addressing two vulnerabilities, <a href="https://github.com/php/php-src/security/advisories/GHSA-w8hw-w9fx-j79w" target="_blank" rel="noopener">CVE-2026-109618</a> and <a href="https://github.com/php/php-src/security/advisories/GHSA-6wmf-4rv5-p3rp" target="_blank" rel="noopener">CVE-2026-109619</a>, known as PHP2Shell. Both carry a critical 9.2 CVSS v4.0 score, meaning an unauthorized user could remotely execute code on a vulnerable web server without logging in.</p>



<p class="wp-block-paragraph">As a result, many organizations are planning a PHP upgrade. This article describes what you need to consider before a PHP upgrade, so your Nagios software keeps working properly.</p>



<div role="note" style="border-left:6px solid #e5484d;background:rgba(229,72,77,0.12);padding:16px 22px;margin:28px 0;">
  <p style="margin:0 0 4px;font-size:1.1em;font-weight:600;color:#e5484d;text-transform:uppercase;letter-spacing:0.04em;">Important</p>
  <p style="margin:0;font-size:1em;line-height:1.5;">Do not upgrade PHP 7.x to PHP 8.x on an existing Nagios server. Migrate to a newer OS release instead.</p>
</div>



<h2 class="wp-block-heading">What This Means for Nagios Monitoring Solutions </h2>



<p class="wp-block-paragraph">Nagios XI and our other web-based products (including Nagios Fusion) run on the PHP version installed on your server, so applying your Linux vendor’s PHP security updates is important.</p>



<p class="wp-block-paragraph">When Nagios software is initially installed, it relies on the base version of PHP that the OS vendor installs. The following is mostly geared towards Nagios XI, but it is applicable to our other software as well.&nbsp;</p>



<p class="wp-block-paragraph">For example, RHEL 8 installs PHP 7.2, RHEL 9 installs PHP 8.0, and Ubuntu 24.04 LTS installs PHP 8.3.&nbsp;</p>



<p class="wp-block-paragraph">As of October 1, 2026, the current versions of our software require a minimum of PHP 7.4 and have been developed and tested to run on PHP 8.4.</p>



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



<h2 class="wp-block-heading">How to Check Your System</h2>



<p class="wp-block-paragraph">Check whether your PHP packages include the PHP2Shell fixes.</p>



<h3 class="wp-block-heading">RHEL-Based Systems</h3>



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



<p class="wp-block-paragraph">If the command returns CVE-2026-109618 and CVE-2026-109619, your PHP packages include the fixes. If it returns nothing, apply your Linux vendor’s latest PHP updates, then check again.</p>



<h3 class="wp-block-heading">Debian Systems</h3>



<h4 class="wp-block-heading">Debian 12</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>apt list | grep php8.2-common</textarea></pre><svg xmlns="http://www.w3.org/2000/svg" style="width:24px;height:24px" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2"><path class="with-check" stroke-linecap="round" stroke-linejoin="round" d="M4.5 12.75l6 6 9-13.5"></path><path class="without-check" stroke-linecap="round" stroke-linejoin="round" d="M16.5 8.25V6a2.25 2.25 0 00-2.25-2.25H6A2.25 2.25 0 003.75 6v8.25A2.25 2.25 0 006 16.5h2.25m8.25-8.25H18a2.25 2.25 0 012.25 2.25V18A2.25 2.25 0 0118 20.25h-7.5A2.25 2.25 0 018.25 18v-1.5m8.25-8.25h-6a2.25 2.25 0 00-2.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">apt list | grep php8.2-common</span></span></code></pre></div>



<p class="wp-block-paragraph">If they have this version, they have the patch: 8.2.35-1~deb12u1</p>



<h4 class="wp-block-heading">Debian 13</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>apt list | grep php8.4-common</textarea></pre><svg xmlns="http://www.w3.org/2000/svg" style="width:24px;height:24px" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2"><path class="with-check" stroke-linecap="round" stroke-linejoin="round" d="M4.5 12.75l6 6 9-13.5"></path><path class="without-check" stroke-linecap="round" stroke-linejoin="round" d="M16.5 8.25V6a2.25 2.25 0 00-2.25-2.25H6A2.25 2.25 0 003.75 6v8.25A2.25 2.25 0 006 16.5h2.25m8.25-8.25H18a2.25 2.25 0 012.25 2.25V18A2.25 2.25 0 0118 20.25h-7.5A2.25 2.25 0 018.25 18v-1.5m8.25-8.25h-6a2.25 2.25 0 00-2.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">apt list | grep php8.4-common</span></span></code></pre></div>



<p class="wp-block-paragraph">If they have this version, they have the patch: 8.4.27-1~deb13u1</p>



<h3 class="wp-block-heading">Ubuntu Systems</h3>



<h4 class="wp-block-heading">Ubuntu 22</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>apt list | grep php8.1-common</textarea></pre><svg xmlns="http://www.w3.org/2000/svg" style="width:24px;height:24px" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2"><path class="with-check" stroke-linecap="round" stroke-linejoin="round" d="M4.5 12.75l6 6 9-13.5"></path><path class="without-check" stroke-linecap="round" stroke-linejoin="round" d="M16.5 8.25V6a2.25 2.25 0 00-2.25-2.25H6A2.25 2.25 0 003.75 6v8.25A2.25 2.25 0 006 16.5h2.25m8.25-8.25H18a2.25 2.25 0 012.25 2.25V18A2.25 2.25 0 0118 20.25h-7.5A2.25 2.25 0 018.25 18v-1.5m8.25-8.25h-6a2.25 2.25 0 00-2.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">apt list | grep php8.1-common</span></span></code></pre></div>



<p class="wp-block-paragraph">If they have this version, they have the patch: 8.1.2-1ubuntu2.28</p>



<h4 class="wp-block-heading">Ubuntu 24.04</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>apt list | grep php8.3-common</textarea></pre><svg xmlns="http://www.w3.org/2000/svg" style="width:24px;height:24px" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2"><path class="with-check" stroke-linecap="round" stroke-linejoin="round" d="M4.5 12.75l6 6 9-13.5"></path><path class="without-check" stroke-linecap="round" stroke-linejoin="round" d="M16.5 8.25V6a2.25 2.25 0 00-2.25-2.25H6A2.25 2.25 0 003.75 6v8.25A2.25 2.25 0 006 16.5h2.25m8.25-8.25H18a2.25 2.25 0 012.25 2.25V18A2.25 2.25 0 0118 20.25h-7.5A2.25 2.25 0 018.25 18v-1.5m8.25-8.25h-6a2.25 2.25 0 00-2.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">apt list | grep php8.3-common</span></span></code></pre></div>



<p class="wp-block-paragraph">If they have this version, they have the patch: 8.3.6-0ubuntu0.24.04.13</p>



<h3 class="wp-block-heading">Example Output (RHEL 9)</h3>



<div class="wp-block-kevinbatdorf-code-block-pro" data-code-block-pro-font-family="Code-Pro-Geist-Mono" style="font-size:.875rem;font-family:Code-Pro-Geist-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:1.5rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)"><pre class="shiki dark-plus" style="background-color: #1E1E1E" tabindex="0"><code><span class="line"><span style="color: #D4D4D4">&#91;root@nagios-xi ~&#93;# php --version</span></span>
<span class="line"><span style="color: #D4D4D4"> PHP 8.0.30 (cli) (built: Oct 21 2026 15:47:44) ( NTS gcc x86_64 )</span></span>
<span class="line"><span style="color: #D4D4D4"> Copyright (c) The PHP Group</span></span>
<span class="line"><span style="color: #D4D4D4"> Zend Engine v4.0.30, Copyright (c) Zend Technologies</span></span>
<span class="line"><span style="color: #D4D4D4">    with Zend OPcache v8.0.30, Copyright (c), by Zend Technologies</span></span>
<span class="line"><span style="color: #D4D4D4">&#91;root@nagios-xi ~&#93;# rpm -q --changelog php-common | grep -i CVE-2026-10961</span></span>
<span class="line"><span style="color: #D4D4D4">  CVE-2026-109618, CVE-2026-109619</span></span></code></pre></div>



<hr class="wp-block-separator has-alpha-channel-opacity" style="margin-top:16px;margin-bottom:0px"/>



<h2 class="wp-block-heading">Options to Safeguard Your Installations </h2>



<p class="wp-block-paragraph">Choose the option that fits your situation. For most PHP2Shell concerns, applying your Linux vendor’s security updates is the fastest and safest path.</p>



<h3 class="wp-block-heading">If You Need a PHP Upgrade for Security or Vulnerability Concerns</h3>



<p class="wp-block-paragraph">Keep in mind that Linux vendors backport security fixes into the PHP versions they ship, so an older version number does not always mean your system is vulnerable. Use the check above, or check with your Linux distribution vendor, to see if you need to upgrade your version of PHP.&nbsp;</p>



<p class="wp-block-paragraph">Contact your Linux distribution vendor for the proper method to update your version of PHP and stay inside the parameters listed in this article.&nbsp;</p>



<h3 class="wp-block-heading">If You Need a PHP Upgrade Within the Same Major Version</h3>



<p class="wp-block-paragraph">Nagios strongly recommends that you do not upgrade from one major version of PHP to another (for example, from PHP 7.x to PHP 8.x).</p>



<blockquote class="wp-block-quote is-layout-flow wp-block-quote-is-layout-flow">
<p class="wp-block-paragraph">For example, if you are running Nagios XI on RHEL 8, with PHP 7.2, you can upgrade to anything from version 7.4 through the highest, available version of PHP 7.x, but do not upgrade to PHP 8.0 or above.</p>
</blockquote>



<p class="wp-block-paragraph">When Nagios performs the initial software installation, it depends on the major version of all the components that ship with that distribution. A PHP upgrade to a different major version can cause issues with the software, as well as with the OS itself.</p>



<h2 class="wp-block-heading">If You Need a PHP Upgrade to a Higher Major Version</h2>



<p class="wp-block-paragraph">To maintain the integrity of your installed version of Nagios software, migrate your XI instance to a newer release of your Linux distribution that installs the major PHP version you need.</p>



<blockquote class="wp-block-quote is-layout-flow wp-block-quote-is-layout-flow">
<p class="wp-block-paragraph">For example, if you are on RHEL 8, running PHP 7.4 and wish to upgrade to PHP 8.3, back up your XI instance and restore it to a new RHEL 9 or RHEL 10 system. Then perform the PHP upgrade on the new instance to PHP 8.3. </p>



<p class="wp-block-paragraph">Related Reading: <a href="https://assets.nagios.com/downloads/nagiosxi/guides/administrator/sysmgmt.php#backuprestore" target="_blank" rel="noreferrer noopener">Backing Up And Restoring XI</a></p>
</blockquote>



<hr class="wp-block-separator has-alpha-channel-opacity" style="margin-top:24px;margin-bottom:0px"/>



<h2 class="wp-block-heading">Before Any PHP Upgrade&nbsp;</h2>



<p class="wp-block-paragraph">It is important to perform all PHP upgrades in your test environment before your production environment and take a snapshot or clone of your virtual machine so you can roll back if you encounter any problems.&nbsp;</p>



<p class="wp-block-paragraph">After making a PHP upgrade, make sure to install the latest SourceGuardian loaders for the new version. See: <a href="https://library.nagios.com/docs/nagios-xi/installation/Nagios-XI-Installing-Latest-SourceGuardian-Loaders" target="_blank" rel="noopener">Nagios XI – Installing Latest SourceGuardian Loaders</a>.&nbsp;</p>



<p class="wp-block-paragraph">We are monitoring this situation and will provide updates as more information becomes available.</p>



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



<ul class="wp-block-list">
<li><a href="https://assets.nagios.com/downloads/nagiosxi/guides/administrator/systemconfig.php#bestpractices" target="_blank" rel="noopener">Nagios XI Best Practices</a></li>



<li><a href="https://library.nagios.com/docs" target="_blank" rel="noreferrer noopener">Nagios Documentation Hub</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 Use the Linux Server (Legacy) Wizard in Nagios XI</title>
		<link>https://library.nagios.com/tutorials/how-to-use-the-linux-server-legacy-configuration-wizard-in-nagios-xi/</link>
		
		<dc:creator><![CDATA[Ryan Reisdorf]]></dc:creator>
		<pubDate>Wed, 20 Aug 2025 19:28:02 +0000</pubDate>
				<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Wizards]]></category>
		<guid isPermaLink="false">https://library.nagios.com/?p=62661&#038;preview=true&#038;preview_id=62661</guid>

					<description><![CDATA[Nagios XI includes a Linux Server (Legacy) Wizard that enables you to easily set up monitoring of Linux hosts using the NRPE agent, allowing quick configuration of system metrics, services, and processes. You can refer to this documentation for full details:]]></description>
										<content:encoded><![CDATA[
<p class="wp-block-paragraph">Nagios XI includes a <strong>Linux Server (Legacy) Wizard</strong> that enables you to easily set up monitoring of Linux hosts using the NRPE agent, allowing quick configuration of system metrics, services, and processes.</p>



<p class="wp-block-paragraph">You can refer to this documentation for full details:</p>



<ul class="wp-block-list">
<li><a href="https://assets.nagios.com/downloads/nagiosxi/docs/Monitoring-Linux-using-NRPE-2024.pdf" target="_blank" rel="noopener">How To Use the Linux Server (Legacy) Configuration Wizard in Nagios XI</a></li>
</ul>


<div class="wp-block-pdfemb-pdf-embedder-viewer"><a href="https://library.nagios.com/wp-content/uploads/2025/08/Monitoring-Linux-using-NRPE-2024-2.pdf" class="pdfemb-viewer" style="" data-width="max" data-height="max" data-toolbar="bottom" data-toolbar-fixed="off">Monitoring-Linux-using-NRPE-2024-2</a></div>


<p class="wp-block-paragraph"></p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>How to Install Zabbix Agent on Linux and Windows</title>
		<link>https://library.nagios.com/tutorials/install-zabbix-agent-linux-and-windows/</link>
		
		<dc:creator><![CDATA[Ayub Huruse]]></dc:creator>
		<pubDate>Thu, 10 Jul 2025 13:45:00 +0000</pubDate>
				<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[Agents]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Network Monitoring System]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[Zabbix]]></category>
		<guid isPermaLink="false">https://library.nagios.com/?p=60136</guid>

					<description><![CDATA[The Zabbix Agent efficiently collects system metrics from Linux and Windows hosts and forwards them to Nagios&#160;XI using the Zabbix&#160;Agent&#160;Wizard. Follow the steps below to install it on CentOS Stream 9 (Linux) and Windows&#160;Server&#160;2019/2022. Prerequisites Part 1: Install Zabbix Agent on Linux 1. Update system. 2. Add Zabbix repository. Choose your distribution/version here: Zabbix Linux [&#8230;]]]></description>
										<content:encoded><![CDATA[
<p class="wp-block-paragraph">The Zabbix Agent efficiently collects system metrics from Linux and Windows hosts and forwards them to Nagios&nbsp;XI using the Zabbix&nbsp;Agent&nbsp;Wizard. Follow the steps below to install it on CentOS Stream 9 (Linux) and Windows&nbsp;Server&nbsp;2019/2022.</p>



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



<ul class="wp-block-list">
<li><strong>Linux</strong>: root or sudo access</li>



<li><strong>Windows Server 2019/2022</strong>: local administrator</li>



<li>Internet connectivity</li>



<li>Zabbix server/proxy IP (e.g., 192.168.1.100)</li>
</ul>



<h2 class="wp-block-heading">Part 1: Install Zabbix Agent on Linux</h2>



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



<p class="wp-block-paragraph">2. <strong>Add Zabbix repository</strong>.</p>



<p class="wp-block-paragraph">Choose your distribution/version here: <a href="https://www.zabbix.com/download" target="_blank" rel="noreferrer noopener">Zabbix Linux downloads</a></p>



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



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



<p class="wp-block-paragraph">4. <strong>Configure agent</strong>.<br>Edit <code>/etc/zabbix/zabbix_agent2.conf</code> and set:</p>



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



<p class="wp-block-paragraph">5. <strong>Start and enable service</strong>.</p>



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



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



<h2 class="wp-block-heading">Part 2: Install Zabbix Agent on Windows</h2>



<p class="wp-block-paragraph">1. <strong>Download agent</strong>.</p>



<ul class="wp-block-list">
<li>Visit the Zabbix downloads page and get the latest Windows installer here: <a href="https://www.zabbix.com/download_agents" target="_blank" rel="noreferrer noopener">Zabbix Windows agents</a></li>
</ul>



<p class="wp-block-paragraph">2. <strong>Run installer</strong>.</p>



<figure class="wp-block-image size-full"><a href="https://library.nagios.com/wp-content/uploads/2025/06/Screenshot-2025-06-27-111116.png"><img fetchpriority="high" decoding="async" width="515" height="387" src="https://library.nagios.com/wp-content/uploads/2025/06/Screenshot-2025-06-27-111116.png" alt="Zabbix downloads page." class="wp-image-60140" title="How to Install Zabbix Agent on Linux and Windows 1" srcset="https://library.nagios.com/wp-content/uploads/2025/06/Screenshot-2025-06-27-111116.png 515w, https://library.nagios.com/wp-content/uploads/2025/06/Screenshot-2025-06-27-111116-300x225.png 300w" sizes="(max-width: 515px) 100vw, 515px" /></a><figcaption class="wp-element-caption">Welcome page.</figcaption></figure>



<ul class="wp-block-list">
<li>Double-click the downloaded <code>.exe</code> to launch the wizard</li>



<li>Click <strong>Next</strong> to continue</li>
</ul>



<p class="wp-block-paragraph">3. <strong>Accept License Agreement</strong>.<br></p>



<figure class="wp-block-image size-full"><a href="https://library.nagios.com/wp-content/uploads/2025/06/Screenshot-2025-06-27-111130.png"><img decoding="async" width="524" height="397" src="https://library.nagios.com/wp-content/uploads/2025/06/Screenshot-2025-06-27-111130.png" alt="Zabbix user agreement." class="wp-image-60141" title="How to Install Zabbix Agent on Linux and Windows 2" srcset="https://library.nagios.com/wp-content/uploads/2025/06/Screenshot-2025-06-27-111130.png 524w, https://library.nagios.com/wp-content/uploads/2025/06/Screenshot-2025-06-27-111130-300x227.png 300w" sizes="(max-width: 524px) 100vw, 524px" /></a><figcaption class="wp-element-caption">License Agreement.</figcaption></figure>



<p class="wp-block-paragraph">4. <strong>Choose installation folder</strong>.</p>



<figure class="wp-block-image size-full"><a href="https://library.nagios.com/wp-content/uploads/2025/06/Screenshot-2025-06-27-111223.png"><img decoding="async" width="536" height="405" src="https://library.nagios.com/wp-content/uploads/2025/06/Screenshot-2025-06-27-111223.png" alt="Zabbix installation." class="wp-image-60142" title="How to Install Zabbix Agent on Linux and Windows 3" srcset="https://library.nagios.com/wp-content/uploads/2025/06/Screenshot-2025-06-27-111223.png 536w, https://library.nagios.com/wp-content/uploads/2025/06/Screenshot-2025-06-27-111223-300x227.png 300w" sizes="(max-width: 536px) 100vw, 536px" /></a><figcaption class="wp-element-caption">Custom setup location.</figcaption></figure>



<p class="wp-block-paragraph">5. <strong>Configure during setup</strong>.</p>



<ul class="wp-block-list">
<li><strong>Server IP:</strong> 192.168.1.100</li>



<li><strong>Active checks:</strong> 192.168.1.100</li>



<li><strong>Hostname:</strong> WindowsServer01</li>



<li>Enable the check box for Add agent location to the PATH</li>



<li>Click <strong>Install</strong>, then <strong>Finish</strong></li>
</ul>



<figure class="wp-block-image size-full"><a href="https://library.nagios.com/wp-content/uploads/2025/06/Screenshot-2025-06-27-112431.png"><img loading="lazy" decoding="async" width="502" height="424" src="https://library.nagios.com/wp-content/uploads/2025/06/Screenshot-2025-06-27-112431.png" alt="Zabbix configuration setup." class="wp-image-60143" title="How to Install Zabbix Agent on Linux and Windows 4" srcset="https://library.nagios.com/wp-content/uploads/2025/06/Screenshot-2025-06-27-112431.png 502w, https://library.nagios.com/wp-content/uploads/2025/06/Screenshot-2025-06-27-112431-300x253.png 300w" sizes="(max-width: 502px) 100vw, 502px" /></a><figcaption class="wp-element-caption">Configuration setup.</figcaption></figure>



<p class="wp-block-paragraph">6. <strong>Verify service</strong>.</p>



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



<p class="wp-block-paragraph">7. <strong>Allow firewall</strong>.</p>



<ul class="wp-block-list">
<li>Open <strong>Windows Defender Firewall</strong> → Inbound Rules → New Rule → Port → TCP 10050 → Allow → All profiles → Name: Zabbix Agent 2</li>
</ul>



<h2 class="wp-block-heading">Verification &amp; Troubleshooting</h2>



<figure class="wp-block-table"><table class="has-fixed-layout"><tbody><tr><th>Check</th><th>Command / Location</th></tr><tr><td>Linux agent status</td><td><code>sudo systemctl status zabbix-agent2</code></td></tr><tr><td>Windows agent service</td><td><code>sc query "Zabbix Agent 2"</code></td></tr><tr><td>Linux firewall ports</td><td><code>sudo firewall-cmd --list-ports</code></td></tr><tr><td>Windows firewall rule</td><td>Check Inbound Rule for TCP 10050 in Windows Defender Firewall</td></tr><tr><td>Agent logs (Windows)</td><td><code>C:\Program Files\Zabbix Agent 2\zabbix_agent2.log</code></td></tr><tr><td>Connectivity issues</td><td>Ensure Server IP and Hostname match in config, and that the firewall allows TCP/10050</td></tr></tbody></table></figure>



<p class="wp-block-paragraph">You&#8217;re all set! Your system is now ready to be monitored with Nagios&nbsp;XI. To learn more about the Zabbix Agent Wizard, take a look at this article: <a href="https://library.nagios.com/tutorials/the-zabbix-agent-wizard-nagios-xi/" target="_blank" rel="noreferrer noopener">How to Use the Zabbix Agent Wizard in Nagios XI</a>.</p>



<p class="wp-block-paragraph">Weighing Zabbix against other monitoring platforms? See <a href="https://library.nagios.com/solutions/nagios-vs-zabbix/">Zabbix vs. Nagios: Which Monitoring Solution Is Right for Your Organization?</a> for a side-by-side comparison.</p>

]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>Centralized Log Monitoring for AlmaLinux 9 with Nagios Log Server 2024R2: A Complete Guide</title>
		<link>https://library.nagios.com/tutorials/centralized-log-monitoring-for-almalinux-9-with-nagios-log-server-2024r2-a-complete-guide/</link>
		
		<dc:creator><![CDATA[Ayub Huruse]]></dc:creator>
		<pubDate>Tue, 01 Apr 2025 13:12:14 +0000</pubDate>
				<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[Monitoring]]></category>
		<category><![CDATA[AlamaLinux]]></category>
		<category><![CDATA[AlmaLinux 9]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Operating System Monitoring]]></category>
		<guid isPermaLink="false">https://library.nagios.com/?p=53935</guid>

					<description><![CDATA[AlmaLinux 9 is a community-driven, enterprise-grade Linux distribution designed for stability and performance. Monitoring system logs from AlmaLinux servers is critical for detecting issues, ensuring security, and maintaining compliance. Nagios Log Server 2024R2 offers a centralized platform to collect, search, and analyze log data across your infrastructure. This guide walks you through configuring AlmaLinux 9 [&#8230;]]]></description>
										<content:encoded><![CDATA[
<p class="wp-block-paragraph">AlmaLinux 9 is a community-driven, enterprise-grade Linux distribution designed for stability and performance. Monitoring system logs from AlmaLinux servers is critical for detecting issues, ensuring security, and maintaining compliance. <a href="https://www.nagios.com/products/nagios-log-server/" target="_blank" rel="noopener">Nagios Log Server</a> 2024R2 offers a centralized platform to collect, search, and analyze log data across your infrastructure. This guide walks you through configuring AlmaLinux 9 to forward logs to Nagios Log Server using the built-in rsyslog service.</p>



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



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



<ul class="wp-block-list">
<li>An AlmaLinux 9 server with root or sudo access</li>



<li>A running Nagios Log Server 2024R2 instance</li>



<li>Network connectivity between the AlmaLinux server and Log Server (default port 5544 open)</li>



<li>SELinux disabled or properly configured for rsyslog</li>
</ul>



<h2 class="wp-block-heading">Step 1: Access Log Source Setup in Nagios Log Server</h2>



<p class="wp-block-paragraph">1. Log into your Nagios Log Server web interface.</p>



<p class="wp-block-paragraph">2. Click the <strong>+</strong> button in the left sidebar and the one at the bottom.</p>



<figure class="wp-block-image size-large"><a href="https://library.nagios.com/wp-content/uploads/2025/04/Screenshot-2025-08-22-155715.png"><img loading="lazy" decoding="async" width="1024" height="313" src="https://library.nagios.com/wp-content/uploads/2025/04/Screenshot-2025-08-22-155715-1024x313.png" alt="Screenshot 2025 08 22 155715" class="wp-image-63128" title="Centralized Log Monitoring for AlmaLinux 9 with Nagios Log Server 2024R2: A Complete Guide 5" srcset="https://library.nagios.com/wp-content/uploads/2025/04/Screenshot-2025-08-22-155715-1024x313.png 1024w, https://library.nagios.com/wp-content/uploads/2025/04/Screenshot-2025-08-22-155715-300x92.png 300w, https://library.nagios.com/wp-content/uploads/2025/04/Screenshot-2025-08-22-155715-768x235.png 768w, https://library.nagios.com/wp-content/uploads/2025/04/Screenshot-2025-08-22-155715-1536x469.png 1536w, https://library.nagios.com/wp-content/uploads/2025/04/Screenshot-2025-08-22-155715.png 1872w" sizes="(max-width: 1024px) 100vw, 1024px" /></a><figcaption class="wp-element-caption">+ Add Log Source</figcaption></figure>



<h2 class="wp-block-heading">Step 2: Run the Auto-Configuration Script on AlmaLinux 9</h2>



<p class="wp-block-paragraph">1. Copy the setup script command shown in the Nagios interface. It looks similar 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>curl -sS -O http://&lt;logserver-ip>/nagioslogserver/scripts/setup-linux.sh
sudo bash setup-linux.sh -s &lt;logserver-ip> -p 5544</textarea></pre><svg xmlns="http://www.w3.org/2000/svg" style="width:24px;height:24px" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2"><path class="with-check" stroke-linecap="round" stroke-linejoin="round" d="M4.5 12.75l6 6 9-13.5"></path><path class="without-check" stroke-linecap="round" stroke-linejoin="round" d="M16.5 8.25V6a2.25 2.25 0 00-2.25-2.25H6A2.25 2.25 0 003.75 6v8.25A2.25 2.25 0 006 16.5h2.25m8.25-8.25H18a2.25 2.25 0 012.25 2.25V18A2.25 2.25 0 0118 20.25h-7.5A2.25 2.25 0 018.25 18v-1.5m8.25-8.25h-6a2.25 2.25 0 00-2.25 2.25v6"></path></svg></span><pre class="shiki dark-plus" style="background-color: #1E1E1E" tabindex="0"><code><span class="line"><span style="color: #D4D4D4">curl -sS -O http://&lt;logserver-ip&gt;/nagioslogserver/scripts/setup-linux.sh</span></span>
<span class="line"><span style="color: #D4D4D4">sudo bash setup-linux.sh -s &lt;logserver-ip&gt; -p 5544</span></span></code></pre></div>



<ul class="wp-block-list">
<li>Replace <code>&lt;logserver-ip&gt;</code> with the IP or DNS name of your Nagios Log Server.</li>
</ul>



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



<p class="wp-block-paragraph">3. Confirm the script output shows successful configuration:</p>



<ul class="wp-block-list">
<li>&#8220;Detected rsyslog&#8230;&#8221;</li>



<li>&#8220;rsyslog configuration check passed.&#8221;</li>



<li>&#8220;rsyslog is running with the new configuration.&#8221;</li>
</ul>



<h2 class="wp-block-heading">Step 3: Verify Logs Are Reaching Nagios Log Server</h2>



<p class="wp-block-paragraph">1. In the Nagios Log Server web UI, enter the AlmaLinux server&#8217;s IP under <strong>Verify Incoming Logs</strong>.</p>



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



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



<p class="wp-block-paragraph">4. Verify the entry appears in the Nagios Log Server interface.</p>



<figure class="wp-block-image size-full"><a href="https://library.nagios.com/wp-content/uploads/2025/04/Screenshot-2025-08-25-154210.png"><img loading="lazy" decoding="async" width="1906" height="976" src="https://library.nagios.com/wp-content/uploads/2025/04/Screenshot-2025-08-25-154210.png" alt="Screenshot 2025 08 25 154210" class="wp-image-63149" title="Centralized Log Monitoring for AlmaLinux 9 with Nagios Log Server 2024R2: A Complete Guide 6" srcset="https://library.nagios.com/wp-content/uploads/2025/04/Screenshot-2025-08-25-154210.png 1906w, https://library.nagios.com/wp-content/uploads/2025/04/Screenshot-2025-08-25-154210-300x154.png 300w, https://library.nagios.com/wp-content/uploads/2025/04/Screenshot-2025-08-25-154210-1024x524.png 1024w, https://library.nagios.com/wp-content/uploads/2025/04/Screenshot-2025-08-25-154210-768x393.png 768w, https://library.nagios.com/wp-content/uploads/2025/04/Screenshot-2025-08-25-154210-1536x787.png 1536w" sizes="(max-width: 1906px) 100vw, 1906px" /></a><figcaption class="wp-element-caption">log entry </figcaption></figure>



<h2 class="wp-block-heading">Optional: Manual rsyslog Configuration (Advanced)</h2>



<p class="wp-block-paragraph">If you prefer not to use the script, follow these steps:</p>



<p class="wp-block-paragraph">1. Create a custom rsyslog config file:</p>



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



<p class="wp-block-paragraph">2. Add the following content (replace IP and port as needed):</p>



<div class="wp-block-kevinbatdorf-code-block-pro" data-code-block-pro-font-family="Code-Pro-Geist-Mono" style="font-size:.875rem;font-family:Code-Pro-Geist-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:1.5rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)"><span role="button" tabindex="0" style="color:#D4D4D4;display:none" aria-label="Copy" class="code-block-pro-copy-button"><pre class="code-block-pro-copy-button-pre" aria-hidden="true"><textarea class="code-block-pro-copy-button-textarea" tabindex="-1" aria-hidden="true" readonly># ### begin forwarding rule ### NAGIOSLOGSERVER
$WorkDirectory /var/lib/rsyslog
$ActionQueueFileName fwdRule1
$ActionQueueMaxDiskSpace 1g
$ActionQueueSaveOnShutdown on
$ActionQueueType LinkedList
$ActionResumeRetryCount -1
*.* @@192.168.1.123:5544
# ### end of the forwarding rule ###</textarea></pre><svg xmlns="http://www.w3.org/2000/svg" style="width:24px;height:24px" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2"><path class="with-check" stroke-linecap="round" stroke-linejoin="round" d="M4.5 12.75l6 6 9-13.5"></path><path class="without-check" stroke-linecap="round" stroke-linejoin="round" d="M16.5 8.25V6a2.25 2.25 0 00-2.25-2.25H6A2.25 2.25 0 003.75 6v8.25A2.25 2.25 0 006 16.5h2.25m8.25-8.25H18a2.25 2.25 0 012.25 2.25V18A2.25 2.25 0 0118 20.25h-7.5A2.25 2.25 0 018.25 18v-1.5m8.25-8.25h-6a2.25 2.25 0 00-2.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"># ### begin forwarding rule ### NAGIOSLOGSERVER</span></span>
<span class="line"><span style="color: #D4D4D4">$WorkDirectory /var/lib/rsyslog</span></span>
<span class="line"><span style="color: #D4D4D4">$ActionQueueFileName fwdRule1</span></span>
<span class="line"><span style="color: #D4D4D4">$ActionQueueMaxDiskSpace 1g</span></span>
<span class="line"><span style="color: #D4D4D4">$ActionQueueSaveOnShutdown on</span></span>
<span class="line"><span style="color: #D4D4D4">$ActionQueueType LinkedList</span></span>
<span class="line"><span style="color: #D4D4D4">$ActionResumeRetryCount -1</span></span>
<span class="line"><span style="color: #D4D4D4">*.* @@192.168.1.123:5544</span></span>
<span class="line"><span style="color: #D4D4D4"># ### end of the forwarding rule ###</span></span></code></pre></div>



<p class="wp-block-paragraph">3. Restart rsyslog:</p>



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



<p class="wp-block-paragraph">4. Verify logs are received as in Step 3.</p>



<h2 class="wp-block-heading" id="section-7">Step 4: Adding More Log Sources</h2>



<p class="wp-block-paragraph">Use the&nbsp;<strong>+ Add Log Source</strong>&nbsp;button to configure:</p>



<ul class="wp-block-list">
<li>Network Device</li>



<li>Application Logs</li>



<li>Archived logs</li>
</ul>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="529" src="https://library.nagios.com/wp-content/uploads/2025/04/Screenshot-2025-08-22-155127-1024x529.png" alt="Screenshot 2025 08 22 155127" class="wp-image-63127" title="Centralized Log Monitoring for AlmaLinux 9 with Nagios Log Server 2024R2: A Complete Guide 7" srcset="https://library.nagios.com/wp-content/uploads/2025/04/Screenshot-2025-08-22-155127-1024x529.png 1024w, https://library.nagios.com/wp-content/uploads/2025/04/Screenshot-2025-08-22-155127-300x155.png 300w, https://library.nagios.com/wp-content/uploads/2025/04/Screenshot-2025-08-22-155127-768x397.png 768w, https://library.nagios.com/wp-content/uploads/2025/04/Screenshot-2025-08-22-155127-1536x794.png 1536w, https://library.nagios.com/wp-content/uploads/2025/04/Screenshot-2025-08-22-155127.png 1864w" sizes="(max-width: 1024px) 100vw, 1024px" /><figcaption class="wp-element-caption">Add Log Source</figcaption></figure>



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



<p class="wp-block-paragraph">You’ve successfully configured AlmaLinux 9 to send logs to Nagios Log Server 2024R2. Whether using the automatic script or manual configuration, this setup allows centralized logging, simplifying monitoring and analysis. For advanced use cases, explore custom filtering, alerting, and integrations in the Nagios Log Server interface.</p>



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



<ul class="wp-block-list">
<li><a href="https://support.nagios.com/kb/category.php?id=198" target="_blank" rel="noopener">Nagios Log Server Knowledgebase</a></li>



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



<li><a href="https://wiki.almalinux.org/" target="_blank" rel="noopener">AlmaLinux Documentation</a></li>
</ul>



<p class="wp-block-paragraph"></p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>Monitoring Pop!_OS 24.04 LTS with NCPA in Nagios XI: A Comprehensive Guide</title>
		<link>https://library.nagios.com/documentation/monitoring-pop_os-24-04-lts-with-ncpa-in-nagios-xi-a-comprehensive-guide/</link>
		
		<dc:creator><![CDATA[Ayoub Louragli]]></dc:creator>
		<pubDate>Mon, 31 Mar 2025 21:56:39 +0000</pubDate>
				<category><![CDATA[Documentation]]></category>
		<category><![CDATA[Monitoring]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[NCPA]]></category>
		<category><![CDATA[Operating System Monitoring]]></category>
		<category><![CDATA[Pop!_OS]]></category>
		<guid isPermaLink="false">https://library.nagios.com/?p=53922</guid>

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



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



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



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



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



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



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



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



<p class="wp-block-paragraph">Since Pop!_OS is Ubuntu-based, the DEB package method is recommended:</p>



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



<p class="wp-block-paragraph">Resolve dependency issues if encountered:</p>



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



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



<p class="wp-block-paragraph">NCPA requires an authentication token (community string):</p>



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



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



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



<p class="wp-block-paragraph">to a secure, unique token:</p>



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



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



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



<p class="wp-block-paragraph">Apply the new configuration:</p>



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



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



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



<p class="wp-block-paragraph">Allow NCPA communication on port 5693:</p>



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



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



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



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



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



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



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



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



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



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



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



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



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



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



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



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



<ul class="wp-block-list">
<li><strong>NCPA not running:</strong></li>
</ul>



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



<ul class="wp-block-list">
<li><strong>Firewall Issues:</strong></li>
</ul>



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



<ul class="wp-block-list">
<li><strong>Token mismatch:</strong></li>
</ul>



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



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



<ul class="wp-block-list">
<li><strong>Checking logs:</strong></li>
</ul>



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



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



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



<p class="wp-block-paragraph"></p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>Monitoring Clear Linux with SNMP in Nagios XI: A Step-by-Step Guide</title>
		<link>https://library.nagios.com/tutorials/monitoring-clear-linux-with-snmp-in-nagios-xi-a-step-by-step-guide/</link>
		
		<dc:creator><![CDATA[Ayub Huruse]]></dc:creator>
		<pubDate>Mon, 31 Mar 2025 21:45:05 +0000</pubDate>
				<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[Monitoring]]></category>
		<category><![CDATA[Clear Linux]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Operating System Monitoring]]></category>
		<category><![CDATA[SNMP]]></category>
		<guid isPermaLink="false">https://library.nagios.com/?p=53863</guid>

					<description><![CDATA[Clear Linux, developed by Intel, is a high-performance, stateless Linux distribution optimized for Intel hardware. Although not based on traditional RPM or DEB systems, Clear Linux supports standard tools like net-snmp, making it possible to monitor using SNMP. This guide shows how to install, configure, and integrate SNMP with Nagios XI for agentless monitoring of [&#8230;]]]></description>
										<content:encoded><![CDATA[
<p class="wp-block-paragraph">Clear Linux, developed by Intel, is a high-performance, stateless Linux distribution optimized for Intel hardware. Although not based on traditional RPM or DEB systems, Clear Linux supports standard tools like <code>net-snmp</code>, making it possible to monitor using SNMP. This guide shows how to install, configure, and integrate SNMP with Nagios XI for agentless monitoring of your Clear Linux system.</p>



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



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



<ul class="wp-block-list">
<li>A Clear Linux system updated with <code>sudo swupd update</code></li>



<li>Sudo or root access on the Clear Linux system</li>



<li>Nagios XI installed and reachable</li>



<li>Network connectivity between Clear Linux and Nagios XI (UDP port 161 open)</li>
</ul>



<h2 class="wp-block-heading">Step 1: Install SNMP Tools on Clear Linux</h2>



<p class="wp-block-paragraph">Clear Linux doesn’t include SNMP utilities by default. Install them:</p>



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



<p class="wp-block-paragraph">Then install SNMP 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>sudo swupd bundle-add package-utils
curl -O https://download-ib01.fedoraproject.org/pub/epel/7/x86_64/Packages/n/net-snmp-5.7.2-49.el7.x86_64.rpm
rpm2cpio net-snmp-5.7.2-49.el7.x86_64.rpm | cpio -idmv
sudo cp -r ./usr/* /usr/</textarea></pre><svg xmlns="http://www.w3.org/2000/svg" style="width:24px;height:24px" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2"><path class="with-check" stroke-linecap="round" stroke-linejoin="round" d="M4.5 12.75l6 6 9-13.5"></path><path class="without-check" stroke-linecap="round" stroke-linejoin="round" d="M16.5 8.25V6a2.25 2.25 0 00-2.25-2.25H6A2.25 2.25 0 003.75 6v8.25A2.25 2.25 0 006 16.5h2.25m8.25-8.25H18a2.25 2.25 0 012.25 2.25V18A2.25 2.25 0 0118 20.25h-7.5A2.25 2.25 0 018.25 18v-1.5m8.25-8.25h-6a2.25 2.25 0 00-2.25 2.25v6"></path></svg></span><pre class="shiki dark-plus" style="background-color: #1E1E1E" tabindex="0"><code><span class="line"><span style="color: #D4D4D4">sudo swupd bundle-add package-utils</span></span>
<span class="line"><span style="color: #D4D4D4">curl -O https://download-ib01.fedoraproject.org/pub/epel/7/x86_64/Packages/n/net-snmp-5.7.2-49.el7.x86_64.rpm</span></span>
<span class="line"><span style="color: #D4D4D4">rpm2cpio net-snmp-5.7.2-49.el7.x86_64.rpm | cpio -idmv</span></span>
<span class="line"><span style="color: #D4D4D4">sudo cp -r ./usr/* /usr/</span></span></code></pre></div>



<p class="wp-block-paragraph">Note: Use the latest compatible SNMP RPM or build from source if preferred.</p>



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



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



<ol class="wp-block-list">
<li>Create a new config file:</li>
</ol>



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



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



<p class="wp-block-paragraph">To run it as a background process, remove <code>-f</code>.</p>



<h3 class="wp-block-heading">SNMP v3 Configuration (Optional)</h3>



<p class="wp-block-paragraph">SNMP v3 requires a more complex setup. Use net-snmp utilities to create a user:</p>



<div class="wp-block-kevinbatdorf-code-block-pro" data-code-block-pro-font-family="Code-Pro-Geist-Mono" style="font-size:.875rem;font-family:Code-Pro-Geist-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:1.5rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)"><span role="button" tabindex="0" style="color:#D4D4D4;display:none" aria-label="Copy" class="code-block-pro-copy-button"><pre 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 net-snmp-create-v3-user -ro -a SHA -A Str0ng@uth3ntic@ti0n -x AES -X Str0ngPriv@cy 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: #D4D4D4">sudo net-snmp-create-v3-user -ro -a SHA -A Str0ng@uth3ntic@ti0n -x AES -X Str0ngPriv@cy nagios</span></span></code></pre></div>



<p class="wp-block-paragraph">This may require additional scripting or compiling from source.</p>



<h2 class="wp-block-heading">Step 3: Open the SNMP Port (UDP 161)</h2>



<p class="wp-block-paragraph">Clear Linux typically uses <code>iptables</code>. Allow SNMP traffic:</p>



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



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



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



<h2 class="wp-block-heading">Step 4: Test SNMP Communication</h2>



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



<h3 class="wp-block-heading">SNMP v2c:</h3>



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



<h3 class="wp-block-heading">SNMP v3:</h3>



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



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



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



<h2 class="wp-block-heading">Step 5: Add Host in Nagios XI Using SNMP Wizard</h2>



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



<li>Navigate to <strong>Configure &gt; Run a configuring wizard</strong></li>



<li>Select <strong>Linux SNMP</strong></li>



<li>Enter the Clear Linux IP and SNMP credentials</li>



<li>Choose metrics (CPU, memory, disk, etc.)</li>



<li>Apply and save configuration</li>
</ol>



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



<ul class="wp-block-list">
<li><strong>SNMP Daemon Not Running</strong>: <code>ps aux | grep snmpd</code></li>



<li><strong>Firewall Blocking Traffic</strong>: Ensure port 161 is open and rules are persistent</li>



<li><strong>Permission Issues</strong>: Verify <code>snmpd.conf</code> is readable and SNMP is correctly installed</li>
</ul>



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



<p class="wp-block-paragraph">Clear Linux can be monitored via SNMP with a few workarounds despite its stateless design. Once configured, Nagios XI provides deep insight into your system using lightweight, agentless checks.</p>



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



<ul class="wp-block-list">
<li><a href="https://support.nagios.com/kb/article/nagios-xi-using-the-linux-snmp-wizard-512.html" target="_blank" rel="noopener">Nagios SNMP Guide</a></li>



<li><a href="http://www.net-snmp.org/docs/" target="_blank" rel="noopener">Net-SNMP Docs</a></li>



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



<p class="wp-block-paragraph"></p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>Monitoring NixOS with SNMP in Nagios XI: A Step-by-Step Guide</title>
		<link>https://library.nagios.com/tutorials/monitoring-nixos-with-snmp-in-nagios-xi-a-step-by-step-guide/</link>
		
		<dc:creator><![CDATA[Ayub Huruse]]></dc:creator>
		<pubDate>Mon, 31 Mar 2025 21:01:48 +0000</pubDate>
				<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[Monitoring]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[NixOS]]></category>
		<category><![CDATA[Operating System Monitoring]]></category>
		<category><![CDATA[SNMP]]></category>
		<guid isPermaLink="false">https://library.nagios.com/?p=53859</guid>

					<description><![CDATA[NixOS is a distinctive Linux distribution focused on reproducibility and declarative configuration, utilizing the Nix package manager. Unlike traditional distributions, NixOS doesn’t follow conventional package management workflows, but it supports SNMP (Simple Network Management Protocol) for agentless monitoring. This guide details installing SNMP on NixOS, configuring SNMP v2c or v3, and integrating it with Nagios [&#8230;]]]></description>
										<content:encoded><![CDATA[
<p class="wp-block-paragraph">NixOS is a distinctive Linux distribution focused on reproducibility and declarative configuration, utilizing the Nix package manager. Unlike traditional distributions, NixOS doesn’t follow conventional package management workflows, but it supports SNMP (Simple Network Management Protocol) for agentless monitoring. This guide details installing SNMP on NixOS, configuring SNMP v2c or v3, and integrating it with Nagios XI for real-time monitoring of system metrics like CPU, memory, disk, and network usage as of March 2025.</p>



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



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



<ul class="wp-block-list">
<li>A NixOS system (updated with <code>sudo nix-channel --update &amp;&amp; sudo nixos-rebuild switch</code>) with <code>sudo</code> or root access.</li>



<li>A running Nagios XI instance (latest version recommended).</li>



<li>Network connectivity between NixOS and Nagios XI (UDP port 161 open).</li>



<li>Access to edit <code>/etc/nixos/configuration.nix</code>.</li>
</ul>



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



<h3 class="wp-block-heading">Option 1: Imperative Installation (For Testing)</h3>



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



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



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



<h3 class="wp-block-heading">Option 2: Declarative Installation (Recommended)</h3>



<p class="wp-block-paragraph">Add to <code>/etc/nixos/configuration.nix</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>environment.systemPackages = with pkgs; &#91; net-snmp &#93;;</textarea></pre><svg xmlns="http://www.w3.org/2000/svg" style="width:24px;height:24px" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2"><path class="with-check" stroke-linecap="round" stroke-linejoin="round" d="M4.5 12.75l6 6 9-13.5"></path><path class="without-check" stroke-linecap="round" stroke-linejoin="round" d="M16.5 8.25V6a2.25 2.25 0 00-2.25-2.25H6A2.25 2.25 0 003.75 6v8.25A2.25 2.25 0 006 16.5h2.25m8.25-8.25H18a2.25 2.25 0 012.25 2.25V18A2.25 2.25 0 0118 20.25h-7.5A2.25 2.25 0 018.25 18v-1.5m8.25-8.25h-6a2.25 2.25 0 00-2.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">environment.systemPackages = with pkgs; &#91; net-snmp &#93;;</span></span></code></pre></div>



<p class="wp-block-paragraph">Apply changes:</p>



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



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



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



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



<h3 class="wp-block-heading">Option 1: SNMP v2c</h3>



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



<p class="wp-block-paragraph">Replace <code>&lt;Nagios-XI-IP&gt;</code> with your Nagios XI server IP (e.g., <code>10.25.5.12</code>).</p>



<h3 class="wp-block-heading">Option 2: SNMP v3 (Secure)</h3>



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



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



<h3 class="wp-block-heading">Declarative Method (Recommended)</h3>



<p class="wp-block-paragraph">Add to <code>/etc/nixos/configuration.nix</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>networking.firewall.allowedUDPPorts = &#91; 161 &#93;;</textarea></pre><svg xmlns="http://www.w3.org/2000/svg" style="width:24px;height:24px" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2"><path class="with-check" stroke-linecap="round" stroke-linejoin="round" d="M4.5 12.75l6 6 9-13.5"></path><path class="without-check" stroke-linecap="round" stroke-linejoin="round" d="M16.5 8.25V6a2.25 2.25 0 00-2.25-2.25H6A2.25 2.25 0 003.75 6v8.25A2.25 2.25 0 006 16.5h2.25m8.25-8.25H18a2.25 2.25 0 012.25 2.25V18A2.25 2.25 0 0118 20.25h-7.5A2.25 2.25 0 018.25 18v-1.5m8.25-8.25h-6a2.25 2.25 0 00-2.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">networking.firewall.allowedUDPPorts = &#91; 161 &#93;;</span></span></code></pre></div>



<p class="wp-block-paragraph">Apply changes:</p>



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



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



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



<h3 class="wp-block-heading">Imperative Method (Temporary)</h3>



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



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



<p class="wp-block-paragraph">Add to <code>/etc/nixos/configuration.nix</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>systemd.services.snmpd = {
  description = "SNMP Daemon";
  after = &#91; "network.target" &#93;;
  wantedBy = &#91; "multi-user.target" &#93;;
  serviceConfig = {
    ExecStart = "${pkgs.net-snmp}/bin/snmpd -c /etc/snmp/snmpd.conf";
    Restart = "on-failure";
  };
};</textarea></pre><svg xmlns="http://www.w3.org/2000/svg" style="width:24px;height:24px" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2"><path class="with-check" stroke-linecap="round" stroke-linejoin="round" d="M4.5 12.75l6 6 9-13.5"></path><path class="without-check" stroke-linecap="round" stroke-linejoin="round" d="M16.5 8.25V6a2.25 2.25 0 00-2.25-2.25H6A2.25 2.25 0 003.75 6v8.25A2.25 2.25 0 006 16.5h2.25m8.25-8.25H18a2.25 2.25 0 012.25 2.25V18A2.25 2.25 0 0118 20.25h-7.5A2.25 2.25 0 018.25 18v-1.5m8.25-8.25h-6a2.25 2.25 0 00-2.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">systemd.services.snmpd = {</span></span>
<span class="line"><span style="color: #D4D4D4">  description = &quot;SNMP Daemon&quot;;</span></span>
<span class="line"><span style="color: #D4D4D4">  after = &#91; &quot;network.target&quot; &#93;;</span></span>
<span class="line"><span style="color: #D4D4D4">  wantedBy = &#91; &quot;multi-user.target&quot; &#93;;</span></span>
<span class="line"><span style="color: #D4D4D4">  serviceConfig = {</span></span>
<span class="line"><span style="color: #D4D4D4">    ExecStart = &quot;${pkgs.net-snmp}/bin/snmpd -c /etc/snmp/snmpd.conf&quot;;</span></span>
<span class="line"><span style="color: #D4D4D4">    Restart = &quot;on-failure&quot;;</span></span>
<span class="line"><span style="color: #D4D4D4">  };</span></span>
<span class="line"><span style="color: #D4D4D4">};</span></span></code></pre></div>



<p class="wp-block-paragraph">Apply changes:</p>



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



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



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



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



<p class="wp-block-paragraph">Install SNMP tools on Nagios XI (if needed):</p>



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



<h3 class="wp-block-heading">SNMP v2c</h3>



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



<h3 class="wp-block-heading">SNMP v3</h3>



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



<p class="wp-block-paragraph">Expected output:</p>



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



<h2 class="wp-block-heading">Step 6: Add Host to Nagios XI Using SNMP Wizard</h2>



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



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



<li>Select <strong>Linux SNMP</strong></li>



<li>Configure Host:
<ul class="wp-block-list">
<li>IP: <code>192.168.0.31</code></li>



<li>SNMP Version: <code>v2c</code> or <code>v3</code></li>



<li>v2c Community: <code>Str0ngC0mmunity</code></li>



<li>v3 Username: <code>nagios</code>, Auth Protocol: <code>SHA</code>, Auth Password: <code>Str0ng@uth3ntic@ti0n</code>, Privacy Protocol: <code>AES</code>, Privacy Password: <code>Str0ngPriv@cy</code></li>
</ul>
</li>



<li>Click <strong>Next</strong>, select metrics (CPU, memory, disk, etc.)</li>



<li>Click <strong>Finish</strong> and apply</li>



<li>Verify monitoring in <strong>Monitoring &gt; Hosts</strong></li>
</ol>



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



<h3 class="wp-block-heading">SNMP Not Responding</h3>



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



<h3 class="wp-block-heading">Firewall Issue</h3>



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



<h3 class="wp-block-heading">Log SNMP Output</h3>



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



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



<p class="wp-block-paragraph">You’ve configured SNMP on NixOS and integrated it with Nagios XI for agentless, real-time monitoring as of March 28, 2025. NixOS’s declarative nature requires explicit setup for SNMP, but this approach ensures reliability. For long-term stability, maintain all configurations (packages, firewall, services) in <code>/etc/nixos/configuration.nix</code>. Explore further customization in the <a href="https://support.nagios.com/kb/" target="_blank" rel="noopener">Nagios SNMP Guide</a>, <a href="http://www.net-snmp.org/docs/" target="_blank" rel="noopener">Net-SNMP Documentation</a>, or <a href="https://nixos.org/learn.html" target="_blank" rel="noopener">NixOS Manual</a>.</p>



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

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



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



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



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



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



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



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



<li>On the openSUSE server, run: </li>
</ol>



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



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



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



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



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



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



<li>Or run a host query from <strong>Dashboards > Search</strong>: </li>
</ul>



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



<ul class="wp-block-list">
<li>To test manually, run:</li>
</ul>



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



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



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



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



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



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



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



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



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



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



<p class="wp-block-paragraph">3.Restart rsyslog: </p>



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



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



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



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



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



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



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



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



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



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



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

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



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



<p class="wp-block-paragraph">As root, run:</p>



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



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



<p class="wp-block-paragraph">1. Backup the default configuration:</p>



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



<p class="wp-block-paragraph">2. Replace the configuration with:</p>



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



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



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



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



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



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



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



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



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



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



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



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



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



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



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



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



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



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



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



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



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



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



<p class="wp-block-paragraph">By configuring SNMP on openSUSE 15 and integrating it with Nagios XI, you gain detailed visibility into system performance without installing additional agents. Regularly reviewing Nagios XI dashboards and refining SNMP configurations ensures optimal monitoring and proactive issue resolution.</p>
]]></content:encoded>
					
		
		
			</item>
	</channel>
</rss>
