<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	xmlns:media="http://search.yahoo.com/mrss/" >

<channel>
	<title>Log Monitoring &#8211; Nagios Library</title>
	<atom:link href="https://library.nagios.com/tag/log-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 16:52:01 +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>Log Monitoring &#8211; Nagios Library</title>
	<link>https://library.nagios.com</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>What&#8217;s New in Nagios Log Server 2026</title>
		<link>https://library.nagios.com/nagios-updates/whats-new-nagios-log-server-2026/</link>
		
		<dc:creator><![CDATA[Ryan Reisdorf]]></dc:creator>
		<pubDate>Tue, 28 Oct 2025 13:45:00 +0000</pubDate>
				<category><![CDATA[Nagios Updates]]></category>
		<category><![CDATA[Solutions]]></category>
		<category><![CDATA[Log Monitoring]]></category>
		<guid isPermaLink="false">https://library.nagios.com/?p=64512</guid>

					<description><![CDATA[Nagios Log Server 2026 delivers a number of subtle but meaningful refinements that improve everyday usability, combining a simplified user experience, major backend upgrades, and a streamlined design built for speed and usability. With the brand-new Simple Search homepage and upgraded OpenSearch components, this release makes log management, analysis, and dashboarding more intuitive than ever [&#8230;]]]></description>
										<content:encoded><![CDATA[
<p>Nagios Log Server 2026 delivers a number of subtle but meaningful refinements that improve everyday usability, combining a simplified user experience, major backend upgrades, and a streamlined design built for speed and usability. With the brand-new Simple Search homepage and upgraded OpenSearch components, this release makes log management, analysis, and dashboarding more intuitive than ever before.</p>



<p>In this article, we’ll highlight the biggest changes and provide links to resources so you can start exploring the new functionality right away.</p>



<h3 class="wp-block-heading"><strong>New Simple Search Homepage</strong></h3>



<p>At the heart of Log Server 2026 is the completely brand-new Simple Search homepage.<br>This streamlined interface is built for quick, everyday investigation, making it easier for users of all experience levels to search for common log events and gain powerful insights without the clutter.</p>



<figure class="wp-block-image size-large"><img fetchpriority="high" decoding="async" width="1024" height="586" src="https://library.nagios.com/wp-content/uploads/2025/10/ls1-1024x586.png" alt="Image of Nagios Log Server 2026 interface" class="wp-image-64535" title="What&#039;s New in Nagios Log Server 2026 1" srcset="https://library.nagios.com/wp-content/uploads/2025/10/ls1-1024x586.png 1024w, https://library.nagios.com/wp-content/uploads/2025/10/ls1-300x172.png 300w, https://library.nagios.com/wp-content/uploads/2025/10/ls1-768x440.png 768w, https://library.nagios.com/wp-content/uploads/2025/10/ls1-1536x879.png 1536w, https://library.nagios.com/wp-content/uploads/2025/10/ls1.png 1604w" sizes="(max-width: 1024px) 100vw, 1024px" /><figcaption>What's New in Nagios Log Server 2026 2</figcaption></figure>



<h3 class="wp-block-heading"><strong>OpenSearch 2 → 3 Upgrade</strong></h3>



<p>Under the hood, Nagios Log Server 2026 upgrades its core components from OpenSearch 2.x to 3.1.0 and Logstash 9.1.1, increasing performance, stability, and scalability.</p>



<h3 class="wp-block-heading"><strong>Quality of Life &amp; UX Enhancements</strong></h3>



<p>The 2026 release introduces a number of subtle but meaningful refinements that improve everyday usability:</p>



<ul class="wp-block-list">
<li>“Add Log Source” (+) button consolidates source setup actions into one central place.</li>



<li>Timestamp localization adapts automatically to your region and time zone.</li>



<li>Improved LDAP/AD editing page for simpler authentication configuration.</li>



<li>Role assignment per cluster instance for better administrative control of the jobs each instance executes.</li>
</ul>



<p>All of these updates contribute to a more cohesive, accessible, and responsive Log Server experience.</p>



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



<p>For a detailed list of fixes and developer notes, visit the full changelog below:</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/changelog/nagios-log-server/" target="_blank" rel="noreferrer noopener">Nagios Log Server Changelog</a></div>
</div>



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



<h3 class="wp-block-heading" id="section-8">Getting Started</h3>



<p>If you’re new to Nagios Log Server or ready to upgrade to the 2026 release, download the trial version here:</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-log-server/" target="_blank" rel="noreferrer noopener">Nagios Log Server Downloads</a></div>
</div>



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



<h3 class="wp-block-heading">Analyzing Logs in Nagios Log Server</h3>



<p>For a complete walkthrough on using queries, filters, dashboards, and how to manage your home page mode to analyze logs effectively, check out this guide:</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/documentation/nagios-log-server-analyzing-logs/" target="_blank" rel="noreferrer noopener">Nagios Log Server – Analyzing Logs</a></div>
</div>



<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 Monitor Ubuntu 20.04 Logs with Nagios Log Server 2024R2</title>
		<link>https://library.nagios.com/techtips/how-to-monitor-ubuntu-20-logs-with-nagios-log-server-2024r2-in-nagios-xi/</link>
		
		<dc:creator><![CDATA[Ayoub Louragli]]></dc:creator>
		<pubDate>Fri, 28 Mar 2025 14:58:01 +0000</pubDate>
				<category><![CDATA[Techtips]]></category>
		<category><![CDATA[Support Tips]]></category>
		<category><![CDATA[Log Monitoring]]></category>
		<category><![CDATA[Ubuntu 20]]></category>
		<guid isPermaLink="false">https://library.nagios.com/?p=53541</guid>

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



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



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



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



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



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



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



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



<li>Paste and execute the script: </li>
</ol>



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



<p>This sets up <code>rsyslog</code> to forward logs to your Nagios Log Server.</p>



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



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



<li>Or navigate to <strong>Dashboards &gt; Nagios Log Server Search</strong> and run: </li>
</ul>



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



<ul class="wp-block-list">
<li>Test log submission with: </li>
</ul>



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



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



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



<p>If you prefer a manual setup:</p>



<p>1. Verify your rsyslog working directory:</p>



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



<p>2. Edit the config file:</p>



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



<p>Add the following line:</p>



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



<p>3. Restart <code>rsyslog</code>:</p>



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



<p>4. Confirm logs are reaching the server:</p>



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



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



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



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



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



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



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



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



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



<li>Run the following to confirm rsyslog is active: </li>
</ul>



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



<ul class="wp-block-list">
<li>Use <code>tcpdump</code> to check if logs are sent to Nagios Log Server: </li>
</ul>



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



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



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



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



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



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



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



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

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



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



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



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



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



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



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



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



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



<p>Nagios Log Server provides:</p>



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



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



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



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



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



<p>Nagios Log Server can collect:</p>



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



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



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



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



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



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



<p>macOS uses the unified logging system (log command) and syslogd.</p>



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



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



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



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



<p><strong>Check Syslogd:</strong> Verify syslogd is running:</p>



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



<p>If not running, load it:</p>



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



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



<p>Since macOS’s syslogd doesn’t natively support robust remote forwarding, install rsyslog via Homebrew.</p>



<ul class="wp-block-list">
<li><strong>Install Homebrew:</strong> On Apple Silicon, Homebrew installs to /opt/homebrew/:</li>
</ul>



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



<p>Add Homebrew to your PATH:</p>



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



<p><strong>Install rsyslog:</strong></p>



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



<p><strong>Configure rsyslog:</strong> Edit the configuration file:</p>



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



<p>Add the following to forward logs to Nagios Log Server:</p>



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



<p>Replace &lt;logserver_ip&gt; with your Nagios Log Server’s IP (e.g., 192.168.1.100).</p>



<p>Enable modules (uncomment or add at the top):</p>



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



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



<p><strong>Start rsyslog:</strong></p>



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



<p>Verify it’s running:</p>



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



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



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



<p>Set up Nagios Log Server to receive logs:</p>



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



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



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



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



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



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



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



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



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



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



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



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



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



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



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



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



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



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



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



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



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



<p>Add to rsyslog.conf:</p>



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



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



<p><strong>Log Rotation</strong>: macOS handles local rotation via newsyslog; configure retention in Nagios Log Server.</p>



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



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



<p>For more details, check:</p>



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



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



<p></p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>Log Forwarding to Nagios Log Server R2 on CentOS 7</title>
		<link>https://library.nagios.com/monitoring/nagios-log-server-r2-on-centos-7/</link>
		
		<dc:creator><![CDATA[Tucker Falen]]></dc:creator>
		<pubDate>Wed, 26 Mar 2025 14:26:11 +0000</pubDate>
				<category><![CDATA[Monitoring]]></category>
		<category><![CDATA[Documentation]]></category>
		<category><![CDATA[CentOS 7]]></category>
		<category><![CDATA[CentOS Linux]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Log Monitoring]]></category>
		<category><![CDATA[Operating System Monitoring]]></category>
		<guid isPermaLink="false">https://library.nagios.com/?p=53179</guid>

					<description><![CDATA[Nagios Log Server R2 introduces a revamped logging system, making it easier to centralize and analyze logs from various sources. This guide will walk you through setting up a CentOS 7 machine to send its logs to the Nagios Log Server R2 using both automatic and manual methods. Getting Started After setup, logs that would [&#8230;]]]></description>
										<content:encoded><![CDATA[
<p>Nagios Log Server R2 introduces a revamped logging system, making it easier to centralize and analyze logs from various sources. This guide will walk you through setting up a CentOS 7 machine to send its logs to the Nagios Log Server R2 using both automatic and manual methods.</p>



<p><strong>Getting Started</strong></p>



<p>After setup, logs that would typically appear in <code>/var/log/messages</code> will be forwarded to the Nagios Log Server R2, allowing centralized monitoring and alerting.</p>



<p><strong>Automatic Setup Using a Script</strong></p>



<p>The easiest way to configure log forwarding is by using the provided script. This method requires <code>rsyslog</code> to be installed on your CentOS 7 machine.</p>



<p><strong>Steps to Run the Script:</strong></p>



<ol class="wp-block-list">
<li><strong>Ensure Rsyslog is Installed:</strong></li>
</ol>



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



<ol start="2" class="wp-block-list">
<li><strong>Download the Script from the Nagios Log Server R2:</strong></li>
</ol>



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



<ol start="3" class="wp-block-list">
<li><strong>Execute the Script to Configure Rsyslog:</strong></li>
</ol>



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



<ul class="wp-block-list">
<li>Replace <code>192.168.1.49</code> with your Nagios Log Server R2’s IP address.</li>



<li>The <code>-p 5544</code> option specifies the port for log transmission.</li>
</ul>



<p><strong>Manual Setup Using Rsyslog Configuration</strong></p>



<p>If you prefer manual setup or need more control over configurations, follow these steps:</p>



<ol class="wp-block-list">
<li><strong>Edit Rsyslog Configuration:</strong></li>
</ol>



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



<p><strong>2. Add the following configuration:</strong></p>



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



<ul class="wp-block-list">
<li>Replace <code>192.168.1.49</code> with the IP address of your Nagios Log Server R2.</li>



<li>The <code>@@</code> symbol indicates TCP transmission; use <code>@</code> for UDP if needed.</li>
</ul>



<ol start="3" class="wp-block-list">
<li><strong>Restart Rsyslog to Apply Changes:</strong></li>
</ol>



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



<ol start="4" class="wp-block-list">
<li><strong>Check Status to Ensure it&#8217;s Running:</strong></li>
</ol>



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



<h2 class="wp-block-heading"><strong>Receiving Logs in Log Server</strong></h2>



<p>On your Log Server&#8217;s GUI, click <strong>Add Log Source</strong>.</p>



<figure class="wp-block-image size-large"><a href="https://library.nagios.com/wp-content/uploads/2025/03/Screenshot-2025-03-21-131259-1.png"><img decoding="async" width="1024" height="530" src="https://library.nagios.com/wp-content/uploads/2025/03/Screenshot-2025-03-21-131259-1-1024x530.png" alt="Screenshot 2025 03 21 131259 1" class="wp-image-53120" title="Log Forwarding to Nagios Log Server R2 on CentOS 7 4" srcset="https://library.nagios.com/wp-content/uploads/2025/03/Screenshot-2025-03-21-131259-1-1024x530.png 1024w, https://library.nagios.com/wp-content/uploads/2025/03/Screenshot-2025-03-21-131259-1-300x155.png 300w, https://library.nagios.com/wp-content/uploads/2025/03/Screenshot-2025-03-21-131259-1-768x397.png 768w, https://library.nagios.com/wp-content/uploads/2025/03/Screenshot-2025-03-21-131259-1-1536x794.png 1536w, https://library.nagios.com/wp-content/uploads/2025/03/Screenshot-2025-03-21-131259-1.png 1868w" sizes="(max-width: 1024px) 100vw, 1024px" /></a><figcaption class="wp-element-caption">Nagios Log Server home page</figcaption></figure>



<p>Click <strong>Linux</strong>.</p>



<figure class="wp-block-image size-large"><a href="https://library.nagios.com/wp-content/uploads/2025/03/Screenshot-2025-03-21-131443-1.png"><img loading="lazy" decoding="async" width="1024" height="226" src="https://library.nagios.com/wp-content/uploads/2025/03/Screenshot-2025-03-21-131443-1-1024x226.png" alt="Screenshot 2025 03 21 131443 1" class="wp-image-53122" title="Log Forwarding to Nagios Log Server R2 on CentOS 7 5" srcset="https://library.nagios.com/wp-content/uploads/2025/03/Screenshot-2025-03-21-131443-1-1024x226.png 1024w, https://library.nagios.com/wp-content/uploads/2025/03/Screenshot-2025-03-21-131443-1-300x66.png 300w, https://library.nagios.com/wp-content/uploads/2025/03/Screenshot-2025-03-21-131443-1-768x170.png 768w, https://library.nagios.com/wp-content/uploads/2025/03/Screenshot-2025-03-21-131443-1.png 1248w" sizes="(max-width: 1024px) 100vw, 1024px" /></a><figcaption class="wp-element-caption">Add log source</figcaption></figure>



<p>Type in your machine&#8217;s IP address to see if you are receiving logs. If it&#8217;s working, the interface will confirm that logs are being received.</p>



<figure class="wp-block-image size-large"><a href="https://library.nagios.com/wp-content/uploads/2025/03/Screenshot-2025-03-21-132800-1.png"><img loading="lazy" decoding="async" width="1024" height="642" src="https://library.nagios.com/wp-content/uploads/2025/03/Screenshot-2025-03-21-132800-1-1024x642.png" alt="Screenshot 2025 03 21 132800 1" class="wp-image-53121" title="Log Forwarding to Nagios Log Server R2 on CentOS 7 6" srcset="https://library.nagios.com/wp-content/uploads/2025/03/Screenshot-2025-03-21-132800-1-1024x642.png 1024w, https://library.nagios.com/wp-content/uploads/2025/03/Screenshot-2025-03-21-132800-1-300x188.png 300w, https://library.nagios.com/wp-content/uploads/2025/03/Screenshot-2025-03-21-132800-1-768x482.png 768w, https://library.nagios.com/wp-content/uploads/2025/03/Screenshot-2025-03-21-132800-1.png 1481w" sizes="(max-width: 1024px) 100vw, 1024px" /></a><figcaption class="wp-element-caption">Verify incoming logs</figcaption></figure>



<p><strong>Conclusion</strong></p>



<p>Whether using the automatic script or manual setup, forwarding logs from CentOS 7 to Nagios Log Server R2 ensures centralized log management for better monitoring and alerting. Use the method that best fits your deployment needs.</p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>Configuring macOS Log Forwarding to a Log Server on Intel Macs</title>
		<link>https://library.nagios.com/monitoring/configuring-macos-log-forwarding-to-a-log-server-on-intel-macs/</link>
		
		<dc:creator><![CDATA[Jack Brisben]]></dc:creator>
		<pubDate>Tue, 25 Mar 2025 18:57:10 +0000</pubDate>
				<category><![CDATA[Monitoring]]></category>
		<category><![CDATA[Documentation]]></category>
		<category><![CDATA[Log Monitoring]]></category>
		<category><![CDATA[Operating System Monitoring]]></category>
		<guid isPermaLink="false">https://library.nagios.com/?p=48786</guid>

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



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



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



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



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



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



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



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



<p>Monitoring macOS logs helps you:</p>



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



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



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



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



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



<p>A Log Server can collect various logs from macOS, including:</p>



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



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



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



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



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



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



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



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



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



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



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



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



<p>macOS uses the unified logging system (log command) and syslogd for log management.</p>



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



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



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



<p>This displays real-time logs. Press Ctrl+C to exit.</p>



<p><strong>Enable Syslog Compatibility</strong>:</p>



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



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



<p>If not running, load it:</p>



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



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



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



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



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



<p>Follow the prompts and add Homebrew to your PATH if prompted:</p>



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



<p><strong>Install rsyslog</strong>:</p>



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



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



<p><strong>Configure rsyslog for Remote Forwarding</strong>:</p>



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



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



<p>Add these lines at the bottom to forward all logs to your Log Server:</p>



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



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



<p>Enable necessary modules (uncomment or add at the top if missing):</p>



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



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



<p><strong>Start rsyslog</strong>:</p>



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



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



<p>Verify it’s running:</p>



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



<p>You should see an rsyslogd process.</p>



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



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



<p>Set up your Log Server to receive logs from the Mac:</p>



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



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



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



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



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



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



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



<p>Test that logs are being forwarded:</p>



<ol class="wp-block-list">
<li>Generate a test log on the Mac:</li>
</ol>



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



<p>Check the Log Server interface for the message (e.g., under “Logs” or “Events”).</p>



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



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



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



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



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



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



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



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



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



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



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



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



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



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



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



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



<li><a href="https://support.nagios.com/kb/" target="_blank" rel="noreferrer noopener">Nagios Knowledge Base</a></li>
</ul>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>Ready to Rock: What&#8217;s New in Log Server 2024R2</title>
		<link>https://library.nagios.com/nagios-updates/ready-to-rock-whats-new-in-log-server-2024r2/</link>
		
		<dc:creator><![CDATA[Shamas Demoret]]></dc:creator>
		<pubDate>Wed, 19 Mar 2025 20:06:16 +0000</pubDate>
				<category><![CDATA[Nagios Updates]]></category>
		<category><![CDATA[Developer Corner]]></category>
		<category><![CDATA[Solutions]]></category>
		<category><![CDATA[Log Monitoring]]></category>
		<guid isPermaLink="false">https://library.nagios.com/?p=40984</guid>

					<description><![CDATA[Nagios Log Server 2024R2 is fully updated, fully modern, and ready to rock! For the last 10 years, Nagios Log Server has provided users with a powerful log collection, analysis, archiving, and alerting solution. We&#8217;re excited to announce the release of Log Server 2024R2, and in this article we&#8217;ll discuss the major frontend and backend [&#8230;]]]></description>
										<content:encoded><![CDATA[
<p><strong>Nagios Log Server 2024R2 is fully updated, fully modern, and ready to rock!</strong></p>



<p>For the last 10 years, Nagios Log Server has provided users with a powerful log collection, analysis, archiving, and alerting solution. We&#8217;re excited to announce the release of Log Server 2024R2, and in this article we&#8217;ll discuss the major frontend and backend updates and improvements you&#8217;ll discover in the new major release.</p>



<h2 class="wp-block-heading">User Interface: The Next Generation</h2>



<p>When you <a href="https://www.nagios.com/products/nagios-log-server/" target="_blank" rel="noopener">download</a> the new Log Server 2024R2 release, the first thing you&#8217;ll notice is the beautiful new user interface, coded from scratch by the Nagios development team. Check out how easy it is to manage Dashboard panels now! </p>



<figure class="wp-block-video"><video autoplay loop muted src="https://library.nagios.com/wp-content/uploads/2025/02/Dashboards-web.mp4" playsinline></video></figure>



<p><mark style="background-color:#fcb900" class="has-inline-color"></mark></p>



<p>The new UI is crisp, clean, and fast. This change will provide greater flexibility and agility to our developers, enabling them to quickly incorporate new ideas, respond to customer feedback, and cultivate Log Server&#8217;s look and feel in the future. For example, creating the new Dark Theme and Light Theme:</p>



<figure class="wp-block-image size-large"><a href="https://library.nagios.com/wp-content/uploads/2025/02/NLSR2-Cool-Dash.png"><img loading="lazy" decoding="async" width="1024" height="560" src="https://library.nagios.com/wp-content/uploads/2025/02/NLSR2-Cool-Dash-1024x560.png" alt="A Nagios Log Server dashboard showing various Windows and Linux log fields, using the Dark Theme." class="wp-image-43578" title="Ready to Rock: What&#039;s New in Log Server 2024R2 8" srcset="https://library.nagios.com/wp-content/uploads/2025/02/NLSR2-Cool-Dash-1024x560.png 1024w, https://library.nagios.com/wp-content/uploads/2025/02/NLSR2-Cool-Dash-300x164.png 300w, https://library.nagios.com/wp-content/uploads/2025/02/NLSR2-Cool-Dash-768x420.png 768w, https://library.nagios.com/wp-content/uploads/2025/02/NLSR2-Cool-Dash-1536x840.png 1536w, https://library.nagios.com/wp-content/uploads/2025/02/NLSR2-Cool-Dash.png 1906w" sizes="(max-width: 1024px) 100vw, 1024px" /></a><figcaption class="wp-element-caption">A custom Dashboard using the Dark Theme. </figcaption></figure>



<figure class="wp-block-image size-large"><a href="https://library.nagios.com/wp-content/uploads/2025/01/NLSR2-Failed-SSH-Logins-Dashboard_wDetails-Light-Theme.png"><img loading="lazy" decoding="async" width="1024" height="576" src="https://library.nagios.com/wp-content/uploads/2025/01/NLSR2-Failed-SSH-Logins-Dashboard_wDetails-Light-Theme-1024x576.png" alt="A Nagios Log Server 2024R2 Dashboard showing failed SSH Logins, and the details of a single related log entry, using the Light Theme." class="wp-image-42046" title="Ready to Rock: What&#039;s New in Log Server 2024R2 9" srcset="https://library.nagios.com/wp-content/uploads/2025/01/NLSR2-Failed-SSH-Logins-Dashboard_wDetails-Light-Theme-1024x576.png 1024w, https://library.nagios.com/wp-content/uploads/2025/01/NLSR2-Failed-SSH-Logins-Dashboard_wDetails-Light-Theme-300x169.png 300w, https://library.nagios.com/wp-content/uploads/2025/01/NLSR2-Failed-SSH-Logins-Dashboard_wDetails-Light-Theme-768x432.png 768w, https://library.nagios.com/wp-content/uploads/2025/01/NLSR2-Failed-SSH-Logins-Dashboard_wDetails-Light-Theme-1536x864.png 1536w, https://library.nagios.com/wp-content/uploads/2025/01/NLSR2-Failed-SSH-Logins-Dashboard_wDetails-Light-Theme.png 1920w" sizes="(max-width: 1024px) 100vw, 1024px" /></a><figcaption class="wp-element-caption">Failed SSH Logins and an expanded log entry in Light Theme. </figcaption></figure>



<p>One change that might take a moment to get used to is that the menu bar is now on the left, and icon-based, just like the Nagios XI Neptune theme you may already use. Aside from that, longtime Log Server users will still feel right at home, as we&#8217;ve kept the menu structure and location of key functions the same. </p>



<figure class="wp-block-image size-large"><a href="https://library.nagios.com/wp-content/uploads/2025/01/NLS2024R2-Home-Dark.png"><img loading="lazy" decoding="async" width="1024" height="537" src="https://library.nagios.com/wp-content/uploads/2025/01/NLS2024R2-Home-Dark-1024x537.png" alt="The Nagios Log Server 2024R2 Home page in Dark Mode." class="wp-image-40992" title="Ready to Rock: What&#039;s New in Log Server 2024R2 10" srcset="https://library.nagios.com/wp-content/uploads/2025/01/NLS2024R2-Home-Dark-1024x537.png 1024w, https://library.nagios.com/wp-content/uploads/2025/01/NLS2024R2-Home-Dark-300x157.png 300w, https://library.nagios.com/wp-content/uploads/2025/01/NLS2024R2-Home-Dark-768x403.png 768w, https://library.nagios.com/wp-content/uploads/2025/01/NLS2024R2-Home-Dark-1536x806.png 1536w, https://library.nagios.com/wp-content/uploads/2025/01/NLS2024R2-Home-Dark.png 1908w" sizes="(max-width: 1024px) 100vw, 1024px" /></a><figcaption class="wp-element-caption">The new Home page using the Dark Theme. </figcaption></figure>



<p>Another major enhancement comes in how panels are managed in your Dashboards. </p>



<h2 class="wp-block-heading">Major Backend Updates</h2>



<p>The improvements in Log Server 2024R2 go far beyond the stunning new UI, extending to the core components of the tool. First off, the datastore has been shifted from Elasticsearch to Opensearch 2.14.0. Secondly, Logstash has been updated to v8.13.4. These updates will provide you with improved security and functionality in your Log Server deployment.</p>



<p>The upgrade to Opensearch means that Log Server users will now benefit from the uniform field labeling and hierarchical tree structure of the Elastic Common Schema (ECS). For example, information such as the host name of different types of log sources will be uniformly placed into a common field, in this case <code>host.hostname</code>.</p>



<p>In previous versions of Log Server, this would have been <code>Hostname</code> for Windows sources, and <code>hostname</code> for Linux sources, causing no results to show in the case of simple capitalization mistakes when composing queries. Setting up queries and alerts to find the important log entries you&#8217;re after will be quicker and easier going forward, since the fields for common attributes will have the same name and capitalization regardless of the source type.</p>



<p>You&#8217;ll also notice that in R2, significantly more fields are parsed in your syslog data, including data such as <code>process.name</code>, <code>service.type</code>, <code>log.syslog.severity.code</code>, and <code>log.syslog.severity.name</code>, further enabling you to quickly narrow down datasets in your queries. </p>



<h2 class="wp-block-heading">Migration Made Easy</h2>



<p>Due to the upgrade from Elasticsearch to OpenSearch an inline upgrade from R1 to R2 isn&#8217;t possible, but we have created a GUI-based migration tool to help existing users migrate their data and to a new R2 deployment. The tool makes migrating the following to your new R2 deployment a snap:</p>



<ul class="wp-block-list">
<li>The log data contained in the Elasticsearch engine.</li>



<li>User accounts</li>



<li>Configuration</li>



<li>Queries</li>



<li>History</li>



<li>Alerts</li>
</ul>



<figure class="wp-block-image size-full"><a href="https://library.nagios.com/wp-content/uploads/2025/01/Migration-Tool.png"><img loading="lazy" decoding="async" width="720" height="571" src="https://library.nagios.com/wp-content/uploads/2025/01/Migration-Tool.png" alt="A screenshot of the Log Server migration too in action, showing several indexes chosen for migration." class="wp-image-41521" title="Ready to Rock: What&#039;s New in Log Server 2024R2 11" srcset="https://library.nagios.com/wp-content/uploads/2025/01/Migration-Tool.png 720w, https://library.nagios.com/wp-content/uploads/2025/01/Migration-Tool-300x238.png 300w" sizes="(max-width: 720px) 100vw, 720px" /></a><figcaption class="wp-element-caption">Using the built-in data migration tool. </figcaption></figure>



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



<p>A great way to dive in and learn all about the changes is this recent <strong>webinar</strong>:</p>



<p><a href="https://www.nagios.com/webinar/nagios-log-server-2024r2-showcase/" target="_blank" rel="noopener">Nagios Log Server 2024R2 Showcase</a></p>



<p>Fully-updated <strong>documentation</strong> for Log Server 2024R2 can be found in the Admin Guide:</p>



<p>         <a href="https://assets.nagios.com/downloads/nagios-log-server/guides/administrator/generaluse.php#cluster" target="_blank" rel="noopener">Nagios Log Server Administrator Guide</a> </p>



<p>Learn how to monitor your Log Server cluster intelligently with <strong>Business Process Intelligence</strong> here:</p>



<p><a href="https://library.nagios.com/techtips/nagios-xi-bpi-unlock-actionable-insights-for-it-monitoring-and-optimization/" target="_blank" rel="noreferrer noopener">Nagios XI BPI: Actionable Insights for IT Monitoring and Optimization</a></p>



<p>Learn how Log Server can help empower you with a <strong>holistic perspective</strong> your your infrastructure&#8217;s health here:</p>



<p><a href="https://library.nagios.com/solutions/get-holistic-with-4-nagios-solutions/" target="_blank" rel="noreferrer noopener">Get Holistic with 4 Nagios Solutions</a></p>


		<div data-elementor-type="container" data-elementor-id="53270" class="elementor elementor-53270" data-elementor-post-type="elementor_library">
				<div class="elementor-element elementor-element-6ee5a94 e-flex e-con-boxed e-con e-parent" data-id="6ee5a94" data-element_type="container" data-e-type="container">
					<div class="e-con-inner">
				<div class="elementor-element elementor-element-84e537c elementor-widget elementor-widget-html" data-id="84e537c" data-element_type="widget" data-e-type="widget" data-widget_type="html.default">
					<div class="nagios-card">
  <div class="card-inner">
    <div class="card-content">
      <h3 class="card-title">Take Nagios Log Server 2024R2 for a Spin</h3>
      <p class="card-description">Discover our powerful log collection, analysis, archiving, and alerting solution with a stunning new UI and major backend improvements.</p>
      <div class="card-features-grid">
        <div class="feature-item">
          <i class="circle-check"></i>
          <span>Beautiful new user interface</span>
        </div>
        <div class="feature-item">
          <i class="circle-check"></i>
          <span>Upgraded to OpenSearch 2.14.0</span>
        </div>
        <div class="feature-item">
          <i class="circle-check"></i>
          <span>Enhanced log analysis capabilities</span>
        </div>
        <div class="feature-item">
          <i class="circle-check"></i>
          <span>Easy migration tool</span>
        </div>
      </div>
      <a href="https://www.nagios.com/products/nagios-log-server" class="card-link" target="_blank" rel="noopener">
        Explore Log Server 2024R2
        <img decoding="async" src="https://library.nagios.com/wp-content/uploads/2025/03/external-link.svg" class="external-link-svg" alt="External Link" title="Ready to Rock: What&#039;s New in Log Server 2024R2 12">
      </a>
    </div>
  </div>
</div>

<style>
  .nagios-card {
    font-family: 'Arial', sans-serif;
    background: #000000;
    color: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    width: 100%;
    padding: 40px;
  }
  
  .card-inner {
    max-width: 800px;
    margin: 0 auto;
  }
  
  .card-content {
    width: 100%;
    text-align: left;
  }
  
  .card-title {
    color: #ffffff;
    font-size: 36px;
    margin-top: 0;
    margin-bottom: 20px;
    font-weight: 600;
    line-height: 1.2;
    text-align: left;
  }
  
  .card-description {
    color: var(--e-global-color-secondary);
    font-size: 18px;
    line-height: 1.5;
    margin-bottom: 30px;
    max-width: 700px;
    margin-right: auto;
    margin-left: 0;
    text-align: left;
  }
  
  .card-features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px 30px;
    margin-bottom: 35px;
    margin-right: auto;
    margin-left: 0;
  }
  
  .feature-item {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    color: var(--e-global-color-secondary);
    font-size: 16px;
    text-align: left;
  }
  
  .circle-check {
    display: inline-block;
    width: 22px;
    height: 22px;
    margin-right: 12px;
    background-color: #4d89f9;
    border-radius: 50%;
    position: relative;
    flex-shrink: 0;
  }
  
  .circle-check:before {
    content: '';
    position: absolute;
    top: 6px;
    left: 8px;
    width: 6px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
  }
  
  .card-link {
    display: inline-flex;
    align-items: center;
    color: #4d89f9 !important;
    text-decoration: underline!important;
    font-weight: 500;
    font-size: 16px;
    transition: color 0.3s ease;
    line-height: 100%;
  }
  
  .external-link-svg {
    margin-left: 8px;
    width: 20px;
    height: 20px;
    transition: opacity 0.3s ease;
    margin-bottom:4px;
  }
  
  .card-link:hover {
    color: #3a70d6 !important;
    text-decoration: underline!important;
  }
  
  .card-link:hover .external-link-svg {
    opacity: 0.8;
  }
  
  /* Mobile optimizations */
  @media (max-width: 767px) {
    .nagios-card {
      padding: 25px 20px;
    }
    
    .card-title {
      font-size: 28px;
    }
    
    .card-description {
      font-size: 16px;
      margin-bottom: 25px;
    }
    
    .card-features-grid {
      grid-template-columns: 1fr;
      gap: 12px;
      margin-bottom: 30px;
    }
    
    .feature-item {
      font-size: 15px;
    }
  }
</style>				</div>
					</div>
				</div>
				</div>
		



<p></p>
]]></content:encoded>
					
		
		<enclosure url="https://library.nagios.com/wp-content/uploads/2025/02/Dashboards-web.mp4" length="6249855" type="video/mp4" />

		<media:content url="https://library.nagios.com/wp-content/uploads/2025/02/Dashboards-web.mp4" medium="video" width="2012" height="1080">
			<media:player url="https://library.nagios.com/wp-content/uploads/2025/02/Dashboards-web.mp4" />
			<media:title type="plain">Log Monitoring Archives - Nagios Library</media:title>
			<media:thumbnail url="https://library.nagios.com/wp-content/uploads/2025/03/previewimage-1-1-2.png" />
			<media:rating scheme="urn:simple">nonadult</media:rating>
		</media:content>
	</item>
		<item>
		<title>Seamless AI: Queries Simplified in Log Server</title>
		<link>https://library.nagios.com/artificial-intelligence/ai-queries-simplified-in-log-server/</link>
		
		<dc:creator><![CDATA[Shamas Demoret]]></dc:creator>
		<pubDate>Wed, 19 Mar 2025 17:41:31 +0000</pubDate>
				<category><![CDATA[Artificial Intelligence]]></category>
		<category><![CDATA[Techtips]]></category>
		<category><![CDATA[Log Monitoring]]></category>
		<category><![CDATA[Log Queries]]></category>
		<guid isPermaLink="false">https://library.nagios.com/?p=43580</guid>

					<description><![CDATA[Artificial Intelligence has captured the world&#8217;s attention and imagination over the last few years. As AI models advance and become more accessible, and as users refine their skills, this technology is poised to drive sweeping change—not just in IT, but across industries in the coming years. An important question to ask yourself about AI is: [&#8230;]]]></description>
										<content:encoded><![CDATA[
<p>Artificial Intelligence has captured the world&#8217;s attention and imagination over the last few years. As AI models advance and become more accessible, and as users refine their skills, this technology is poised to drive sweeping change—not just in IT, but across industries in the coming years. An important question to ask yourself about AI is: what are solid use-cases in my industry? AI is just as fallible as any other software, and even carefully configured human-devised automation carries risks, so in what ways can it be safely used to increase productivity while limiting risk?</p>



<p>One great answer to these questions is built right into Nagios Log Server. You&#8217;re probably already using a variety of custom queries in Nagios Log Server to help you narrow down your collected data into important subsets for your Dashboards and Alerts, but may not be aware that Log Server includes the option to generate queries with AI. In this article, we&#8217;ll discuss the capabilities and how-to&#8217;s of this awesome experimental feature.</p>



<h2 class="wp-block-heading">Setting up the AI</h2>



<p>You have multiple options to choose from when selecting the best AI model to generate your queries. Log Server includes built-in support for Anthropic, Mistral, and Open AI if you wish to use a 3rd party provider. To <a href="https://assets.nagios.com/downloads/nagios-log-server/docs/AI-Queries-in-NLS-2024.pdf" target="_blank" rel="noopener">set this up</a>, navigate to the <strong>Admin &gt; Global Settings</strong> menu, and scroll down to the <strong>Experimental Features</strong> section:</p>



<figure class="wp-block-image aligncenter size-full is-resized has-custom-border is-style-rounded"><a href="https://library.nagios.com/wp-content/uploads/2025/02/NLS-NLP-Setup.png"><img loading="lazy" decoding="async" width="745" height="657" src="https://library.nagios.com/wp-content/uploads/2025/02/NLS-NLP-Setup.png" alt="The Experimental Features menu section in Nagios Log Server, showing the AI integration options and settings." class="wp-image-43913" style="border-radius:8px;object-fit:cover;width:820px;height:700px" title="Seamless AI: Queries Simplified in Log Server 13" srcset="https://library.nagios.com/wp-content/uploads/2025/02/NLS-NLP-Setup.png 745w, https://library.nagios.com/wp-content/uploads/2025/02/NLS-NLP-Setup-300x265.png 300w" sizes="(max-width: 745px) 100vw, 745px" /></a><figcaption class="wp-element-caption">Integrating AI with Log Server is quick and easy. </figcaption></figure>



<p>We&#8217;ve also documented a <a href="https://assets.nagios.com/downloads/nagios-log-server/docs/Serving-Nagios-Enterprises-Large-Language-Models.pdf" target="_blank" rel="noopener">self-hosted option</a> for those who would like to run the Nagios Enterprises’ Large Language Models on their own with vLLM. Once you&#8217;ve accepted the Disclaimer and chosen your method, you&#8217;re ready to go. </p>



<h2 class="wp-block-heading">Generating Queries</h2>



<p>Once you have things set up, it&#8217;s time to start making queries. Navigate to Dashboards, and you&#8217;ll now notice a new look:</p>



<figure class="wp-block-image size-large has-custom-border is-style-rounded"><a href="https://library.nagios.com/wp-content/uploads/2025/02/blank-query-box.png"><img loading="lazy" decoding="async" width="1024" height="178" src="https://library.nagios.com/wp-content/uploads/2025/02/blank-query-box-1024x178.png" alt="The AI query text input box in the Dashboards page of Nagios Log Server" class="wp-image-43788" style="border-radius:8px" title="Seamless AI: Queries Simplified in Log Server 14" srcset="https://library.nagios.com/wp-content/uploads/2025/02/blank-query-box-1024x178.png 1024w, https://library.nagios.com/wp-content/uploads/2025/02/blank-query-box-300x52.png 300w, https://library.nagios.com/wp-content/uploads/2025/02/blank-query-box-768x134.png 768w, https://library.nagios.com/wp-content/uploads/2025/02/blank-query-box.png 1390w" sizes="(max-width: 1024px) 100vw, 1024px" /></a><figcaption class="wp-element-caption">The prompt input section once AI integration is set up. </figcaption></figure>



<p>Now, you can enter a description of what type of log events you&#8217;d like to see. You&#8217;ll notice a few examples alternating in the box to give you some ideas. After you punch in what you&#8217;re looking for, hit enter and enjoy the sparkling stars animation during the second or two it will take for the query to be generated, then review the results. </p>



<p>You&#8217;ll see the filtered results in the various panels of your Dashboard as usual and can click the <strong>Advanced Search</strong> arrow on the right of the prompt section to review, edit, and manage your AI-generated queries. You can also use this section to add your own handmade queries.</p>



<p>For example, the prompt &#8220;show me Linux security events&#8221; generated the following query for us:</p>



<figure class="wp-block-image size-large has-custom-border is-style-rounded"><a href="https://library.nagios.com/wp-content/uploads/2025/02/AI-query-5.png"><img loading="lazy" decoding="async" width="1024" height="659" src="https://library.nagios.com/wp-content/uploads/2025/02/AI-query-5-1024x659.png" alt="A Nagios Log Server dashboard showing the AI-generated query for the prompt &quot;show me linux security events&quot;." class="wp-image-43909" style="border-radius:8px" title="Seamless AI: Queries Simplified in Log Server 15" srcset="https://library.nagios.com/wp-content/uploads/2025/02/AI-query-5-1024x659.png 1024w, https://library.nagios.com/wp-content/uploads/2025/02/AI-query-5-300x193.png 300w, https://library.nagios.com/wp-content/uploads/2025/02/AI-query-5-768x494.png 768w, https://library.nagios.com/wp-content/uploads/2025/02/AI-query-5.png 1121w" sizes="(max-width: 1024px) 100vw, 1024px" /></a><figcaption class="wp-element-caption">An AI query for Linux security events. </figcaption></figure>



<p>This can serve as both a quick way to easily generate simple and complex queries for users of all experience levels and a valuable learning resource for those trying to learn how to compose <a href="https://lucene.apache.org/core/2_9_4/queryparsersyntax.html" target="_blank" rel="noopener">Lucene</a> queries. When useful queries that you may want to use again are generated, be sure to save them.</p>



<p>To combine multiple queries, simply enter another request in the prompt box, and it will be applied to your Dashboard alongside other queries already present. The queries combine with an OR statement, so combined results will be shown, and will be color-coded in Panels such as Events Over Time. You can modify the color representing each query by clicking the small colored circle to the left of their text input boxes, which will open a color wheel popup. </p>



<p>It&#8217;s easy to set up and use this powerful feature, making it valuable for users of all skill levels—even for creating the most complex queries.</p>



<p></p>



<p></p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>Texas A&#038;M Forest Service: Achieving Operational Excellence with Nagios Log Server</title>
		<link>https://library.nagios.com/success-stories/texas-am-forest-service-achieving-operational-excellence-with-nagios-log-server/</link>
		
		<dc:creator><![CDATA[The Nagios Team]]></dc:creator>
		<pubDate>Fri, 14 Mar 2025 21:51:17 +0000</pubDate>
				<category><![CDATA[Success Stories]]></category>
		<category><![CDATA[Education]]></category>
		<category><![CDATA[Log Monitoring]]></category>
		<guid isPermaLink="false">https://library.nagios.com/?p=52270</guid>

					<description><![CDATA[Texas A&#038;M Forest Service boosts security, efficiency, and compliance with Nagios Log Server, achieving centralized log management and real-time monitoring.]]></description>
										<content:encoded><![CDATA[
<h2 class="wp-block-heading"><strong>Introduction</strong></h2>



<p>Texas A&amp;M Forest Service (TAMFS) has a longstanding commitment to protecting and managing the state’s forest resources while responding to wildfires and other natural disasters. Managing vast amounts of data across its statewide operations requires a robust and efficient log management solution. With the adoption of <strong>Nagios Log Server</strong>, TAMFS has transformed its IT operations, ensuring greater reliability, security, and performance.</p>



<h2 class="wp-block-heading"><strong>Challenges Faced by Texas A&amp;M Forest Service</strong></h2>



<p>Before implementing Nagios Log Server, TAMFS encountered several challenges:</p>



<h3 class="wp-block-heading"><strong>Scattered Log Data</strong></h3>



<p>TAMFS operates across multiple locations, creating a decentralized log management issue. IT teams struggled with fragmented log data, making it difficult to analyze system performance and security threats.</p>



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



<p>The existing log management approach lacked real-time monitoring, making it difficult to detect system anomalies or cyber threats.</p>



<h3 class="wp-block-heading"><strong>Compliance and Reporting Issues</strong></h3>



<p>As a government agency, TAMFS must comply with stringent security and data retention policies. Generating reports from disparate logs was time-consuming and prone to errors.</p>



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



<p>Without a centralized logging solution, identifying and resolving IT issues took longer, impacting operational efficiency.</p>



<h2 class="wp-block-heading"><strong>Why Nagios Log Server?</strong></h2>



<p>After assessing multiple solutions, TAMFS chose Nagios Log Server due to its:</p>



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



<p>Capable of handling large amounts of log data from multiple sources.</p>



<h3 class="wp-block-heading"><strong>Real-time Monitoring &amp; Alerting</strong></h3>



<p>Provides near-instant notifications for system anomalies.</p>



<h3 class="wp-block-heading"><strong>User-friendly Interface</strong></h3>



<p>Simplifies log analysis, allowing IT staff to pinpoint issues quickly.</p>



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



<p>Enables automated reporting and data retention compliance.</p>



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



<p>Offers a powerful solution without exceeding budget constraints.</p>



<h2 class="wp-block-heading"><strong>Implementation &amp; Transformation</strong></h2>



<p>The deployment of Nagios Log Server across TAMFS operations was a seamless process, thanks to its easy integration with existing IT infrastructure. Here’s how it revolutionized operations:</p>



<h3 class="wp-block-heading"><strong>1. Centralized Log Management</strong></h3>



<p>With Nagios Log Server, TAMFS successfully unified logs from servers, applications, and network devices into a single repository. This eliminated the inefficiencies of scattered data, enabling IT teams to access and analyze logs from anywhere within the organization.</p>



<h3 class="wp-block-heading"><strong>2. Enhanced Security and Threat Detection</strong></h3>



<p>Cybersecurity is a top priority for TAMFS. Nagios Log Server’s real-time monitoring and alerting system allowed IT teams to detect and respond to potential security breaches proactively. By setting up customized alerts, TAMFS could identify failed login attempts, unauthorized access, and unusual network activity before they escalated into critical issues.</p>



<h3 class="wp-block-heading"><strong>3. Improved System Performance &amp; Issue Resolution</strong></h3>



<p>Before Nagios Log Server, diagnosing IT issues required manual log inspections, causing delays in resolution. Now, with centralized log data and powerful search capabilities, TAMFS IT personnel can quickly identify system errors, performance bottlenecks, and failing hardware, reducing downtime and enhancing productivity.</p>



<h3 class="wp-block-heading"><strong>4. Compliance &amp; Reporting Made Easy</strong></h3>



<p>As a state agency, TAMFS must comply with federal and state regulations concerning data security, log retention, and reporting. Nagios Log Server streamlined compliance efforts by automatically generating reports, securely storing log data, and ensuring adherence to audit requirements without added complexity.</p>



<h3 class="wp-block-heading"><strong>5. Cost Savings &amp; Operational Efficiency</strong></h3>



<p>Nagios Log Server provided TAMFS with a budget-friendly yet powerful log management solution. By reducing manual troubleshooting efforts, optimizing IT resource allocation, and preventing costly downtime, the agency saved both time and money. Additionally, the solution&#8217;s pricing didn&#8217;t change based on the amount of log data ingested.</p>



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



<p>The implementation of <strong>Nagios Log Server</strong> at Texas A&amp;M Forest Service has been a game-changer, ensuring that the agency remains resilient, efficient, and secure in its mission to protect Texas’s forests and natural resources. By embracing a centralized log management solution, TAMFS has achieved operational excellence, setting a benchmark for other state agencies. With Nagios Log Server, the future of IT management at TAMFS looks stronger than ever.</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>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>Monitoring Windows Event Logs via SNMP in Nagios XI</title>
		<link>https://library.nagios.com/monitoring/monitoring-windows-event-logs-via-snmp-in-nagios-xi/</link>
		
		<dc:creator><![CDATA[Jack Brisben]]></dc:creator>
		<pubDate>Fri, 07 Mar 2025 21:33:22 +0000</pubDate>
				<category><![CDATA[Monitoring]]></category>
		<category><![CDATA[Documentation]]></category>
		<category><![CDATA[Log Monitoring]]></category>
		<category><![CDATA[Operating System Monitoring]]></category>
		<category><![CDATA[SNMP]]></category>
		<guid isPermaLink="false">https://library.nagios.com/?p=51677</guid>

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



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



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



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



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



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



<p>SNMP is a lightweight protocol that requires minimal resources while offering detailed system information.</p>



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



<p>SNMP is a widely accepted protocol, making it compatible with various monitoring tools, including Nagios XI.</p>



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



<p>With SNMP, organizations can customize monitoring by configuring additional performance metrics based on their requirements.</p>



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



<p>Before configuring SNMP for Windows monitoring in Nagios XI, ensure the following:</p>



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



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



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



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



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



<p>To enable SNMP monitoring, install and configure the SNMP service on Windows.</p>



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



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



<li>Run the following command to install SNMP:</li>
</ol>



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



<p>      3. Verify SNMP installation:</p>



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



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



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



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



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



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



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



<li>Restart the SNMP service:</li>
</ol>



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



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



<p>To integrate SNMP monitoring in Nagios XI, configure SNMP checks for the Windows server.</p>



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



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



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



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



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



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



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



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



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



<p>Alternatively, add an SNMP host manually in Nagios XI.</p>



<h4 class="wp-block-heading">Example Nagios XI Configuration for SNMP Host:</h4>



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



<h4 class="wp-block-heading">Example Nagios XI Service Configuration for SNMP:</h4>



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



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



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



<ul class="wp-block-list">
<li>Confirm SNMP service status on Windows:</li>
</ul>



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



<ul class="wp-block-list">
<li>Test SNMP response from Nagios XI:</li>
</ul>



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



<ul class="wp-block-list">
<li>Check Nagios XI configuration syntax:</li>
</ul>



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



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



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



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



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