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

<channel>
	<title>Operating System Monitoring &#8211; Nagios Library</title>
	<atom:link href="https://library.nagios.com/tag/operating-system-monitoring/feed/" rel="self" type="application/rss+xml" />
	<link>https://library.nagios.com</link>
	<description>Complete Nagios monitoring resources and documentation</description>
	<lastBuildDate>Thu, 02 Apr 2026 19:12:39 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.9.4</generator>

<image>
	<url>https://library.nagios.com/wp-content/uploads/2024/11/Nagios-Blue-N.svg</url>
	<title>Operating System Monitoring &#8211; Nagios Library</title>
	<link>https://library.nagios.com</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>Nagios Fusion 2026R1: Discover The Dawn of Centralized Management</title>
		<link>https://library.nagios.com/solutions/nagios-fusion-2026r1-whats-new/</link>
		
		<dc:creator><![CDATA[Shamas Demoret]]></dc:creator>
		<pubDate>Wed, 19 Nov 2025 14:45:00 +0000</pubDate>
				<category><![CDATA[Solutions]]></category>
		<category><![CDATA[Nagios Updates]]></category>
		<category><![CDATA[Application & Server Monitoring]]></category>
		<category><![CDATA[Configuration]]></category>
		<category><![CDATA[Network Monitoring]]></category>
		<category><![CDATA[Operating System Monitoring]]></category>
		<guid isPermaLink="false">https://library.nagios.com/?p=65307</guid>

					<description><![CDATA[Nagios Fusion 2026R1 marks an important first step in an exciting new direction for Fusion: centralized management of other Nagios systems. Also included in this release is a new System Profile function and several issue fixes. In this article we&#8217;ll explore all of the updates. Centralized User Management Fusion has always provided a lot of [&#8230;]]]></description>
										<content:encoded><![CDATA[
<p>Nagios Fusion 2026R1 marks an important first step in an exciting new direction for Fusion: centralized management of other Nagios systems. Also included in this release is a new System Profile function and several issue fixes. In this article we&#8217;ll explore all of the updates.</p>



<h2 class="wp-block-heading">Centralized User Management</h2>



<p>Fusion has always provided a lot of value by enabling users to visualize status data from across their distributed Nagios deployments. It&#8217;s already a must-have for distributed environments and users who employ multiple Nagios Monitoring Solutions. Namely, Fusion&#8217;s ability to aggregate data from Nagios XI, Nagios Core, Nagios Log Server, and Nagios Network Analyzer systems and display it in custom dashboards and tactical displays. But one area of untapped potential has always been in serving as a platform for centralized management of other Nagios systems.</p>



<p>No longer is that the case! New in 2026R1 is the ability to copy users from one fused Nagios XI system to others with a few clicks, using the new Centralized Management menu. Although a humble first step, this new feature lays the foundation that will be used going forward to enable many more management capabilities in the future.</p>



<figure class="wp-block-image size-large"><img fetchpriority="high" decoding="async" width="1024" height="431" src="https://library.nagios.com/wp-content/uploads/2025/11/choosing-users-1024x431.png" alt="Screenshot of the Centralized User Management menu in Nagios Fusion, showing a list of users on a fused Nagios XI server." class="wp-image-65342" title="Nagios Fusion 2026R1: Discover The Dawn of Centralized Management 1" srcset="https://library.nagios.com/wp-content/uploads/2025/11/choosing-users-1024x431.png 1024w, https://library.nagios.com/wp-content/uploads/2025/11/choosing-users-300x126.png 300w, https://library.nagios.com/wp-content/uploads/2025/11/choosing-users-768x324.png 768w, https://library.nagios.com/wp-content/uploads/2025/11/choosing-users.png 1334w" sizes="(max-width: 1024px) 100vw, 1024px" /><figcaption class="wp-element-caption">Copy users from one XI to others in seconds with Centralized Users Management.</figcaption></figure>



<p>Learn more about using the Centralized User Management function:</p>



<p><a href="https://assets.nagios.com/downloads/nagiosfusion/docs/Managing-Nagios-XI-Users-with-Nagios-Fusion-2026.pdf" target="_blank" rel="noreferrer noopener">Managing Nagios XI Users with Nagios Fusion </a></p>



<p>As an added bonus, this addition also necessitated adding a new update users&#8217; endpoint (<code>PUT/system/user</code>) to the Nagios XI API, so both solutions were enhanced in the process.</p>



<h2 class="wp-block-heading">System Profile</h2>



<p>You&#8217;ll also notice a new System Profile menu, which can be used to generate and download a profile with a single click. The System Profile zip contains a wealth of data about your setup and serves as an invaluable resource for troubleshooting and support.</p>



<figure class="wp-block-image size-full"><img decoding="async" width="771" height="339" src="https://library.nagios.com/wp-content/uploads/2025/11/system-profile.png" alt="Screenshot of the new System Profile menu in Nagios Fusion 2026R1." class="wp-image-65344" title="Nagios Fusion 2026R1: Discover The Dawn of Centralized Management 2" srcset="https://library.nagios.com/wp-content/uploads/2025/11/system-profile.png 771w, https://library.nagios.com/wp-content/uploads/2025/11/system-profile-300x132.png 300w, https://library.nagios.com/wp-content/uploads/2025/11/system-profile-768x338.png 768w" sizes="(max-width: 771px) 100vw, 771px" /><figcaption class="wp-element-caption">Export a comprehensive System Profile with a single click. </figcaption></figure>



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



<p>Several issues were also resolved in this release to make Fusion more stable and reliable:</p>



<ul class="wp-block-list">
<li>Server polling interval is now being updated properly.</li>



<li>The Administrator and User Guides are now being displayed correctly.</li>



<li>The <code>ssl_hostname_verify</code> parameter is now being passed when adding a server via the API.</li>



<li>Users located in AD groups will now show up in the &#8220;Add User from AD/LDAP&#8221; page.</li>
</ul>



<h2 class="wp-block-heading">Learn More</h2>



<p>This article is a great resource for learning more about all of the capabilities: </p>



<div class="wp-block-buttons is-layout-flex wp-block-buttons-is-layout-flex">
<div class="wp-block-button"><a class="wp-block-button__link wp-element-button" href="https://library.nagios.com/solutions/nagios-fusion-comprehensive-vigilance/" target="_blank" rel="noreferrer noopener">Fuse This: Use Nagios Fusion for Comprehensive Vigilance</a></div>
</div>



<div style="height:30px" aria-hidden="true" class="wp-block-spacer"></div>



<p>If you&#8217;re not currently using Nagios Fusion and would like to take it for a spin, you can find the free, fully functional trial options:</p>



<div class="wp-block-buttons is-layout-flex wp-block-buttons-is-layout-flex">
<div class="wp-block-button"><a class="wp-block-button__link wp-element-button" href="https://www.nagios.com/products/nagios-fusion/downloads/" target="_blank" rel="noreferrer noopener">Nagios Fusion Downloads</a></div>
</div>



<div style="height:30px" aria-hidden="true" class="wp-block-spacer"></div>



<p>The Admin Guide is another excellent resource for learning how to manage and get the most out of all of the capabilities:</p>



<div class="wp-block-buttons is-layout-flex wp-block-buttons-is-layout-flex">
<div class="wp-block-button"><a class="wp-block-button__link wp-element-button" href="https://assets.nagios.com/downloads/nagiosfusion/guides/administrator/" target="_blank" rel="noreferrer noopener">Nagios Fusion Admin Guide</a></div>
</div>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>What&#8217;s New in Nagios XI 2024R2</title>
		<link>https://library.nagios.com/nagios-updates/whats-new-in-nagios-xi-2024r2/</link>
		
		<dc:creator><![CDATA[Shamas Demoret]]></dc:creator>
		<pubDate>Wed, 09 Jul 2025 14:00:00 +0000</pubDate>
				<category><![CDATA[Nagios Updates]]></category>
		<category><![CDATA[Solutions]]></category>
		<category><![CDATA[Configuration]]></category>
		<category><![CDATA[Network Monitoring]]></category>
		<category><![CDATA[Operating System Monitoring]]></category>
		<category><![CDATA[System Updates]]></category>
		<guid isPermaLink="false">https://library.nagios.com/?p=60473</guid>

					<description><![CDATA[Nagios XI 2024R2 introduces a variety of fixes, updates, features, and enhancements that are sure to prove of value. Let's take a look! ]]></description>
										<content:encoded><![CDATA[
<p>Nagios XI 2024R2 introduces a variety of fixes, updates, features, security patches, and enhancements that are sure to prove of value. In this article, we&#8217;ll take a quick look at what&#8217;s new in R2 and provide links to related documentation so you can get started with the new features right away. Let&#8217;s take a look!</p>



<h2 class="wp-block-heading">New Monitoring Wizards</h2>



<p>Three great new wizards join the ranks in XI 2024R2: Kubernetes, Zabbix Agent, and the Generic Plugin Wizard. We&#8217;ve also updated the NSClient++ Wizard.</p>



<h3 class="wp-block-heading">Kubernetes with NCPA</h3>



<p>This Premium wizard enables you to monitor Kubernetes clusters via the NCPA agent. Available metrics include Nodes Active, Daemon Sets, Deployments, Jobs Failed, Pod Restarts, Replica Sets, Stateful Sets, TLS, PVC, and Unbound PVS. You can learn more about the initial setup here:</p>



<p><a href="https://assets.nagios.com/downloads/nagiosxi/docs/Monitoring-Kubernetes-Clusters-with-Nagios-XI-and-NCPA.pdf" target="_blank" rel="noopener">Monitoring Kubernetes Clusters with Nagios XI and NCPA </a></p>



<figure class="wp-block-image size-large"><img decoding="async" width="1024" height="510" src="https://library.nagios.com/wp-content/uploads/2025/07/K8s-services-1024x510.png" alt="Screenshot of Step 2 of the Kubernetes with NCPA Wizard in Nagios XI 2024R2" class="wp-image-60506" title="What&#039;s New in Nagios XI 2024R2 3" srcset="https://library.nagios.com/wp-content/uploads/2025/07/K8s-services-1024x510.png 1024w, https://library.nagios.com/wp-content/uploads/2025/07/K8s-services-300x149.png 300w, https://library.nagios.com/wp-content/uploads/2025/07/K8s-services-768x382.png 768w, https://library.nagios.com/wp-content/uploads/2025/07/K8s-services.png 1447w" sizes="(max-width: 1024px) 100vw, 1024px" /><figcaption class="wp-element-caption">A look at some of the monitorable Kubernetes metrics. </figcaption></figure>



<h3 class="wp-block-heading">Zabbix Agent </h3>



<p>With the new Zabbix Agent Wizard, one of XI 2024R2&#8217;s Premium features, you&#8217;ll be able to leverage your existing Windows and Linux Zabbix agents to set up comprehensive monitoring in Nagios XI:</p>



<p><a href="https://assets.nagios.com/downloads/nagiosxi/docs/Monitoring-Zabbix-Agents-with-Nagios-XI.pdf" target="_blank" rel="noopener">Monitoring Zabbix Agents with Nagios XI </a></p>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="933" height="982" src="https://library.nagios.com/wp-content/uploads/2025/07/zabbix-Step-2.png" alt="Screenshot of Step 2 of the Zabbix Wizard in Nagios XI 2024R2" class="wp-image-60507" title="What&#039;s New in Nagios XI 2024R2 4" srcset="https://library.nagios.com/wp-content/uploads/2025/07/zabbix-Step-2.png 933w, https://library.nagios.com/wp-content/uploads/2025/07/zabbix-Step-2-285x300.png 285w, https://library.nagios.com/wp-content/uploads/2025/07/zabbix-Step-2-768x808.png 768w" sizes="(max-width: 933px) 100vw, 933px" /><figcaption class="wp-element-caption">A look at the Zabbix Agent Wizard. </figcaption></figure>



<h3 class="wp-block-heading">Generic Plugin Wizard</h3>



<p>The new Generic Plugin Wizard provides a quick way to set up monitoring using custom plugins. This enables you to create a command to execute your custom plugins, and setup a Nagios check for it without the need to go to the Core Config Manager.</p>



<p>This document provides step-by-step details on using the wizard:</p>



<p><a href="https://assets.nagios.com/downloads/nagiosxi/docs/Using-the-Generic-Plugin-Wizard-in-Nagios-XI.pdf" target="_blank" rel="noreferrer noopener">Using the Generic Plugin Wizard in Nagios XI </a></p>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="518" height="127" src="https://library.nagios.com/wp-content/uploads/2025/07/generic-wizard-xi.png" alt="Generic Wizard" class="wp-image-60539" title="What&#039;s New in Nagios XI 2024R2 5" srcset="https://library.nagios.com/wp-content/uploads/2025/07/generic-wizard-xi.png 518w, https://library.nagios.com/wp-content/uploads/2025/07/generic-wizard-xi-300x74.png 300w" sizes="(max-width: 518px) 100vw, 518px" /></figure>



<h3 class="wp-block-heading">NSClient++ Wizard</h3>



<p>Also worth mentioning is that we added support for <code>check_nrpe</code> to the NSClient++ Wizard and updated its status from Legacy, making it once again a current wizard.</p>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="521" height="128" src="https://library.nagios.com/wp-content/uploads/2025/07/nsclient-wizard-xi.png" alt="NSClient++ Wizard" class="wp-image-60544" title="What&#039;s New in Nagios XI 2024R2 6" srcset="https://library.nagios.com/wp-content/uploads/2025/07/nsclient-wizard-xi.png 521w, https://library.nagios.com/wp-content/uploads/2025/07/nsclient-wizard-xi-300x74.png 300w" sizes="(max-width: 521px) 100vw, 521px" /><figcaption class="wp-element-caption">The NSClient++ Wizard is back to current status. </figcaption></figure>



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



<p>A big request we&#8217;ve seen over time from our users is an SSO option, and we&#8217;re excited to introduce Single Sign-on via Microsoft Azure Active Directory in 2024R2. You can access this feature in <strong>Admin &gt; External Sign-On(SSO)</strong> menu and can learn more about setting it up here:</p>



<p><a href="https://assets.nagios.com/downloads/nagiosxi/docs/Configuring-SSO-in-Nagios-XI.pdf" target="_blank" rel="noopener">Configuring SSO in Nagios XI 2024R2</a></p>



<figure class="wp-block-image size-full is-resized"><img loading="lazy" decoding="async" width="737" height="283" src="https://library.nagios.com/wp-content/uploads/2025/07/SSO.png" alt="Screenshot of the SSO using Microsoft AAD menu in Nagios XI 2024R2" class="wp-image-60504" style="width:596px;height:auto" title="What&#039;s New in Nagios XI 2024R2 7" srcset="https://library.nagios.com/wp-content/uploads/2025/07/SSO.png 737w, https://library.nagios.com/wp-content/uploads/2025/07/SSO-300x115.png 300w" sizes="(max-width: 737px) 100vw, 737px" /><figcaption class="wp-element-caption">The External SSO menu in XI 2024R2.</figcaption></figure>



<h2 class="wp-block-heading">NagVis Enhancements: </h2>



<ul class="wp-block-list">
<li>Most Map elements now have relative positioning</li>



<li>The Edit Map menu can now be accessed with a right-click</li>



<li>Added missing support in NagVis for Nagios custom variables with an NDO backend</li>
</ul>



<h2 class="wp-block-heading">Nagios Core Updated</h2>



<p>The Nagios Core engine at the heart of Nagios XI has been updated to <a href="https://www.nagios.org/projects/nagios-core/4x/" target="_blank" rel="noopener">4.5.9</a>.</p>



<h2 class="wp-block-heading">NCPA v3 Support for Deploy Agent</h2>



<p>The Auto Deployment feature, which enables you to push NCPA (the Nagios Cross Platform Agent) to remote hosts right from the Nagios XI UI, previously only supported NCPA v2, an older version of the agent. Now you can also deploy NCPA v3, the latest version, with the tool. This enables you to take advantage of all of the updates that went into v3, while still leveraging the convenience and centralized control of Auto Deployment. </p>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="350" height="157" src="https://library.nagios.com/wp-content/uploads/2025/07/deploy-ncpa_v3.png" alt="screenshot of the Auto Deployment &gt; Deploy Agent menu, focusing on the Agent Software dropdown for choosing between NCPA v2 and NCPA v3" class="wp-image-60776" title="What&#039;s New in Nagios XI 2024R2 8" srcset="https://library.nagios.com/wp-content/uploads/2025/07/deploy-ncpa_v3.png 350w, https://library.nagios.com/wp-content/uploads/2025/07/deploy-ncpa_v3-300x135.png 300w" sizes="(max-width: 350px) 100vw, 350px" /><figcaption class="wp-element-caption">Now you can auto-deploy NCPA v3. </figcaption></figure>



<h2 class="wp-block-heading">Introducing Premium</h2>



<p>In Nagios XI 2024R2, we&#8217;re introducing a new Premium Features model. Premium Features are a benefit of active license Maintenance. To ensure continued access to these features, we suggest you renew your Nagios XI license annually. In the event that your license expires, simply renew your license, and the full list of Premium Features will regain functionality automatically. The Premium features include:</p>



<ul class="wp-block-list">
<li><strong>Single Sign-On</strong> (SSO) via MS Azure AD</li>



<li>The <strong>Remote Workers</strong> <a href="https://library.nagios.com/techtips/succeed-with-nagios-mod-gearman/">Nagios Mod-Gearman</a> management interface </li>



<li><strong>Premium Wizards</strong>
<ul class="wp-block-list">
<li>Prometheus</li>



<li>vSphere</li>



<li>Oracle Tablespace, Serverspace, and Query</li>



<li>MSSQL Server, Database, and Query</li>



<li>Kubernetes</li>



<li>HyperV</li>



<li>Docker</li>



<li>Cloud VM (DigitalOcean, Google Cloud, Linode, Azure, and Rackspace)</li>



<li>Amazon EC2 and S3</li>



<li>Zabbix Agent</li>



<li>OpenAI Usage</li>
</ul>
</li>
</ul>



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



<p>You can find the full Changelog here if you&#8217;d like to review all the changes, including details on bug fixes and security patches:</p>



<p><a href="https://www.nagios.com/changelog/#nagios-xi" target="_blank" rel="noopener">Nagios XI Changelog</a></p>



<h2 class="wp-block-heading">Getting Started</h2>



<p>If you&#8217;re new to Nagios XI and want to take 2024R2 for a spin, you&#8217;ll find the free, fully functional trial version here:</p>



<p><a href="https://www.nagios.com/products/nagios-xi/downloads/" target="_blank" rel="noopener">Nagios XI Downloads</a></p>



<p>Another great resource is this article, which provides tips and resources to help you make the most of your free trial:</p>



<figure class="wp-block-embed is-type-wp-embed is-provider-nagios-library wp-block-embed-nagios-library"><div class="wp-block-embed__wrapper">
<blockquote class="wp-embedded-content" data-secret="nPu69LGMeg"><a href="https://library.nagios.com/techtips/maximize-your-free-trial-of-nagios-xi/">How to Maximize Your Free Trial of Nagios XI</a></blockquote><iframe class="wp-embedded-content" sandbox="allow-scripts" security="restricted"  title="&#8220;How to Maximize Your Free Trial of Nagios XI&#8221; &#8212; Nagios Library" src="https://library.nagios.com/techtips/maximize-your-free-trial-of-nagios-xi/embed/#?secret=DSWclLwaQS#?secret=nPu69LGMeg" data-secret="nPu69LGMeg" width="600" height="338" frameborder="0" marginwidth="0" marginheight="0" scrolling="no"></iframe>
</div></figure>



<p>If you’d like a guided personal tour of XI geared toward your unique requirements or a hands-on remote session with one of our techs to help you get a few things set up, we’d love to offer you a free <a href="https://www.nagios.com/request-demo/" target="_blank" rel="noopener">Demo</a> or <a href="https://www.nagios.com/quickstart/" target="_blank" rel="noopener">Quickstart</a>. To set this up, or for any other help you may need, feel free to email <a href="mailto:sales@nagios.com">sales@nagios.com</a> so we can give you a hand. Our sales and technical teams will do all they can to help you maximize your free trial!</p>



<p></p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>Hindustan Ports Pvt. Ltd.: Revolutionizing Port Operations with Nagios XI</title>
		<link>https://library.nagios.com/success-stories/hindustan-ports-pvt-ltd-revolutionizing-port-operations-with-nagios-xi/</link>
		
		<dc:creator><![CDATA[The Nagios Team]]></dc:creator>
		<pubDate>Thu, 29 May 2025 17:13:46 +0000</pubDate>
				<category><![CDATA[Success Stories]]></category>
		<category><![CDATA[Nagios]]></category>
		<category><![CDATA[Operating System Monitoring]]></category>
		<category><![CDATA[Operations]]></category>
		<guid isPermaLink="false">https://library.nagios.com/?p=57438</guid>

					<description><![CDATA[Hindustan Ports Pvt. Ltd.: Revolutionizing Port Operations with Nagios XI]]></description>
										<content:encoded><![CDATA[
<h2 class="wp-block-heading">Hindustan Ports Pvt. Ltd.: Navigating Success with Nagios XI</h2>



<h3 class="wp-block-heading">Optimizing Port Operations: The Challenge for Hindustan Ports Pvt. Ltd.</h3>



<p>In the bustling world of global trade and logistics, port operations are the unsung heroes, facilitating the seamless flow of goods across continents. Hindustan Ports Pvt. Ltd. (HPPL), a prominent player in India&#8217;s maritime sector, has long been at the forefront of this intricate dance, managing a vast network of terminals, cargo handling equipment, and complex IT infrastructure. For years, HPPL grappled with the inherent challenges of maintaining peak operational efficiency in a demanding 24/7 environment. Their journey towards achieving unparalleled reliability and foresight in their operations is a compelling testament to the transformative power of robust IT infrastructure monitoring, specifically through the strategic implementation of Nagios XI.</p>



<h3 class="wp-block-heading">Pre-Nagios XI: The Fragmented Monitoring Landscape and Operational Hurdles</h3>



<p>Before the advent of Nagios XI, HPPL&#8217;s IT landscape was a patchwork of disparate monitoring tools, each offering a limited view into specific silos of their infrastructure. Servers, network devices, applications, and databases were monitored in isolation, leading to a fragmented understanding of their overall health. This reactive approach meant that issues were often detected only after they had escalated, leading to costly downtime, operational bottlenecks, and, most critically, potential delays in cargo movement. The IT team, a dedicated but often overwhelmed group, spent a significant portion of their time firefighting rather than focusing on strategic initiatives. They struggled with:</p>



<ul class="wp-block-list">
<li><strong>Lack of Centralized IT Visibility:</strong> No single pane of glass offered a comprehensive overview of the entire IT ecosystem.</li>



<li><strong>Reactive Problem Resolution:</strong> Alerts were often too late, indicating a problem that had already impacted operations.</li>



<li><strong>Manual Monitoring Overheads:</strong> Significant manual effort was required to check the status of various systems, leading to human error and inefficiency.</li>



<li><strong>Ineffective Capacity Planning:</strong> Without historical performance data and trend analysis, anticipating future resource needs was a shot in the dark.</li>



<li><strong>Inconsistent Performance Reporting:</strong> Generating meaningful reports for management was a cumbersome and time-consuming process.</li>
</ul>



<h3 class="wp-block-heading">Why Nagios XI? The Strategic Choice for Proactive IT Monitoring</h3>



<p>Recognizing the urgent need for a unified, proactive, and intelligent monitoring solution, HPPL embarked on a thorough evaluation process. After extensive research and comparative analysis, Nagios XI emerged as the clear frontrunner. Its reputation for comprehensive monitoring capabilities, scalability, ease of use, and a vibrant community support ecosystem made it an attractive proposition. The decision was driven by Nagios XI&#8217;s ability to:</p>



<ul class="wp-block-list">
<li><strong>Monitor Diverse IT Infrastructure:</strong> From Windows and Linux servers to network switches, routers, firewalls, and critical port-specific applications, Nagios XI offered a versatile monitoring framework.</li>



<li><strong>Provide Proactive Alerts:</strong> Its sophisticated alerting mechanisms promised to notify the team of potential issues before they impacted services.</li>



<li><strong>Offer Customizable Dashboards:</strong> The ability to create tailored dashboards would empower different teams with relevant, real-time insights.</li>



<li><strong>Facilitate Accurate Capacity Planning:</strong> Performance trending and historical data analysis would enable informed decisions about infrastructure scaling.</li>



<li><strong>Streamline IT Reporting:</strong> Automated reporting features would free up valuable IT resources.</li>
</ul>



<h3 class="wp-block-heading">Implementing Nagios XI: A Phased Approach to Comprehensive Monitoring</h3>



<p>The implementation of Nagios XI at HPPL was a phased but meticulously planned undertaking. The initial phase focused on deploying the core Nagios XI server and integrating it with critical network devices and key operational servers. The IT team, with support from Nagios professionals, underwent intensive training to leverage the full potential of the platform. They began by defining critical service checks, setting up thresholds, and configuring notification rules.</p>



<p>As the team grew more proficient, the scope of monitoring expanded rapidly. They integrated:</p>



<ul class="wp-block-list">
<li><strong>Cargo Management Systems (CMS) Monitoring:</strong> Ensuring the availability and performance of applications crucial for tracking and managing cargo.</li>



<li><strong>Terminal Operating Systems (TOS) Health:</strong> Monitoring the health of systems that orchestrate the movement of containers and equipment within the port.</li>



<li><strong>Custom Application Performance:</strong> Developing custom plugins to monitor proprietary applications vital to HPPL&#8217;s unique operations.</li>



<li><strong>Environmental Sensor Monitoring:</strong> Even extending monitoring to environmental factors like temperature and humidity in critical data centers.</li>
</ul>



<p>One of the most significant aspects of the implementation was the creation of highly customized dashboards. These dashboards provided different stakeholders—from network administrators to operations managers and even senior management—with a clear, concise, and real-time view of the systems relevant to their roles. A large display in the Network Operations Center (NOC) became a vibrant, dynamic representation of HPPL&#8217;s digital heartbeat, instantly highlighting any anomalies.</p>



<h3 class="wp-block-heading">The Transformative Impact of Nagios XI on HPPL Operations</h3>



<p>The impact of Nagios XI on Hindustan Ports Pvt. Ltd.&#8217;s operations was profound and immediate.</p>



<h4 class="wp-block-heading">1. Enhanced Operational Uptime and Reliability</h4>



<p>The shift from reactive to proactive monitoring was perhaps the most significant benefit. Nagios XI&#8217;s ability to detect subtle performance degradations or impending failures meant that the IT team could intervene <em>before</em> an outage occurred. For instance, early warnings about disk space utilization on a critical database server or high CPU load on a network switch allowed them to take corrective action, preventing what would have previously been significant downtime. This translated directly into fewer disruptions in cargo handling and smoother port operations.</p>



<h4 class="wp-block-heading">2. Reduced Mean Time To Resolution (MTTR)</h4>



<p>When issues did arise, Nagios XI&#8217;s precise alerting and detailed diagnostic information drastically reduced the time it took to identify the root cause and resolve the problem. The IT team no longer had to spend hours sifting through logs or manually checking systems; the alerts provided clear pointers, significantly cutting down MTTR and minimizing operational impact.</p>



<h4 class="wp-block-heading">3. Optimized Resource Utilization and Capacity Planning</h4>



<p>With comprehensive historical performance data at their fingertips, HPPL&#8217;s IT team gained invaluable insights into resource consumption patterns. They could identify underutilized resources, optimize existing infrastructure, and accurately forecast future capacity needs. This led to more efficient capital expenditure and avoided costly over-provisioning or under-provisioning of resources. For example, by analyzing trends in network traffic, they could strategically plan bandwidth upgrades well in advance of peak seasons.</p>



<h4 class="wp-block-heading">4. Improved Security Posture</h4>



<p>Nagios XI&#8217;s monitoring capabilities extended to security-related aspects, such as unauthorized login attempts, unusual network traffic patterns, and critical service status. While not a standalone security solution, it provided an additional layer of vigilance, alerting the team to potential security breaches or vulnerabilities that might otherwise go unnoticed.</p>



<h4 class="wp-block-heading">5. Empowered Decision-Making</h4>



<p>The customized dashboards and automated reports transformed how management viewed IT operations. They could now access real-time performance metrics and understand the direct impact of IT health on business objectives. This data-driven approach fostered better collaboration between IT and operations, leading to more informed strategic decisions.</p>



<h4 class="wp-block-heading">6. Tangible Cost Savings</h4>



<p>By preventing downtime, reducing MTTR, and optimizing resource utilization, Nagios XI delivered tangible cost savings. The indirect benefits, such as enhanced customer satisfaction due to reliable service and improved employee productivity, further amplified the return on investment.</p>



<h3 class="wp-block-heading">Conclusion: Nagios XI &#8211; A Catalyst for Operational Excellence at HPPL</h3>



<p>In conclusion, Hindustan Ports Pvt. Ltd.&#8217;s adoption of Nagios XI was not merely an IT upgrade; it was a strategic investment that fundamentally reshaped their operational resilience and efficiency. By providing a unified, intelligent, and proactive monitoring framework, Nagios XI empowered HPPL to maintain continuous vigilance over its complex infrastructure, ensuring that the wheels of global trade continue to turn smoothly. The success story of HPPL stands as a powerful testament to how a well-implemented monitoring solution can transform challenges into opportunities, paving the way for sustained growth and operational excellence in the dynamic world of port management.</p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>Fidelity &#038; Guaranty Life Secures Uninterrupted Operations with Nagios Monitoring</title>
		<link>https://library.nagios.com/success-stories/fg-life-nagios-case-study/</link>
		
		<dc:creator><![CDATA[The Nagios Team]]></dc:creator>
		<pubDate>Mon, 28 Apr 2025 14:26:00 +0000</pubDate>
				<category><![CDATA[Success Stories]]></category>
		<category><![CDATA[Nagios]]></category>
		<category><![CDATA[Network Monitoring]]></category>
		<category><![CDATA[Operating System Monitoring]]></category>
		<category><![CDATA[Operational Efficiency]]></category>
		<category><![CDATA[Proactive Alerting]]></category>
		<category><![CDATA[Server Monitoring]]></category>
		<category><![CDATA[Uptime]]></category>
		<guid isPermaLink="false">https://library.nagios.com/?p=55642</guid>

					<description><![CDATA[Fidelity &#038; Guaranty Life ]]></description>
										<content:encoded><![CDATA[
<p>April 25, 2025</p>



<p>In the fast-paced world of financial services, even a moment of downtime can have significant repercussions. Fidelity &amp; Guaranty Life (F&amp;G), a leading provider of annuity and life insurance solutions, understands this implicitly. To ensure the continuous availability and optimal performance of their critical IT infrastructure, F&amp;G turned to Nagios, a powerful and versatile Nagios monitoring solution. This partnership has empowered F&amp;G to proactively identify and resolve potential issues, leading to enhanced operational efficiency, improved service reliability, and ultimately, greater peace of mind.</p>



<h2 class="wp-block-heading">The Challenge: Maintaining Peak Performance in a Complex IT Environment</h2>



<p>As F&amp;G&#8217;s business grew and their IT environment became increasingly complex, maintaining a holistic view of their infrastructure proved to be a significant challenge. Their diverse array of servers, network devices, applications, and databases generated a vast amount of data, making it difficult to pinpoint potential bottlenecks or emerging problems before they impacted critical services. The need for a centralized, comprehensive monitoring system became paramount.</p>



<h2 class="wp-block-heading">The Solution: Nagios Core and Nagios Monitoring Powerhouse</h2>



<p>After a thorough evaluation of various monitoring solutions, F&amp;G selected Nagios for its proven reliability, extensive feature set, and active community support. They implemented a combination of Nagios Core, the open-source foundation, and Nagios XI, the enterprise-grade interface, to create a unified monitoring powerhouse tailored to their specific requirements.</p>



<ul class="wp-block-list">
<li><strong>Comprehensive Monitoring:</strong> Nagios provides F&amp;G with real-time monitoring of all critical infrastructure components, including servers (physical and virtual), network devices (routers, switches, firewalls), operating systems, applications, databases, and services.</li>



<li><strong>Proactive Alerting:</strong> The sophisticated alerting system in Nagios notifies F&amp;G&#8217;s IT teams immediately when potential issues are detected, allowing them to take proactive steps before outages occur. Customizable escalation rules ensure the right personnel are informed at the right time.</li>



<li><strong>Centralized Visibility:</strong> Nagios XI&#8217;s intuitive web interface provides a single pane of glass view of the entire IT environment, making it easy for F&amp;G&#8217;s teams to understand the health and performance of their systems at a glance.</li>



<li><strong>Performance Nagios Monitoring and Capacity Planning:</strong> Nagios tracks key performance indicators (KPIs) such as CPU utilization, memory usage, disk I/O, and network traffic, enabling F&amp;G to identify performance bottlenecks and plan for future capacity needs.</li>



<li><strong>Customization and Flexibility:</strong> Nagios&#8217; open architecture and extensive plugin ecosystem allow F&amp;G to monitor virtually any aspect of their IT environment, including custom applications and in-house developed services.</li>



<li><strong>Reporting and Analytics:</strong> Nagios XI provides detailed reports and historical data, enabling F&amp;G to analyze trends, identify recurring issues, and demonstrate compliance with internal and external regulations.</li>
</ul>



<h2 class="wp-block-heading">The Results: Enhanced Reliability and Operational Efficiency</h2>



<p>The implementation of Nagios has yielded significant benefits for Fidelity &amp; Guaranty Life:</p>



<ul class="wp-block-list">
<li><strong>Reduced Downtime:</strong> Proactive monitoring and alerting have enabled F&amp;G to identify and resolve potential issues before they escalate into service-impacting outages, significantly reducing downtime.</li>



<li><strong>Improved Service Reliability:</strong> By ensuring the continuous availability and optimal performance of their IT infrastructure, F&amp;G has enhanced the reliability of their critical services for customers and partners.</li>



<li><strong>Increased Operational Efficiency:</strong> Centralized visibility and automated alerting have streamlined IT operations, freeing up valuable time and resources for F&amp;G&#8217;s IT teams to focus on strategic initiatives.</li>



<li><strong>Faster Problem Resolution:</strong> Real-time alerts and detailed performance data enable F&amp;G&#8217;s teams to quickly diagnose and resolve issues when they do occur, minimizing the impact on business operations.</li>



<li><strong>Enhanced Capacity Planning:</strong> Trend analysis and performance data provided by Nagios allow F&amp;G to make informed decisions about capacity upgrades and resource allocation, ensuring they are well-prepared for future growth.</li>
</ul>



<h2 class="wp-block-heading">Looking Ahead: A Continued Partnership for IT Excellence</h2>



<p>Fidelity &amp; Guaranty Life&#8217;s success story with Nagios is a testament to the power of proactive and comprehensive IT monitoring. By leveraging Nagios&#8217; robust features and flexibility, F&amp;G has built a resilient and high-performing IT environment that supports their commitment to providing exceptional service. As F&amp;G continues to grow and evolve, their partnership with Nagios will remain a crucial element in their strategy for achieving and maintaining IT excellence.</p>



<p>To learn about more ways Nagios can solve real life problems, check out our other&nbsp;<a href="https://library.nagios.com/success-stories/" target="_blank" rel="noreferrer noopener">Nagios Success Stories</a>.</p>



<p></p>



<p></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>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>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>1. Log into your Nagios Log Server web interface.</p>



<p>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 9" 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>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>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>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>1. In the Nagios Log Server web UI, enter the AlmaLinux server&#8217;s IP under <strong>Verify Incoming Logs</strong>.</p>



<p>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>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>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 10" 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>If you prefer not to use the script, follow these steps:</p>



<p>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>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>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>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>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 11" 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>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></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>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>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>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>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>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>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>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>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>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>Ensure the service shows as <code>active (running)</code>.</p>



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



<p>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>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>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>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>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>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></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>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>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>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>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>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>To run it as a background process, remove <code>-f</code>.</p>



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



<p>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>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>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>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>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>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>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><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></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>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>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>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>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>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>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>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>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>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>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>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>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>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>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>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>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></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>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>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>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>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>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>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>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 Install and Configure SNMP on macOS Monterey for Nagios Monitoring</title>
		<link>https://library.nagios.com/monitoring/how-to-install-and-configure-snmp-on-macos-monterey-for-nagios-monitoring/</link>
		
		<dc:creator><![CDATA[Jack Brisben]]></dc:creator>
		<pubDate>Fri, 28 Mar 2025 21:04:33 +0000</pubDate>
				<category><![CDATA[Monitoring]]></category>
		<category><![CDATA[Documentation]]></category>
		<category><![CDATA[Operating System Monitoring]]></category>
		<category><![CDATA[SNMP]]></category>
		<guid isPermaLink="false">https://library.nagios.com/?p=53776</guid>

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



<p>Before starting, ensure you have:</p>



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



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



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



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



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



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



<p><strong>1.1 Check SNMP Version</strong><br>Open Terminal and verify that SNMP tools are present:</p>



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



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



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



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



<p><strong>2.1 Create or Edit the SNMP Configuration File</strong><br>Run the following command to edit the configuration file:</p>



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



<p><strong>2.2 Add Basic Configuration</strong><br>Paste the following minimal configuration into /etc/snmp/snmpd.conf:</p>



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

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

# Define system information
sysLocation "Your Location"
sysContact "Your Name &lt;your.email@example.com>"
sysName "YourMacHostname"</textarea></pre><svg xmlns="http://www.w3.org/2000/svg" style="width:24px;height:24px" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2"><path class="with-check" stroke-linecap="round" stroke-linejoin="round" d="M4.5 12.75l6 6 9-13.5"></path><path class="without-check" stroke-linecap="round" stroke-linejoin="round" d="M16.5 8.25V6a2.25 2.25 0 00-2.25-2.25H6A2.25 2.25 0 003.75 6v8.25A2.25 2.25 0 006 16.5h2.25m8.25-8.25H18a2.25 2.25 0 012.25 2.25V18A2.25 2.25 0 0118 20.25h-7.5A2.25 2.25 0 018.25 18v-1.5m8.25-8.25h-6a2.25 2.25 0 00-2.25 2.25v6"></path></svg></span><pre class="shiki dark-plus" style="background-color: #1E1E1E" tabindex="0"><code><span class="line"><span style="color: #6A9955"># Set a read-only community string (replace &quot;public&quot; with a secure value)</span></span>
<span class="line"><span style="color: #DCDCAA">rocommunity</span><span style="color: #D4D4D4"> </span><span style="color: #CE9178">Str0ngC0mmunity!</span></span>
<span class="line"></span>
<span class="line"><span style="color: #6A9955"># Restrict access to your Nagios server&#39;s IP</span></span>
<span class="line"><span style="color: #DCDCAA">rocommunity</span><span style="color: #D4D4D4"> </span><span style="color: #CE9178">Str0ngC0mmunity!</span><span style="color: #D4D4D4"> &lt;</span><span style="color: #CE9178">Nagios_IP_addres</span><span style="color: #D4D4D4">s&gt;</span></span>
<span class="line"></span>
<span class="line"><span style="color: #6A9955"># Define system information</span></span>
<span class="line"><span style="color: #DCDCAA">sysLocation</span><span style="color: #D4D4D4"> </span><span style="color: #CE9178">&quot;Your Location&quot;</span></span>
<span class="line"><span style="color: #DCDCAA">sysContact</span><span style="color: #D4D4D4"> </span><span style="color: #CE9178">&quot;Your Name &lt;your.email@example.com&gt;&quot;</span></span>
<span class="line"><span style="color: #DCDCAA">sysName</span><span style="color: #D4D4D4"> </span><span style="color: #CE9178">&quot;YourMacHostname&quot;</span></span></code></pre></div>



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



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



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



<p>Save and exit (Ctrl+X, then Y, then Enter).</p>



<p><strong>2.3 Set Permissions</strong><br>Ensure the file is readable by the SNMP daemon:</p>



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



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



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



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



<p><strong>3.2 Enable the SNMP Service</strong><br>Load and start the service:</p>



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



<p>You should see org.net-snmp.snmpd listed with a PID (process ID).</p>



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



<p><strong>4.1 Test SNMP Queries</strong><br>Use the snmpwalk command to verify that SNMP is working locally:</p>



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



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



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



<p><strong>4.2 Check Listening Port</strong><br>SNMP uses UDP port 161. Verify it’s listening:</p>



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



<p>You should see output like udp4 0 0 *.161 *.*.</p>



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



<p>If macOS Monterey’s firewall is enabled, you need to allow SNMP traffic.</p>



<p>5.1 Open Firewall Settings<br>Go to <strong>System Preferences &gt; Security &amp; Privacy &gt; Firewall</strong>, unlock it, and click <strong>Firewall Options</strong>.</p>



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



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



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



<p>From your Nagios server, test connectivity:</p>



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



<p>Replace Str0ngC0mmunity! with your community string and &lt;your_mac_ip&gt; with your macOS system’s IP.</p>



<p>If successful, you’ll see SNMP data returned.</p>



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



<p>On your Nagios XI web GUI:</p>



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



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



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



<li>Enter the following:</li>



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



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



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



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



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



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



<p>For Nagios Core, edit your configuration files (e.g., /usr/local/nagios/etc/objects/) manually:</p>



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

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



<p>Adjust OIDs (Object Identifiers) for specific metrics as needed.</p>



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



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



<p>For further support, refer to:</p>



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



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



<li>macOS SNMP Documentation: man snmpd in Terminal</li>
</ul>
]]></content:encoded>
					
		
		
			</item>
	</channel>
</rss>
