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

<channel>
	<title>Kali Linux &#8211; Nagios Library</title>
	<atom:link href="https://library.nagios.com/tag/kali-linux/feed/" rel="self" type="application/rss+xml" />
	<link>https://library.nagios.com</link>
	<description>Complete Nagios monitoring resources and documentation</description>
	<lastBuildDate>Tue, 24 Feb 2026 16:21:29 +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>Kali Linux &#8211; Nagios Library</title>
	<link>https://library.nagios.com</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>How to Send Logs from Kali Linux to Nagios Log Server</title>
		<link>https://library.nagios.com/tutorials/send-logs-kali-linux-nagios-ls/</link>
		
		<dc:creator><![CDATA[Steven Phan]]></dc:creator>
		<pubDate>Fri, 28 Mar 2025 21:57:18 +0000</pubDate>
				<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[Monitoring]]></category>
		<category><![CDATA[Training]]></category>
		<category><![CDATA[Kali Linux]]></category>
		<category><![CDATA[Nagios Log Server]]></category>
		<guid isPermaLink="false">https://library.nagios.com/?p=53709</guid>

					<description><![CDATA[Sending logs from a Kali Linux system to Nagios Log Server involves configuring your Kali system to forward its logs to the NLS instance. This process ensures that all relevant log data from your Kali Linux system is collected, monitored, and analyzed by the Nagios Log Server, providing comprehensive insights into system activities and potential [&#8230;]]]></description>
										<content:encoded><![CDATA[
<p>Sending logs from a Kali Linux system to Nagios Log Server involves configuring your Kali system to forward its logs to the NLS instance. This process ensures that all relevant log data from your Kali Linux system is collected, monitored, and analyzed by the Nagios Log Server, providing comprehensive insights into system activities and potential security events. Here is a detailed breakdown of how to send logs from Kali Linux to Nagios Log Server.</p>



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



<p>Here is what you need before you begin:</p>



<ul class="wp-block-list">
<li>A system running Kali Linux</li>



<li>Nagios Log Server instance to access the web interface</li>



<li>Root or sudo access for advanced operations</li>



<li>Internet access to download packages</li>
</ul>



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



<p>Open the terminal and update your packages, and then install rsyslog, which is typically used for log management.</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 apt update
sudo apt install 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: #9CDCFE">sudo</span><span style="color: #D4D4D4"> </span><span style="color: #9CDCFE">apt</span><span style="color: #D4D4D4"> </span><span style="color: #9CDCFE">update</span></span>
<span class="line"><span style="color: #9CDCFE">sudo</span><span style="color: #D4D4D4"> </span><span style="color: #9CDCFE">apt</span><span style="color: #D4D4D4"> </span><span style="color: #9CDCFE">install</span><span style="color: #D4D4D4"> </span><span style="color: #9CDCFE">rsyslog</span></span></code></pre></div>



<h3 class="wp-block-heading">Step 2: Configure the Rsyslog File</h3>



<p>Configure rsyslog by editing the rsyslog configuration file in <strong>/etc/rsyslog.conf</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" data-code="sudo nano /etc/rsyslog.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: #9CDCFE">sudo</span><span style="color: #D4D4D4"> </span><span style="color: #9CDCFE">nano</span><span style="color: #D4D4D4"> /</span><span style="color: #9CDCFE">etc</span><span style="color: #D4D4D4">/</span><span style="color: #9CDCFE">rsyslog</span><span style="color: #D4D4D4">.</span><span style="color: #9CDCFE">conf</span></span></code></pre></div>



<p>Add the following lines to the end of the file; switch <strong>nagios_log_server_ip</strong> with the IP address of your 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" data-code="*.* @nagios_log_server_ip: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">*.* @</span><span style="color: #9CDCFE">nagios_log_server_ip</span><span style="color: #D4D4D4">:</span><span style="color: #B5CEA8">5544</span></span></code></pre></div>



<p>Save your file and 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" 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: #9CDCFE">sudo</span><span style="color: #D4D4D4"> </span><span style="color: #9CDCFE">systemctl</span><span style="color: #D4D4D4"> </span><span style="color: #9CDCFE">restart</span><span style="color: #D4D4D4"> </span><span style="color: #9CDCFE">rsyslog</span></span></code></pre></div>



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



<p>Boot up a browser and login to your Nagios Log Server web interface.</p>



<figure class="wp-block-image aligncenter size-large"><a href="https://library.nagios.com/wp-content/uploads/2025/03/Nagios-LS-Login-Kali.png"><img fetchpriority="high" decoding="async" width="1024" height="618" src="https://library.nagios.com/wp-content/uploads/2025/03/Nagios-LS-Login-Kali-1024x618.png" alt="Nagios LS Login Kali" class="wp-image-53767" title="How to Send Logs from Kali Linux to Nagios Log Server 1" srcset="https://library.nagios.com/wp-content/uploads/2025/03/Nagios-LS-Login-Kali-1024x618.png 1024w, https://library.nagios.com/wp-content/uploads/2025/03/Nagios-LS-Login-Kali-300x181.png 300w, https://library.nagios.com/wp-content/uploads/2025/03/Nagios-LS-Login-Kali-768x464.png 768w, https://library.nagios.com/wp-content/uploads/2025/03/Nagios-LS-Login-Kali-1536x927.png 1536w, https://library.nagios.com/wp-content/uploads/2025/03/Nagios-LS-Login-Kali.png 1718w" sizes="(max-width: 1024px) 100vw, 1024px" /></a><figcaption class="wp-element-caption">Nagios Log Server Login</figcaption></figure>



<p>From the homepage, click <strong>+ Linux</strong>&nbsp;to configure your logs.</p>



<figure class="wp-block-image aligncenter size-large"><a href="https://library.nagios.com/wp-content/uploads/2025/03/Homepage-LS-Kali.png"><img decoding="async" width="1024" height="618" src="https://library.nagios.com/wp-content/uploads/2025/03/Homepage-LS-Kali-1024x618.png" alt="Homepage LS Kali" class="wp-image-53770" title="How to Send Logs from Kali Linux to Nagios Log Server 2" srcset="https://library.nagios.com/wp-content/uploads/2025/03/Homepage-LS-Kali-1024x618.png 1024w, https://library.nagios.com/wp-content/uploads/2025/03/Homepage-LS-Kali-300x181.png 300w, https://library.nagios.com/wp-content/uploads/2025/03/Homepage-LS-Kali-768x464.png 768w, https://library.nagios.com/wp-content/uploads/2025/03/Homepage-LS-Kali-1536x927.png 1536w, https://library.nagios.com/wp-content/uploads/2025/03/Homepage-LS-Kali.png 1716w" sizes="(max-width: 1024px) 100vw, 1024px" /></a><figcaption class="wp-element-caption">Log Server Homepage</figcaption></figure>



<p>On the Linux configuration page, Nagios Log Server provides a setup script to configure rsyslog from the box below.</p>



<figure class="wp-block-image aligncenter size-large"><a href="https://library.nagios.com/wp-content/uploads/2025/03/Linux-Configure-LS-Kali.png"><img decoding="async" width="1024" height="620" src="https://library.nagios.com/wp-content/uploads/2025/03/Linux-Configure-LS-Kali-1024x620.png" alt="Linux Configure LS Kali" class="wp-image-53771" title="How to Send Logs from Kali Linux to Nagios Log Server 3" srcset="https://library.nagios.com/wp-content/uploads/2025/03/Linux-Configure-LS-Kali-1024x620.png 1024w, https://library.nagios.com/wp-content/uploads/2025/03/Linux-Configure-LS-Kali-300x182.png 300w, https://library.nagios.com/wp-content/uploads/2025/03/Linux-Configure-LS-Kali-768x465.png 768w, https://library.nagios.com/wp-content/uploads/2025/03/Linux-Configure-LS-Kali-1536x930.png 1536w, https://library.nagios.com/wp-content/uploads/2025/03/Linux-Configure-LS-Kali.png 1718w" sizes="(max-width: 1024px) 100vw, 1024px" /></a><figcaption class="wp-element-caption">Linux Configuration</figcaption></figure>



<p>Run the setup using&nbsp;<code>curl</code> and execute the downloaded script to configure rsyslog. Change <strong>&lt;your-nagios-log-server-address&gt;</strong> to your IP address of your 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" data-code="curl -sS -O http://&lt;your-nagios-log-server-address&gt;/nagioslogserver/scripts/setup-linux.sh" 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: #9CDCFE">curl</span><span style="color: #D4D4D4"> -</span><span style="color: #9CDCFE">sS</span><span style="color: #D4D4D4"> -</span><span style="color: #4FC1FF">O</span><span style="color: #D4D4D4"> </span><span style="color: #C8C8C8">http</span><span style="color: #D4D4D4">:</span><span style="color: #6A9955">//&lt;your-nagios-log-server-address&gt;/nagioslogserver/scripts/setup-linux.sh</span></span></code></pre></div>



<div class="wp-block-kevinbatdorf-code-block-pro" data-code-block-pro-font-family="Code-Pro-Geist-Mono" style="font-size:.875rem;font-family:Code-Pro-Geist-Mono,ui-monospace,SFMono-Regular,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 bash setup-linux.sh -s &lt;your-nagios-log-server-address&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: #9CDCFE">sudo</span><span style="color: #D4D4D4"> </span><span style="color: #9CDCFE">bash</span><span style="color: #D4D4D4"> </span><span style="color: #9CDCFE">setup</span><span style="color: #D4D4D4">-</span><span style="color: #9CDCFE">linux</span><span style="color: #D4D4D4">.</span><span style="color: #9CDCFE">sh</span><span style="color: #D4D4D4"> -</span><span style="color: #9CDCFE">s</span><span style="color: #D4D4D4"> &lt;</span><span style="color: #9CDCFE">your</span><span style="color: #D4D4D4">-</span><span style="color: #9CDCFE">nagios</span><span style="color: #D4D4D4">-</span><span style="color: #9CDCFE">log</span><span style="color: #D4D4D4">-</span><span style="color: #9CDCFE">server</span><span style="color: #D4D4D4">-</span><span style="color: #9CDCFE">address</span><span style="color: #D4D4D4">&gt; -</span><span style="color: #9CDCFE">p</span><span style="color: #D4D4D4"> </span><span style="color: #B5CEA8">5544</span></span></code></pre></div>



<p>Put your Kali Linux IP address and check if the logs are being sent to the Nagios Log Server.</p>



<figure class="wp-block-image aligncenter size-large"><a href="https://library.nagios.com/wp-content/uploads/2025/03/Verified-Logs-LS-Kali.png"><img loading="lazy" decoding="async" width="1024" height="168" src="https://library.nagios.com/wp-content/uploads/2025/03/Verified-Logs-LS-Kali-1024x168.png" alt="Verified Logs LS Kali" class="wp-image-53772" title="How to Send Logs from Kali Linux to Nagios Log Server 4" srcset="https://library.nagios.com/wp-content/uploads/2025/03/Verified-Logs-LS-Kali-1024x168.png 1024w, https://library.nagios.com/wp-content/uploads/2025/03/Verified-Logs-LS-Kali-300x49.png 300w, https://library.nagios.com/wp-content/uploads/2025/03/Verified-Logs-LS-Kali-768x126.png 768w, https://library.nagios.com/wp-content/uploads/2025/03/Verified-Logs-LS-Kali.png 1049w" sizes="(max-width: 1024px) 100vw, 1024px" /></a><figcaption class="wp-element-caption">Verified Incoming Logs</figcaption></figure>



<h3 class="wp-block-heading">Step 4: Verify the Logs from the Dashboard</h3>



<p>Navigate to the Nagios Log Server dashboard by clicking the four squares icon. Verify that logs from your Kali Linux machine are being received by running a query for its IP address.</p>



<figure class="wp-block-image aligncenter size-large"><a href="https://library.nagios.com/wp-content/uploads/2025/03/Dashboard-LS-Kali-1.png"><img loading="lazy" decoding="async" width="1024" height="619" src="https://library.nagios.com/wp-content/uploads/2025/03/Dashboard-LS-Kali-1-1024x619.png" alt="Dashboard LS Kali 1" class="wp-image-53815" title="How to Send Logs from Kali Linux to Nagios Log Server 5" srcset="https://library.nagios.com/wp-content/uploads/2025/03/Dashboard-LS-Kali-1-1024x619.png 1024w, https://library.nagios.com/wp-content/uploads/2025/03/Dashboard-LS-Kali-1-300x181.png 300w, https://library.nagios.com/wp-content/uploads/2025/03/Dashboard-LS-Kali-1-768x464.png 768w, https://library.nagios.com/wp-content/uploads/2025/03/Dashboard-LS-Kali-1-1536x928.png 1536w, https://library.nagios.com/wp-content/uploads/2025/03/Dashboard-LS-Kali-1.png 1718w" sizes="(max-width: 1024px) 100vw, 1024px" /></a><figcaption class="wp-element-caption">Log Server Dashboard</figcaption></figure>



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



<p>By following these steps, you can efficiently send logs from Kali Linux to Nagios Log Server, centralizing your log data for easier monitoring and analysis. This setup helps you track system events, troubleshoot issues, and maintain a secure network environment. If you have additional questions or other support-related questions, please visit us at our <a href="https://support.nagios.com/forum/" data-type="link" data-id="https://support.nagios.com/forum/" target="_blank" rel="noopener">Nagios Support Forum</a>, <a href="https://support.nagios.com/kb/" data-type="link" data-id="https://support.nagios.com/kb/" target="_blank" rel="noopener">Nagios Knowledge Base</a>, or <a href="https://library.nagios.com/" target="_blank" data-type="link" data-id="https://library.nagios.com/" rel="noreferrer noopener">Nagios Library</a>.</p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>How to Configure SNMP on Kali Linux for Nagios XI</title>
		<link>https://library.nagios.com/tutorials/configure-snmp-kali-linux-nagios-xi/</link>
		
		<dc:creator><![CDATA[Steven Phan]]></dc:creator>
		<pubDate>Fri, 28 Mar 2025 21:55:20 +0000</pubDate>
				<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[Monitoring]]></category>
		<category><![CDATA[Training]]></category>
		<category><![CDATA[Kali Linux]]></category>
		<category><![CDATA[SNMP]]></category>
		<guid isPermaLink="false">https://library.nagios.com/?p=53691</guid>

					<description><![CDATA[Configuring SNMP on Kali Linux for Nagios XI involves several essential steps, including installing SNMP packages, setting up community strings, and verifying the service. This comprehensive configuration allows Nagios XI to effectively monitor your system&#8217;s performance and health, ensuring you can maintain optimal functionality. Here is a detailed guide on how to configure SNMP on [&#8230;]]]></description>
										<content:encoded><![CDATA[
<p>Configuring SNMP on Kali Linux for Nagios XI involves several essential steps, including installing SNMP packages, setting up community strings, and verifying the service. This comprehensive configuration allows Nagios XI to effectively monitor your system&#8217;s performance and health, ensuring you can maintain optimal functionality. Here is a detailed guide on how to configure SNMP on Kali Linux for Nagios XI.</p>



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



<p>The requirements to do the guide:</p>



<ul class="wp-block-list">
<li>A system running Kali Linux</li>



<li>Nagios XI instance to access the web interface</li>



<li>Root or sudo access for advanced operations</li>



<li>Internet access to download packages</li>
</ul>



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



<p>First, ensure that the necessary SNMP packages are installed on your Kali Linux system. Open a terminal and run the following commands.</p>



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



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



<p>The main configuration file for the SNMP daemon is <strong>/etc/snmp/snmpd.conf</strong>. Edit this file to define the SNMP community string, system information, and access control. Remember to back up the original file first.</p>



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



<p>Find the line that have community lines and add or modify the community string for your Nagios XI server. Replace <strong>your_read_only_community_string</strong> with a strong, secure community string, and update <strong>nagios_xi_server_ip</strong> to the IP address of your Nagios XI server.</p>



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



<p>Save and close the file.</p>



<h3 class="wp-block-heading">Step 3: Restart the SNMP Daemon</h3>



<p>After making changes to the configuration file, restart the SNMP daemon to apply the changes and check the status of the service.</p>



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



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



<p>Add the Kali Linux host to Nagios XI by logging in to your Nagios XI web interface.</p>



<figure class="wp-block-image aligncenter size-large"><a href="https://library.nagios.com/wp-content/uploads/2025/03/Nagios-XI-Login-Kali-1.png"><img loading="lazy" decoding="async" width="1024" height="620" src="https://library.nagios.com/wp-content/uploads/2025/03/Nagios-XI-Login-Kali-1-1024x620.png" alt="Nagios XI Login Kali 1" class="wp-image-53697" title="How to Configure SNMP on Kali Linux for Nagios XI 6" srcset="https://library.nagios.com/wp-content/uploads/2025/03/Nagios-XI-Login-Kali-1-1024x620.png 1024w, https://library.nagios.com/wp-content/uploads/2025/03/Nagios-XI-Login-Kali-1-300x182.png 300w, https://library.nagios.com/wp-content/uploads/2025/03/Nagios-XI-Login-Kali-1-768x465.png 768w, https://library.nagios.com/wp-content/uploads/2025/03/Nagios-XI-Login-Kali-1-1536x931.png 1536w, https://library.nagios.com/wp-content/uploads/2025/03/Nagios-XI-Login-Kali-1.png 1715w" sizes="(max-width: 1024px) 100vw, 1024px" /></a><figcaption class="wp-element-caption">Nagios XI Login</figcaption></figure>



<p>Click the gear icon on the <strong>Configure </strong>tab, then navigate to the <strong>Configuration Wizards</strong> and select the <strong>Linux Server</strong> from the wizard list.</p>



<figure class="wp-block-image aligncenter size-large"><a href="https://library.nagios.com/wp-content/uploads/2025/03/Wizard-List-for-SNMP-XI-Kali.png"><img loading="lazy" decoding="async" width="1024" height="619" src="https://library.nagios.com/wp-content/uploads/2025/03/Wizard-List-for-SNMP-XI-Kali-1024x619.png" alt="Wizard List for SNMP XI Kali" class="wp-image-53700" title="How to Configure SNMP on Kali Linux for Nagios XI 7" srcset="https://library.nagios.com/wp-content/uploads/2025/03/Wizard-List-for-SNMP-XI-Kali-1024x619.png 1024w, https://library.nagios.com/wp-content/uploads/2025/03/Wizard-List-for-SNMP-XI-Kali-300x181.png 300w, https://library.nagios.com/wp-content/uploads/2025/03/Wizard-List-for-SNMP-XI-Kali-768x465.png 768w, https://library.nagios.com/wp-content/uploads/2025/03/Wizard-List-for-SNMP-XI-Kali-1536x929.png 1536w, https://library.nagios.com/wp-content/uploads/2025/03/Wizard-List-for-SNMP-XI-Kali.png 1716w" sizes="(max-width: 1024px) 100vw, 1024px" /></a><figcaption class="wp-element-caption">Wizard List</figcaption></figure>



<p>Follow the wizard instructions by entering the IP address of your Kali Linux machine and specifying your SNMP community string you added earlier.</p>



<figure class="wp-block-image aligncenter size-large"><a href="https://library.nagios.com/wp-content/uploads/2025/03/Linux-SNMP-Wizard-XI-Kali.png"><img loading="lazy" decoding="async" width="1024" height="619" src="https://library.nagios.com/wp-content/uploads/2025/03/Linux-SNMP-Wizard-XI-Kali-1024x619.png" alt="Linux SNMP Wizard XI Kali" class="wp-image-53701" title="How to Configure SNMP on Kali Linux for Nagios XI 8" srcset="https://library.nagios.com/wp-content/uploads/2025/03/Linux-SNMP-Wizard-XI-Kali-1024x619.png 1024w, https://library.nagios.com/wp-content/uploads/2025/03/Linux-SNMP-Wizard-XI-Kali-300x181.png 300w, https://library.nagios.com/wp-content/uploads/2025/03/Linux-SNMP-Wizard-XI-Kali-768x464.png 768w, https://library.nagios.com/wp-content/uploads/2025/03/Linux-SNMP-Wizard-XI-Kali-1536x928.png 1536w, https://library.nagios.com/wp-content/uploads/2025/03/Linux-SNMP-Wizard-XI-Kali.png 1716w" sizes="(max-width: 1024px) 100vw, 1024px" /></a><figcaption class="wp-element-caption">Linux SNMP Configuration Wizard</figcaption></figure>



<p>Configure the rest of the wizard SNMP checks. You have the choice to add more specific SNMP checks using the SNMP Walk or SNMP Query services within Nagios XI or by manually defining service checks.</p>



<figure class="wp-block-image aligncenter size-large"><a href="https://library.nagios.com/wp-content/uploads/2025/03/More-Linux-SNMP-Wizard-XI-Kali.png"><img loading="lazy" decoding="async" width="1024" height="619" src="https://library.nagios.com/wp-content/uploads/2025/03/More-Linux-SNMP-Wizard-XI-Kali-1024x619.png" alt="More Linux SNMP Wizard XI Kali" class="wp-image-53702" title="How to Configure SNMP on Kali Linux for Nagios XI 9" srcset="https://library.nagios.com/wp-content/uploads/2025/03/More-Linux-SNMP-Wizard-XI-Kali-1024x619.png 1024w, https://library.nagios.com/wp-content/uploads/2025/03/More-Linux-SNMP-Wizard-XI-Kali-300x181.png 300w, https://library.nagios.com/wp-content/uploads/2025/03/More-Linux-SNMP-Wizard-XI-Kali-768x464.png 768w, https://library.nagios.com/wp-content/uploads/2025/03/More-Linux-SNMP-Wizard-XI-Kali-1536x928.png 1536w, https://library.nagios.com/wp-content/uploads/2025/03/More-Linux-SNMP-Wizard-XI-Kali.png 1718w" sizes="(max-width: 1024px) 100vw, 1024px" /></a><figcaption class="wp-element-caption">More Linux SNMP Configurations</figcaption></figure>



<h3 class="wp-block-heading">Step 5: Verify your SNMP Checks</h3>



<p>After adding the host and configuring the checks, ensure that Nagios XI is successfully receiving SNMP data from your Kali Linux machine from your status page.</p>



<figure class="wp-block-image aligncenter size-large"><a href="https://library.nagios.com/wp-content/uploads/2025/03/SNMP-Status-XI-Kali.png"><img loading="lazy" decoding="async" width="1024" height="618" src="https://library.nagios.com/wp-content/uploads/2025/03/SNMP-Status-XI-Kali-1024x618.png" alt="SNMP Status XI Kali" class="wp-image-53703" title="How to Configure SNMP on Kali Linux for Nagios XI 10" srcset="https://library.nagios.com/wp-content/uploads/2025/03/SNMP-Status-XI-Kali-1024x618.png 1024w, https://library.nagios.com/wp-content/uploads/2025/03/SNMP-Status-XI-Kali-300x181.png 300w, https://library.nagios.com/wp-content/uploads/2025/03/SNMP-Status-XI-Kali-768x463.png 768w, https://library.nagios.com/wp-content/uploads/2025/03/SNMP-Status-XI-Kali-1536x927.png 1536w, https://library.nagios.com/wp-content/uploads/2025/03/SNMP-Status-XI-Kali.png 1717w" sizes="(max-width: 1024px) 100vw, 1024px" /></a><figcaption class="wp-element-caption">Status Page</figcaption></figure>



<h3 class="wp-block-heading">Important Security Considerations</h3>



<ul class="wp-block-list">
<li><strong>Use strong community strings</strong>: Never use default community strings like <strong>public</strong> or <strong>private</strong>.</li>



<li>R<strong>estrict SNMP access</strong>: Limit SNMP access to only the necessary IP addresses or networks.</li>



<li><strong>Firewall rules</strong>: Ensure that your firewall allows SNMP traffic (UDP port 161) from your Nagios XI server to the Kali Linux machine.</li>
</ul>



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



<p>By following this guide, you can successfully configure SNMP on Kali Linux for monitoring with Nagios XI. This setup will help you track your system&#8217;s performance and promptly address any issues, ensuring optimal reliability. If you have additional questions or other support-related questions, please visit us at our <a href="https://support.nagios.com/forum/" data-type="link" data-id="https://support.nagios.com/forum/" target="_blank" rel="noopener">Nagios Support Forum</a>, <a href="https://support.nagios.com/kb/" data-type="link" data-id="https://support.nagios.com/kb/" target="_blank" rel="noopener">Nagios Knowledge Base</a>, or <a href="https://library.nagios.com/" target="_blank" data-type="link" data-id="https://library.nagios.com/" rel="noreferrer noopener">Nagios Library</a>.</p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>How to Integrate NCPA for Kali Linux with Nagios XI</title>
		<link>https://library.nagios.com/tutorials/integrate-ncpa-kali-linux-nagios-xi/</link>
		
		<dc:creator><![CDATA[Steven Phan]]></dc:creator>
		<pubDate>Fri, 28 Mar 2025 21:53:24 +0000</pubDate>
				<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[Monitoring]]></category>
		<category><![CDATA[Training]]></category>
		<category><![CDATA[Kali Linux]]></category>
		<category><![CDATA[NCPA]]></category>
		<guid isPermaLink="false">https://library.nagios.com/?p=53577</guid>

					<description><![CDATA[Integrating NCPA (Nagios Cross-Platform Agent) on Kali Linux with Nagios XI allows you to monitor critical system metrics like CPU usage, memory, disk space, and custom scripts. This setup ensures optimal performance and helps identify issues early. Follow this step-by-step guide to configure NCPA on your Kali Linux system for seamless monitoring with Nagios XI. [&#8230;]]]></description>
										<content:encoded><![CDATA[
<p>Integrating NCPA (Nagios Cross-Platform Agent) on Kali Linux with Nagios XI allows you to monitor critical system metrics like CPU usage, memory, disk space, and custom scripts. This setup ensures optimal performance and helps identify issues early. Follow this step-by-step guide to configure NCPA on your Kali Linux system for seamless monitoring with Nagios XI.</p>



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



<p>Key factors before beginning the guide:</p>



<ul class="wp-block-list">
<li>A system running Kali Linux</li>



<li>Nagios XI instance to access the web interface</li>



<li>Root or sudo access for advanced operations</li>



<li>Internet access to download packages</li>
</ul>



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



<p>First, you need to install the NCPA agent on your Kali Linux machine. You can download the NCPA package from the <a href="https://www.nagios.org/projects/ncpa/#download-ncpa-section" target="_blank" rel="noopener">Nagios website</a> and use the <strong>DEB </strong>file to download that is based on Debian.</p>



<figure class="wp-block-image aligncenter size-large"><a href="https://library.nagios.com/wp-content/uploads/2025/03/NCPA-Download-Page-Kali.png"><img loading="lazy" decoding="async" width="1024" height="619" src="https://library.nagios.com/wp-content/uploads/2025/03/NCPA-Download-Page-Kali-1024x619.png" alt="NCPA Download Page Kali" class="wp-image-53590" title="How to Integrate NCPA for Kali Linux with Nagios XI 11" srcset="https://library.nagios.com/wp-content/uploads/2025/03/NCPA-Download-Page-Kali-1024x619.png 1024w, https://library.nagios.com/wp-content/uploads/2025/03/NCPA-Download-Page-Kali-300x181.png 300w, https://library.nagios.com/wp-content/uploads/2025/03/NCPA-Download-Page-Kali-768x464.png 768w, https://library.nagios.com/wp-content/uploads/2025/03/NCPA-Download-Page-Kali-1536x928.png 1536w, https://library.nagios.com/wp-content/uploads/2025/03/NCPA-Download-Page-Kali.png 1718w" sizes="(max-width: 1024px) 100vw, 1024px" /></a><figcaption class="wp-element-caption">NCPA Download Page</figcaption></figure>



<p>Open your terminal and update your packages.</p>



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



<p>Use <strong>wget </strong>and <strong>curl </strong>to put the URL for the NCPA link that you downloaded from the Nagios website.</p>



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



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



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



<p>Use the <strong>dpkg </strong>command to install the package of the downloaded <strong>DEB </strong>package.</p>



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



<p>If you encounter dependency issues, you might need to run this command.</p>



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



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



<p>After installation, configure the NCPA agent by editing the <strong>ncpa.cfg</strong> file, typically located in <strong>/usr/local/ncpa/etc/</strong>. Set the necessary parameters, such as the token for authentication.</p>



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



<p>Find the line that says <strong>community_string</strong> and set it to a secure token by changing <strong>mytoken</strong> to your unique token under the <strong>[listener]</strong> section.</p>



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



<figure class="wp-block-image aligncenter size-large"><a href="https://library.nagios.com/wp-content/uploads/2025/03/NCPA-File-Editor-Kali.png"><img loading="lazy" decoding="async" width="1024" height="618" src="https://library.nagios.com/wp-content/uploads/2025/03/NCPA-File-Editor-Kali-1024x618.png" alt="NCPA File Editor Kali" class="wp-image-53616" title="How to Integrate NCPA for Kali Linux with Nagios XI 12" srcset="https://library.nagios.com/wp-content/uploads/2025/03/NCPA-File-Editor-Kali-1024x618.png 1024w, https://library.nagios.com/wp-content/uploads/2025/03/NCPA-File-Editor-Kali-300x181.png 300w, https://library.nagios.com/wp-content/uploads/2025/03/NCPA-File-Editor-Kali-768x463.png 768w, https://library.nagios.com/wp-content/uploads/2025/03/NCPA-File-Editor-Kali-1536x927.png 1536w, https://library.nagios.com/wp-content/uploads/2025/03/NCPA-File-Editor-Kali.png 1717w" sizes="(max-width: 1024px) 100vw, 1024px" /></a><figcaption class="wp-element-caption">ncpa.cfg Text Editor</figcaption></figure>



<p>After making this change, save and close the file.</p>



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



<p>Restart and enable the NCPA service to start automatically at boot.</p>



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



<h3 class="wp-block-heading">Step 5: Allow NCPA Port in Firewall</h3>



<p>If your firewall is enabled, you&#8217;ll need to allow traffic on port 5693 using <strong>ufw</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 ufw allow 5693/tcp
sudo ufw reload</textarea></pre><svg xmlns="http://www.w3.org/2000/svg" style="width:24px;height:24px" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2"><path class="with-check" stroke-linecap="round" stroke-linejoin="round" d="M4.5 12.75l6 6 9-13.5"></path><path class="without-check" stroke-linecap="round" stroke-linejoin="round" d="M16.5 8.25V6a2.25 2.25 0 00-2.25-2.25H6A2.25 2.25 0 003.75 6v8.25A2.25 2.25 0 006 16.5h2.25m8.25-8.25H18a2.25 2.25 0 012.25 2.25V18A2.25 2.25 0 0118 20.25h-7.5A2.25 2.25 0 018.25 18v-1.5m8.25-8.25h-6a2.25 2.25 0 00-2.25 2.25v6"></path></svg></span><pre class="shiki dark-plus" style="background-color: #1E1E1E" tabindex="0"><code><span class="line"><span style="color: #9CDCFE">sudo</span><span style="color: #D4D4D4"> </span><span style="color: #9CDCFE">ufw</span><span style="color: #D4D4D4"> </span><span style="color: #9CDCFE">allow</span><span style="color: #D4D4D4"> </span><span style="color: #B5CEA8">5693</span><span style="color: #D4D4D4">/</span><span style="color: #9CDCFE">tcp</span></span>
<span class="line"><span style="color: #9CDCFE">sudo</span><span style="color: #D4D4D4"> </span><span style="color: #9CDCFE">ufw</span><span style="color: #D4D4D4"> </span><span style="color: #9CDCFE">reload</span></span></code></pre></div>



<h3 class="wp-block-heading">Step 6: Test NCPA on the Web Interface</h3>



<p>Test the NCPA functionally by visiting the NCPA web interface via a browser to see if it is working. Enter the URL from the address bar and change <strong>NCPA_IP_Address</strong> to your Kali Linux IP address or use <strong>0.0.0.0</strong>. Furthermore, 5693 is the default port number.</p>



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



<p>There will be a security popup when you&#8217;re trying to access the NCPA webpage; you can skip this by clicking <strong>Advanced </strong>and then clicking <strong>Accept the Risk and Continue</strong>.</p>



<figure class="wp-block-image aligncenter size-large"><a href="https://library.nagios.com/wp-content/uploads/2025/03/Warning-Message-Kali.png"><img loading="lazy" decoding="async" width="1024" height="619" src="https://library.nagios.com/wp-content/uploads/2025/03/Warning-Message-Kali-1024x619.png" alt="Warning Message Kali" class="wp-image-53609" title="How to Integrate NCPA for Kali Linux with Nagios XI 13" srcset="https://library.nagios.com/wp-content/uploads/2025/03/Warning-Message-Kali-1024x619.png 1024w, https://library.nagios.com/wp-content/uploads/2025/03/Warning-Message-Kali-300x181.png 300w, https://library.nagios.com/wp-content/uploads/2025/03/Warning-Message-Kali-768x464.png 768w, https://library.nagios.com/wp-content/uploads/2025/03/Warning-Message-Kali-1536x928.png 1536w, https://library.nagios.com/wp-content/uploads/2025/03/Warning-Message-Kali.png 1718w" sizes="(max-width: 1024px) 100vw, 1024px" /></a><figcaption class="wp-element-caption">Security Popup</figcaption></figure>



<p>Login to the NCPA web GUI by using your token you used for your community string.</p>



<figure class="wp-block-image aligncenter size-large"><a href="https://library.nagios.com/wp-content/uploads/2025/03/NCPA-Login-Kali.png"><img loading="lazy" decoding="async" width="1024" height="618" src="https://library.nagios.com/wp-content/uploads/2025/03/NCPA-Login-Kali-1024x618.png" alt="NCPA Login Kali" class="wp-image-53610" title="How to Integrate NCPA for Kali Linux with Nagios XI 14" srcset="https://library.nagios.com/wp-content/uploads/2025/03/NCPA-Login-Kali-1024x618.png 1024w, https://library.nagios.com/wp-content/uploads/2025/03/NCPA-Login-Kali-300x181.png 300w, https://library.nagios.com/wp-content/uploads/2025/03/NCPA-Login-Kali-768x464.png 768w, https://library.nagios.com/wp-content/uploads/2025/03/NCPA-Login-Kali-1536x927.png 1536w, https://library.nagios.com/wp-content/uploads/2025/03/NCPA-Login-Kali.png 1718w" sizes="(max-width: 1024px) 100vw, 1024px" /></a><figcaption class="wp-element-caption">NCPA Login</figcaption></figure>



<p>Once you&#8217;ve logged in, you can use the NCPA web interface to check out the various functionalities for monitoring your Kali Linux system.</p>



<figure class="wp-block-image aligncenter size-large"><a href="https://library.nagios.com/wp-content/uploads/2025/03/NCPA-Dashboard-Kali.png"><img loading="lazy" decoding="async" width="1024" height="617" src="https://library.nagios.com/wp-content/uploads/2025/03/NCPA-Dashboard-Kali-1024x617.png" alt="NCPA Dashboard Kali" class="wp-image-53611" title="How to Integrate NCPA for Kali Linux with Nagios XI 15" srcset="https://library.nagios.com/wp-content/uploads/2025/03/NCPA-Dashboard-Kali-1024x617.png 1024w, https://library.nagios.com/wp-content/uploads/2025/03/NCPA-Dashboard-Kali-300x181.png 300w, https://library.nagios.com/wp-content/uploads/2025/03/NCPA-Dashboard-Kali-768x463.png 768w, https://library.nagios.com/wp-content/uploads/2025/03/NCPA-Dashboard-Kali-1536x926.png 1536w, https://library.nagios.com/wp-content/uploads/2025/03/NCPA-Dashboard-Kali.png 1715w" sizes="(max-width: 1024px) 100vw, 1024px" /></a><figcaption class="wp-element-caption">NCPA Dashboard</figcaption></figure>



<h3 class="wp-block-heading">Step 7: Configure NCPA to Nagios XI</h3>



<p>Use your Nagios XI server to log in to the web interface.</p>



<figure class="wp-block-image aligncenter size-large"><a href="https://library.nagios.com/wp-content/uploads/2025/03/Nagios-XI-Login-Kali.png"><img loading="lazy" decoding="async" width="1024" height="620" src="https://library.nagios.com/wp-content/uploads/2025/03/Nagios-XI-Login-Kali-1024x620.png" alt="Nagios XI Login Kali" class="wp-image-53612" title="How to Integrate NCPA for Kali Linux with Nagios XI 16" srcset="https://library.nagios.com/wp-content/uploads/2025/03/Nagios-XI-Login-Kali-1024x620.png 1024w, https://library.nagios.com/wp-content/uploads/2025/03/Nagios-XI-Login-Kali-300x182.png 300w, https://library.nagios.com/wp-content/uploads/2025/03/Nagios-XI-Login-Kali-768x465.png 768w, https://library.nagios.com/wp-content/uploads/2025/03/Nagios-XI-Login-Kali-1536x931.png 1536w, https://library.nagios.com/wp-content/uploads/2025/03/Nagios-XI-Login-Kali.png 1715w" sizes="(max-width: 1024px) 100vw, 1024px" /></a><figcaption class="wp-element-caption">Nagios XI Login</figcaption></figure>



<p>Navigate to the <strong>Configure </strong>tab from the gear icon to the<strong> Configuration Wizards</strong> page and look for <strong>Linux Server</strong> to incorporate the NCPA monitoring on Nagios XI.</p>



<figure class="wp-block-image aligncenter size-large"><a href="https://library.nagios.com/wp-content/uploads/2025/03/Wizard-List-XI-Kali.png"><img loading="lazy" decoding="async" width="1024" height="619" src="https://library.nagios.com/wp-content/uploads/2025/03/Wizard-List-XI-Kali-1024x619.png" alt="Wizard List XI Kali" class="wp-image-53613" title="How to Integrate NCPA for Kali Linux with Nagios XI 17" srcset="https://library.nagios.com/wp-content/uploads/2025/03/Wizard-List-XI-Kali-1024x619.png 1024w, https://library.nagios.com/wp-content/uploads/2025/03/Wizard-List-XI-Kali-300x181.png 300w, https://library.nagios.com/wp-content/uploads/2025/03/Wizard-List-XI-Kali-768x464.png 768w, https://library.nagios.com/wp-content/uploads/2025/03/Wizard-List-XI-Kali-1536x928.png 1536w, https://library.nagios.com/wp-content/uploads/2025/03/Wizard-List-XI-Kali.png 1718w" sizes="(max-width: 1024px) 100vw, 1024px" /></a><figcaption class="wp-element-caption">Wizard List</figcaption></figure>



<p>Configure your NCPA wizard by providing the IP address from your Kali Linux machine and the token for the authentication that you configured earlier.</p>



<figure class="wp-block-image aligncenter size-large"><a href="https://library.nagios.com/wp-content/uploads/2025/03/Linux-NCPA-Wizard-XI-Kali.png"><img loading="lazy" decoding="async" width="1024" height="619" src="https://library.nagios.com/wp-content/uploads/2025/03/Linux-NCPA-Wizard-XI-Kali-1024x619.png" alt="Linux NCPA Wizard XI Kali" class="wp-image-53614" title="How to Integrate NCPA for Kali Linux with Nagios XI 18" srcset="https://library.nagios.com/wp-content/uploads/2025/03/Linux-NCPA-Wizard-XI-Kali-1024x619.png 1024w, https://library.nagios.com/wp-content/uploads/2025/03/Linux-NCPA-Wizard-XI-Kali-300x181.png 300w, https://library.nagios.com/wp-content/uploads/2025/03/Linux-NCPA-Wizard-XI-Kali-768x464.png 768w, https://library.nagios.com/wp-content/uploads/2025/03/Linux-NCPA-Wizard-XI-Kali-1536x928.png 1536w, https://library.nagios.com/wp-content/uploads/2025/03/Linux-NCPA-Wizard-XI-Kali.png 1715w" sizes="(max-width: 1024px) 100vw, 1024px" /></a><figcaption class="wp-element-caption">Linux NCPA Configuration Wizard</figcaption></figure>



<p>Set up the rest of the configuration by selecting the specific checks you want to perform on your Kali Linux machine, such as CPU usage, memory usage, disk space, and more.</p>



<figure class="wp-block-image aligncenter size-large"><a href="https://library.nagios.com/wp-content/uploads/2025/03/More-Linux-NCPA-Wizard-XI-Kali.png"><img loading="lazy" decoding="async" width="1024" height="619" src="https://library.nagios.com/wp-content/uploads/2025/03/More-Linux-NCPA-Wizard-XI-Kali-1024x619.png" alt="More Linux NCPA Wizard XI Kali" class="wp-image-53632" title="How to Integrate NCPA for Kali Linux with Nagios XI 19" srcset="https://library.nagios.com/wp-content/uploads/2025/03/More-Linux-NCPA-Wizard-XI-Kali-1024x619.png 1024w, https://library.nagios.com/wp-content/uploads/2025/03/More-Linux-NCPA-Wizard-XI-Kali-300x181.png 300w, https://library.nagios.com/wp-content/uploads/2025/03/More-Linux-NCPA-Wizard-XI-Kali-768x465.png 768w, https://library.nagios.com/wp-content/uploads/2025/03/More-Linux-NCPA-Wizard-XI-Kali-1536x929.png 1536w, https://library.nagios.com/wp-content/uploads/2025/03/More-Linux-NCPA-Wizard-XI-Kali.png 1716w" sizes="(max-width: 1024px) 100vw, 1024px" /></a><figcaption class="wp-element-caption">More Linux Configurations</figcaption></figure>



<p>Finish the wizard by applying the configuration and saving the changes to start monitoring your Kali Linux device.</p>



<h3 class="wp-block-heading">Step 8: Verify your Status</h3>



<p>Verify the status of your NCPA monitoring by navigating to the status page on your home dashboard. This will allow you to check if the NCPA agent is running correctly on your Kali Linux machine within Nagios XI.</p>



<figure class="wp-block-image aligncenter size-large"><a href="https://library.nagios.com/wp-content/uploads/2025/03/NCPA-Status-XI-Kali.png"><img loading="lazy" decoding="async" width="1024" height="619" src="https://library.nagios.com/wp-content/uploads/2025/03/NCPA-Status-XI-Kali-1024x619.png" alt="NCPA Status XI Kali" class="wp-image-53631" title="How to Integrate NCPA for Kali Linux with Nagios XI 20" srcset="https://library.nagios.com/wp-content/uploads/2025/03/NCPA-Status-XI-Kali-1024x619.png 1024w, https://library.nagios.com/wp-content/uploads/2025/03/NCPA-Status-XI-Kali-300x181.png 300w, https://library.nagios.com/wp-content/uploads/2025/03/NCPA-Status-XI-Kali-768x465.png 768w, https://library.nagios.com/wp-content/uploads/2025/03/NCPA-Status-XI-Kali-1536x929.png 1536w, https://library.nagios.com/wp-content/uploads/2025/03/NCPA-Status-XI-Kali.png 1716w" sizes="(max-width: 1024px) 100vw, 1024px" /></a><figcaption class="wp-element-caption">Status Page</figcaption></figure>



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



<p>If you have any issues setting up NCPA for Kali Linux, here is a list of what to troubleshoot.</p>



<p><strong>Connection Issues</strong></p>



<ul class="wp-block-list">
<li>Verify that the NCPA service is running on the Kali Linux machine.</li>



<li>Check the firewall settings on both the Kali Linux machine and any network firewalls.</li>



<li>Ensure that the Nagios XI server can reach the Kali Linux machine on port 5693.</li>



<li>Test the connection from the Nagios XI server using telnet 5693.</li>
</ul>



<p><strong>Authentication Issues</strong></p>



<ul class="wp-block-list">
<li>Double-check the password you entered in the Nagios XI wizard.</li>



<li>Verify that the password in /etc/ncpa.cfg matches the password you entered in Nagios XI.</li>
</ul>



<p><strong>Check Errors</strong></p>



<ul class="wp-block-list">
<li>Check the NCPA logs on the Kali Linux machine for any errors (<strong>/var/log/ncpa_listener.log</strong>).</li>



<li>Run the NCPA checks manually on the Kali Linux machine to verify that they are working correctly.</li>



<li>Example:</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>/usr/local/ncpa/plugins/check_ncpa.py -H 127.0.0.1 -t '' -M 'cpu/percent'</textarea></pre><svg xmlns="http://www.w3.org/2000/svg" style="width:24px;height:24px" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2"><path class="with-check" stroke-linecap="round" stroke-linejoin="round" d="M4.5 12.75l6 6 9-13.5"></path><path class="without-check" stroke-linecap="round" stroke-linejoin="round" d="M16.5 8.25V6a2.25 2.25 0 00-2.25-2.25H6A2.25 2.25 0 003.75 6v8.25A2.25 2.25 0 006 16.5h2.25m8.25-8.25H18a2.25 2.25 0 012.25 2.25V18A2.25 2.25 0 0118 20.25h-7.5A2.25 2.25 0 018.25 18v-1.5m8.25-8.25h-6a2.25 2.25 0 00-2.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">/</span><span style="color: #9CDCFE">usr</span><span style="color: #D4D4D4">/</span><span style="color: #9CDCFE">local</span><span style="color: #D4D4D4">/</span><span style="color: #9CDCFE">ncpa</span><span style="color: #D4D4D4">/</span><span style="color: #9CDCFE">plugins</span><span style="color: #D4D4D4">/</span><span style="color: #9CDCFE">check_ncpa</span><span style="color: #D4D4D4">.</span><span style="color: #9CDCFE">py</span><span style="color: #D4D4D4"> -</span><span style="color: #4FC1FF">H</span><span style="color: #D4D4D4"> </span><span style="color: #B5CEA8">127.0</span><span style="color: #D4D4D4">.</span><span style="color: #B5CEA8">0.1</span><span style="color: #D4D4D4"> -</span><span style="color: #9CDCFE">t</span><span style="color: #D4D4D4"> </span><span style="color: #CE9178">&#39;&#39;</span><span style="color: #D4D4D4"> -</span><span style="color: #4FC1FF">M</span><span style="color: #D4D4D4"> </span><span style="color: #CE9178">&#39;cpu/percent&#39;</span></span></code></pre></div>



<p><strong>Plugin Permissions</strong></p>



<ul class="wp-block-list">
<li>Ensure that the Nagios user on the Nagios XI server has the correct permissions to execute the NCPA plugins.</li>
</ul>



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



<p>By following these instructions, you should be able to successfully integrate NCPA on Kali Linux with Nagios XI, enabling effective system monitoring. This setup will help you track vital metrics, ensure optimal performance, and address potential issues promptly. If you have additional questions or other support-related questions, please visit us at our <a href="https://support.nagios.com/forum/" data-type="link" data-id="https://support.nagios.com/forum/" target="_blank" rel="noopener">Nagios Support Forum</a>, <a href="https://support.nagios.com/kb/" data-type="link" data-id="https://support.nagios.com/kb/" target="_blank" rel="noopener">Nagios Knowledge Base</a>, or <a href="https://library.nagios.com/" target="_blank" data-type="link" data-id="https://library.nagios.com/" rel="noreferrer noopener">Nagios Library</a>.</p>
]]></content:encoded>
					
		
		
			</item>
	</channel>
</rss>
