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

<image>
	<url>https://library.nagios.com/wp-content/uploads/2024/11/Nagios-Blue-N.svg</url>
	<title>Nicole Vagle &#8211; Nagios Library</title>
	<link>https://library.nagios.com</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>How to Monitor Debian 11 with Nagios Cross-Platform Agent (NCPA)</title>
		<link>https://library.nagios.com/documentation/how-to-monitor-debian-11-with-nagios-cross-platform-agent-ncpa/</link>
		
		<dc:creator><![CDATA[Nicole Vagle]]></dc:creator>
		<pubDate>Thu, 20 Feb 2025 19:48:08 +0000</pubDate>
				<category><![CDATA[Documentation]]></category>
		<category><![CDATA[Debian 11]]></category>
		<category><![CDATA[Debian Linux]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[NCPA]]></category>
		<category><![CDATA[Operating System Monitoring]]></category>
		<guid isPermaLink="false">https://library.nagios.com/?p=48518</guid>

					<description><![CDATA[Nagios Cross-Platform Agent (NCPA) is a powerful monitoring agent for Windows, Linux (including Debian), and macOS. It provides an all-in-one solution for system metrics, service monitoring, and network statistics using a built-in REST API. Supporting both active and passive checks, NCPA simplifies monitoring with its user-friendly interface and custom plugin support, making it an efficient [&#8230;]]]></description>
										<content:encoded><![CDATA[
<p class="wp-block-paragraph">Nagios Cross-Platform Agent (NCPA) is a powerful monitoring agent for Windows, Linux (including Debian), and macOS. It provides an all-in-one solution for system metrics, service monitoring, and network statistics using a built-in REST API. Supporting both active and passive checks, NCPA simplifies monitoring with its user-friendly interface and custom plugin support, making it an efficient choice for seamless Nagios integration on Debian and other systems.</p>



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



<p class="wp-block-paragraph">Before installing NCPA on your Debian 11 device, make sure you have the following items:</p>



<ul class="wp-block-list">
<li>A user with sudo privileges</li>



<li>A working Debian 11 device</li>
</ul>



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



<p class="wp-block-paragraph">To start off with installing NCPA, go to the <code>tmp</code> directory to store the file. You may use another location as well.</p>



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



<p class="wp-block-paragraph">Once in the desired location, the following command can be run to download the correlating NCPA version.</p>



<pre class="wp-block-code"><code>wget https://assets.nagios.com/downloads/ncpa/ncpa-latest.d11.amd64.deb</code></pre>



<p class="wp-block-paragraph">When done downloading, it should look like this:</p>



<figure class="wp-block-image size-full"><a href="https://library.nagios.com/wp-content/uploads/2025/02/Screenshot-2025-02-19-144915.png"><img fetchpriority="high" decoding="async" width="728" height="305" src="https://library.nagios.com/wp-content/uploads/2025/02/Screenshot-2025-02-19-144915.png" alt="Screenshot 2025 02 19 144915" class="wp-image-48817" title="How to Monitor Debian 11 with Nagios Cross-Platform Agent (NCPA) 1" srcset="https://library.nagios.com/wp-content/uploads/2025/02/Screenshot-2025-02-19-144915.png 728w, https://library.nagios.com/wp-content/uploads/2025/02/Screenshot-2025-02-19-144915-300x126.png 300w, https://library.nagios.com/wp-content/uploads/2025/02/Screenshot-2025-02-19-144915-360x151.png 360w" sizes="(max-width: 728px) 100vw, 728px" /></a><figcaption>How to Monitor Debian 11 with Nagios Cross-Platform Agent (NCPA) 6</figcaption></figure>



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



<p class="wp-block-paragraph">To install NCPA use this command:</p>



<pre class="wp-block-code"><code>dpkg -i ./ncpa-latest.d11.amd64.deb</code></pre>



<p class="wp-block-paragraph">The result should look like this:</p>



<figure class="wp-block-image size-full"><a href="https://library.nagios.com/wp-content/uploads/2025/02/Screenshot-2025-02-19-145009.png"><img decoding="async" width="695" height="149" src="https://library.nagios.com/wp-content/uploads/2025/02/Screenshot-2025-02-19-145009.png" alt="Screenshot 2025 02 19 145009" class="wp-image-48821" title="How to Monitor Debian 11 with Nagios Cross-Platform Agent (NCPA) 2" srcset="https://library.nagios.com/wp-content/uploads/2025/02/Screenshot-2025-02-19-145009.png 695w, https://library.nagios.com/wp-content/uploads/2025/02/Screenshot-2025-02-19-145009-300x64.png 300w, https://library.nagios.com/wp-content/uploads/2025/02/Screenshot-2025-02-19-145009-360x77.png 360w" sizes="(max-width: 695px) 100vw, 695px" /></a><figcaption>How to Monitor Debian 11 with Nagios Cross-Platform Agent (NCPA) 7</figcaption></figure>



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



<p class="wp-block-paragraph">Next, to make NCPA more secure, go to the configuration file using this command:</p>



<pre class="wp-block-code"><code>nano /usr/local/ncpa/etc/ncpa.cfg </code></pre>



<p class="wp-block-paragraph">The section that has the<strong> Community String</strong> will be down the file a bit. It will look like this:</p>



<figure class="wp-block-image size-full"><a href="https://library.nagios.com/wp-content/uploads/2025/02/Screenshot-2025-02-20-120347.png"><img decoding="async" width="608" height="395" src="https://library.nagios.com/wp-content/uploads/2025/02/Screenshot-2025-02-20-120347.png" alt="Screenshot 2025 02 20 120347" class="wp-image-48829" title="How to Monitor Debian 11 with Nagios Cross-Platform Agent (NCPA) 3" srcset="https://library.nagios.com/wp-content/uploads/2025/02/Screenshot-2025-02-20-120347.png 608w, https://library.nagios.com/wp-content/uploads/2025/02/Screenshot-2025-02-20-120347-300x195.png 300w, https://library.nagios.com/wp-content/uploads/2025/02/Screenshot-2025-02-20-120347-360x234.png 360w" sizes="(max-width: 608px) 100vw, 608px" /></a><figcaption>How to Monitor Debian 11 with Nagios Cross-Platform Agent (NCPA) 8</figcaption></figure>



<p class="wp-block-paragraph">Change the Community String to a new value and remember it for later.</p>



<h2 class="wp-block-heading">Step 4: Start the Service</h2>



<p class="wp-block-paragraph">Now that all these changes have been made, it&#8217;s time to start up NCPA and save those changes. Use the following command to start NCPA:</p>



<pre class="wp-block-code"><code>systemctl restart ncpa_listener.service</code></pre>



<h2 class="wp-block-heading">Step 5: Start Monitoring Debian 11 Device in Nagios</h2>



<p class="wp-block-paragraph">In Nagios, go to <strong>Configuration &gt; Configuration Wizards &gt; NCPA</strong>. </p>



<figure class="wp-block-image size-large"><a href="https://library.nagios.com/wp-content/uploads/2025/02/Screenshot-2025-02-20-121851.png"><img loading="lazy" decoding="async" width="1024" height="756" src="https://library.nagios.com/wp-content/uploads/2025/02/Screenshot-2025-02-20-121851-1024x756.png" alt="Screenshot 2025 02 20 121851" class="wp-image-48839" title="How to Monitor Debian 11 with Nagios Cross-Platform Agent (NCPA) 4" srcset="https://library.nagios.com/wp-content/uploads/2025/02/Screenshot-2025-02-20-121851-1024x756.png 1024w, https://library.nagios.com/wp-content/uploads/2025/02/Screenshot-2025-02-20-121851-300x222.png 300w, https://library.nagios.com/wp-content/uploads/2025/02/Screenshot-2025-02-20-121851-768x567.png 768w, https://library.nagios.com/wp-content/uploads/2025/02/Screenshot-2025-02-20-121851-360x266.png 360w, https://library.nagios.com/wp-content/uploads/2025/02/Screenshot-2025-02-20-121851.png 1305w" sizes="(max-width: 1024px) 100vw, 1024px" /></a><figcaption>How to Monitor Debian 11 with Nagios Cross-Platform Agent (NCPA) 9</figcaption></figure>



<p class="wp-block-paragraph">The next page will ask for the <strong>IP address</strong> and the <strong>Community String</strong>. Fill in those fields and select <strong>Debian</strong> as the system. After you select <strong>Next</strong>, a page with defaults will appear. Those can be changed as seen fit or can be left as is.</p>



<figure class="wp-block-image size-full"><a href="https://library.nagios.com/wp-content/uploads/2025/02/Screenshot-2025-02-20-122400.png"><img loading="lazy" decoding="async" width="613" height="395" src="https://library.nagios.com/wp-content/uploads/2025/02/Screenshot-2025-02-20-122400.png" alt="Screenshot 2025 02 20 122400" class="wp-image-48843" title="How to Monitor Debian 11 with Nagios Cross-Platform Agent (NCPA) 5" srcset="https://library.nagios.com/wp-content/uploads/2025/02/Screenshot-2025-02-20-122400.png 613w, https://library.nagios.com/wp-content/uploads/2025/02/Screenshot-2025-02-20-122400-300x193.png 300w, https://library.nagios.com/wp-content/uploads/2025/02/Screenshot-2025-02-20-122400-360x232.png 360w" sizes="(max-width: 613px) 100vw, 613px" /></a><figcaption>How to Monitor Debian 11 with Nagios Cross-Platform Agent (NCPA) 10</figcaption></figure>



<h2 class="wp-block-heading">Step 6: Host Status</h2>



<p class="wp-block-paragraph">Your Debian 11 device is now being monitored with NCPA. You can see more details about the Host if you go to <strong>Home &gt; Host Status &gt; Your Device</strong>. </p>



<p class="wp-block-paragraph">If you have additional questions or other support-related questions, please visit Nagios <a href="https://support.nagios.com/" target="_blank" rel="noreferrer noopener">Support</a>. <a href="https://library.nagios.com/docs" target="_blank" rel="noreferrer noopener">Nagios Documentation</a> is also a great support resource.</p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>Benefits of the System Summary Dashboard</title>
		<link>https://library.nagios.com/techtips/system-summary-dashboard/</link>
		
		<dc:creator><![CDATA[Nicole Vagle]]></dc:creator>
		<pubDate>Mon, 10 Feb 2025 20:11:31 +0000</pubDate>
				<category><![CDATA[Techtips]]></category>
		<category><![CDATA[Dashboards]]></category>
		<guid isPermaLink="false">https://library.nagios.com/?p=45218</guid>

					<description><![CDATA[Why System Summaries Are Essential System Summary Dashboards play a crucial role in IT infrastructure and network monitoring by consolidating vast amounts of data into an easily digestible and visually intuitive format. Organizations rely on these dashboards to: How This System Summary Provides Value The System Summary Dashboard in the image exemplifies the above benefits [&#8230;]]]></description>
										<content:encoded><![CDATA[
<h3 class="wp-block-heading">Why System Summaries Are Essential</h3>



<p class="wp-block-paragraph">System Summary Dashboards play a crucial role in IT infrastructure and network monitoring by consolidating vast amounts of data into an easily digestible and visually intuitive format. Organizations rely on these dashboards to:</p>



<ul class="wp-block-list">
<li><strong>Provide Real-Time Insights</strong> – System Summaries give up-to-date data on network and server health, allowing teams to react quickly to emerging issues.</li>



<li><strong>Enhance Decision-Making</strong> – By presenting key performance indicators (KPIs) at a glance, System Summaries empower administrators to make informed decisions.</li>



<li><strong>Detect Anomalies and Trends</strong> – They help identify patterns in data, such as recurring outages or performance degradation, before they become critical.</li>



<li><strong>Increase Operational Efficiency</strong> – Automated System Summaries reduce the need for manual log analysis, saving time and effort.</li>



<li><strong>Improve Accountability and Reporting</strong> – They provide a historical view of system health, aiding in compliance, audits, and long-term planning.</li>
</ul>



<h3 class="wp-block-heading">How This System Summary Provides Value</h3>



<p class="wp-block-paragraph">The System Summary Dashboard in the image exemplifies the above benefits through several key visualizations and features:</p>



<ol class="wp-block-list">
<li><strong>Calendar-Based Availability Tracking</strong><br>The top-left section shows a month-over-month view of system uptime and downtime.
<ul class="wp-block-list">
<li>Helps identify periods of poor performance and track maintenance windows efficiently.</li>
</ul>
</li>



<li><strong>Host and Service Status Grid</strong><br>The top-right section presents a status grid displaying multiple hosts and their corresponding service health.
<ul class="wp-block-list">
<li>Uses color coding (green for healthy, red for critical) for immediate issue recognition.</li>



<li>Allows IT teams to focus on the most pressing problems without navigating through logs manually.</li>
</ul>
</li>



<li><strong>Alert Monitoring Panel</strong><br>A dedicated &#8220;Latest Alerts&#8221; panel provides a log of recent critical failures and warnings.
<ul class="wp-block-list">
<li>Vital for quickly diagnosing failures and tracking incident history.</li>
</ul>
</li>



<li><strong>Performance Trend Graphs</strong><br>A multi-line graph at the center of the System Summary Dashboard shows service status trends for different hosts.
<ul class="wp-block-list">
<li>Helps IT staff analyze service fluctuations over time and plan capacity accordingly.</li>
</ul>
</li>



<li><strong>Summary Panels for Quick Overview</strong><br>The &#8220;Host Status Summary&#8221; and &#8220;Service Status Summary&#8221; sections consolidate overall system health statistics.
<ul class="wp-block-list">
<li>Summarizes total problems, unreachable hosts, and pending issues for better maintenance prioritization.</li>
</ul>
</li>



<li><strong>Pie Charts for Availability Metrics</strong><br>On the right side, two pie charts visualize &#8220;Average Service Availability&#8221; and &#8220;Average Host Availability.&#8221;
<ul class="wp-block-list">
<li>Makes it easy to gauge overall system health at a glance, highlighting problem areas effectively.</li>
</ul>
</li>
</ol>



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



<p class="wp-block-paragraph">System Summary Dashboards provide a centralized hub for IT monitoring, ensuring that system administrators and IT teams can respond promptly to incidents, maintain high availability, and optimize resource usage. By offering a mix of real-time monitoring, historical tracking, and intuitive visual elements, these dashboards transform complex data into actionable intelligence, ultimately improving overall system reliability.</p>



<p class="wp-block-paragraph">You can download System Summary from right <a href="https://github.com/NagiosEnterprises/dashboards-extra/tree/nicole-dashboard" target="_blank" rel="noreferrer noopener">here</a>! On Nagios XI go to <strong>Dashboards > Manage Dashboards > Import</strong> and then add the file.</p>



<p class="wp-block-paragraph"></p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>Guide to Writing Custom Plugins in Nagios XI</title>
		<link>https://library.nagios.com/training/guide-to-writing-custom-plugins/</link>
		
		<dc:creator><![CDATA[Nicole Vagle]]></dc:creator>
		<pubDate>Thu, 06 Feb 2025 21:56:26 +0000</pubDate>
				<category><![CDATA[Training]]></category>
		<category><![CDATA[Plugins]]></category>
		<category><![CDATA[Setup & Installation]]></category>
		<guid isPermaLink="false">https://library.nagios.com/?p=41154</guid>

					<description><![CDATA[Overview This guide walks you through the steps of building a custom Nagios XI plugin, using a simple script that monitors the last 1-minute load average of the host. This article will go over these following steps: Step 1: Create a Bash Script Plugin in Nagios XI In order to write a script in the [&#8230;]]]></description>
										<content:encoded><![CDATA[
<h2 class="wp-block-heading">Overview</h2>



<p class="wp-block-paragraph">This guide walks you through the steps of building a custom Nagios XI plugin, using a simple script that monitors the last 1-minute load average of the host.</p>



<p class="wp-block-paragraph">This article will go over these following steps:</p>



<ul class="wp-block-list">
<li>Creating a bash script plugin in the Nagios XI host
<ul class="wp-block-list">
<li>Includes testing the script</li>
</ul>
</li>



<li>Adding the script as a Command in Nagios XI</li>



<li>Using the Command to make a monitoring Service</li>



<li>Where to find more options for the Service</li>
</ul>



<h2 class="wp-block-heading">Step 1: Create a Bash Script Plugin in Nagios XI</h2>



<p class="wp-block-paragraph">In order to write a script in the Nagios XI host, you must first log in using the <strong>root</strong> user.</p>



<p class="wp-block-paragraph">Use the following commands to get to the directory that holds all of the plugins for Nagios XI. <strong>Nano</strong> is a text editor that will be used to make the script.</p>



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



<p class="wp-block-paragraph">Now that you are in nano, you can start writing your script. The script below takes in the threshold arguments passed in through the command and sets the variables to those values. Then it compares the load value with the threshold values (critical and warning) and returns a message based on how it compared to the thresholds.</p>



<p class="wp-block-paragraph">You can find the following code here: <a href="https://github.com/NagiosEnterprises/plugins-extra/tree/check_load_average" target="_blank" rel="noopener">https://github.com/NagiosEnterprises/plugins-extra/tree/check_load_average</a>.</p>



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

# Variables
LOAD_AVG=""
WARN=""
CRIT=""


# Parse arguments
while getopts "w:c:" arg; do
  case $arg in
    w) WARN=${OPTARG} ;;
    c) CRIT=${OPTARG} ;;
  esac
done


# Validate args
if [&#91;-z "$WARN" || -z "$CRIT" &#93;]; then
  echo "UNKNOWN - Invalid arguments. USAGE: $0 -w &lt;warning_threshold> -c &lt;critical_threshold>"
  echo "w: $WARN c: $CRIT"
  exit 3
fi


# Set load average variable
LOAD_AVG=$(uptime | awk -F 'load average: ' '{print $2}' | cut -d',' -f1)


# Compare with thresholds | give computer readable info for performance graphs
if (( $(echo "$LOAD_AVG > $CRIT" | bc -l) )); then
  echo "CRITICAL - Load Average is $LOAD_AVG in the last minute (threshold: $CRIT) | loadaverage=$LOAD_AVG"
  exit 2
elif (( $(echo "$LOAD_AVG > $WARN" | bc -l) )); then
  echo "WARNING - Load Average is $LOAD_AVG in the last minute (threshold: $WARN) | loadaverage=$LOAD_AVG"
  exit 1
else
  echo "OK - Load Average is $LOAD_AVG in the last minute | loadaverage=$LOAD_AVG"
  exit 0
fi
</textarea></pre><svg xmlns="http://www.w3.org/2000/svg" style="width:24px;height:24px" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2"><path class="with-check" stroke-linecap="round" stroke-linejoin="round" d="M4.5 12.75l6 6 9-13.5"></path><path class="without-check" stroke-linecap="round" stroke-linejoin="round" d="M16.5 8.25V6a2.25 2.25 0 00-2.25-2.25H6A2.25 2.25 0 003.75 6v8.25A2.25 2.25 0 006 16.5h2.25m8.25-8.25H18a2.25 2.25 0 012.25 2.25V18A2.25 2.25 0 0118 20.25h-7.5A2.25 2.25 0 018.25 18v-1.5m8.25-8.25h-6a2.25 2.25 0 00-2.25 2.25v6"></path></svg></span><pre class="shiki dark-plus" style="background-color: #1E1E1E" tabindex="0"><code><span class="line"><span style="color: #6A9955">#!/bin/bash</span></span>
<span class="line"></span>
<span class="line"><span style="color: #6A9955"># Variables</span></span>
<span class="line"><span style="color: #9CDCFE">LOAD_AVG</span><span style="color: #D4D4D4">=</span><span style="color: #CE9178">&quot;&quot;</span></span>
<span class="line"><span style="color: #9CDCFE">WARN</span><span style="color: #D4D4D4">=</span><span style="color: #CE9178">&quot;&quot;</span></span>
<span class="line"><span style="color: #9CDCFE">CRIT</span><span style="color: #D4D4D4">=</span><span style="color: #CE9178">&quot;&quot;</span></span>
<span class="line"></span>
<span class="line"></span>
<span class="line"><span style="color: #6A9955"># Parse arguments</span></span>
<span class="line"><span style="color: #C586C0">while</span><span style="color: #D4D4D4"> </span><span style="color: #DCDCAA">getopts</span><span style="color: #D4D4D4"> </span><span style="color: #CE9178">&quot;w:c:&quot;</span><span style="color: #D4D4D4"> </span><span style="color: #CE9178">arg</span><span style="color: #D4D4D4">; </span><span style="color: #C586C0">do</span></span>
<span class="line"><span style="color: #D4D4D4">  </span><span style="color: #C586C0">case</span><span style="color: #D4D4D4"> </span><span style="color: #9CDCFE">$arg</span><span style="color: #D4D4D4"> </span><span style="color: #C586C0">in</span></span>
<span class="line"><span style="color: #D4D4D4">    w) WARN=${</span><span style="color: #9CDCFE">OPTARG</span><span style="color: #D4D4D4">} ;;</span></span>
<span class="line"><span style="color: #D4D4D4">    c) CRIT=${</span><span style="color: #9CDCFE">OPTARG</span><span style="color: #D4D4D4">} ;;</span></span>
<span class="line"><span style="color: #D4D4D4">  </span><span style="color: #C586C0">esac</span></span>
<span class="line"><span style="color: #C586C0">done</span></span>
<span class="line"></span>
<span class="line"></span>
<span class="line"><span style="color: #6A9955"># Validate args</span></span>
<span class="line"><span style="color: #C586C0">if</span><span style="color: #D4D4D4"> [&#91;-z </span><span style="color: #CE9178">&quot;</span><span style="color: #9CDCFE">$WARN</span><span style="color: #CE9178">&quot;</span><span style="color: #D4D4D4"> || -z </span><span style="color: #CE9178">&quot;</span><span style="color: #9CDCFE">$CRIT</span><span style="color: #CE9178">&quot;</span><span style="color: #D4D4D4"> &#93;]; </span><span style="color: #C586C0">then</span></span>
<span class="line"><span style="color: #D4D4D4">  </span><span style="color: #DCDCAA">echo</span><span style="color: #D4D4D4"> </span><span style="color: #CE9178">&quot;UNKNOWN - Invalid arguments. USAGE: </span><span style="color: #9CDCFE">$0</span><span style="color: #CE9178"> -w &lt;warning_threshold&gt; -c &lt;critical_threshold&gt;&quot;</span></span>
<span class="line"><span style="color: #D4D4D4">  </span><span style="color: #DCDCAA">echo</span><span style="color: #D4D4D4"> </span><span style="color: #CE9178">&quot;w: </span><span style="color: #9CDCFE">$WARN</span><span style="color: #CE9178"> c: </span><span style="color: #9CDCFE">$CRIT</span><span style="color: #CE9178">&quot;</span></span>
<span class="line"><span style="color: #D4D4D4">  </span><span style="color: #DCDCAA">exit</span><span style="color: #D4D4D4"> </span><span style="color: #B5CEA8">3</span></span>
<span class="line"><span style="color: #C586C0">fi</span></span>
<span class="line"></span>
<span class="line"></span>
<span class="line"><span style="color: #6A9955"># Set load average variable</span></span>
<span class="line"><span style="color: #9CDCFE">LOAD_AVG</span><span style="color: #D4D4D4">=</span><span style="color: #CE9178">$(</span><span style="color: #DCDCAA">uptime</span><span style="color: #CE9178"> </span><span style="color: #D4D4D4">|</span><span style="color: #CE9178"> </span><span style="color: #DCDCAA">awk</span><span style="color: #CE9178"> </span><span style="color: #569CD6">-F</span><span style="color: #CE9178"> &#39;load average: &#39; &#39;{print $2}&#39; </span><span style="color: #D4D4D4">|</span><span style="color: #CE9178"> </span><span style="color: #DCDCAA">cut</span><span style="color: #CE9178"> </span><span style="color: #569CD6">-d</span><span style="color: #CE9178">&#39;,&#39; </span><span style="color: #569CD6">-f1</span><span style="color: #CE9178">)</span></span>
<span class="line"></span>
<span class="line"></span>
<span class="line"><span style="color: #6A9955"># Compare with thresholds | give computer readable info for performance graphs</span></span>
<span class="line"><span style="color: #C586C0">if</span><span style="color: #D4D4D4"> (( $(echo &quot;</span><span style="color: #9CDCFE">$LOAD_AVG</span><span style="color: #D4D4D4"> &gt; </span><span style="color: #9CDCFE">$CRIT</span><span style="color: #D4D4D4">&quot; | bc -l) )); </span><span style="color: #C586C0">then</span></span>
<span class="line"><span style="color: #D4D4D4">  </span><span style="color: #DCDCAA">echo</span><span style="color: #D4D4D4"> </span><span style="color: #CE9178">&quot;CRITICAL - Load Average is </span><span style="color: #9CDCFE">$LOAD_AVG</span><span style="color: #CE9178"> in the last minute (threshold: </span><span style="color: #9CDCFE">$CRIT</span><span style="color: #CE9178">) | loadaverage=</span><span style="color: #9CDCFE">$LOAD_AVG</span><span style="color: #CE9178">&quot;</span></span>
<span class="line"><span style="color: #D4D4D4">  </span><span style="color: #DCDCAA">exit</span><span style="color: #D4D4D4"> </span><span style="color: #B5CEA8">2</span></span>
<span class="line"><span style="color: #C586C0">elif</span><span style="color: #D4D4D4"> (( $(echo &quot;</span><span style="color: #9CDCFE">$LOAD_AVG</span><span style="color: #D4D4D4"> &gt; </span><span style="color: #9CDCFE">$WARN</span><span style="color: #D4D4D4">&quot; | bc -l) )); </span><span style="color: #C586C0">then</span></span>
<span class="line"><span style="color: #D4D4D4">  </span><span style="color: #DCDCAA">echo</span><span style="color: #D4D4D4"> </span><span style="color: #CE9178">&quot;WARNING - Load Average is </span><span style="color: #9CDCFE">$LOAD_AVG</span><span style="color: #CE9178"> in the last minute (threshold: </span><span style="color: #9CDCFE">$WARN</span><span style="color: #CE9178">) | loadaverage=</span><span style="color: #9CDCFE">$LOAD_AVG</span><span style="color: #CE9178">&quot;</span></span>
<span class="line"><span style="color: #D4D4D4">  </span><span style="color: #DCDCAA">exit</span><span style="color: #D4D4D4"> </span><span style="color: #B5CEA8">1</span></span>
<span class="line"><span style="color: #C586C0">else</span></span>
<span class="line"><span style="color: #D4D4D4">  </span><span style="color: #DCDCAA">echo</span><span style="color: #D4D4D4"> </span><span style="color: #CE9178">&quot;OK - Load Average is </span><span style="color: #9CDCFE">$LOAD_AVG</span><span style="color: #CE9178"> in the last minute | loadaverage=</span><span style="color: #9CDCFE">$LOAD_AVG</span><span style="color: #CE9178">&quot;</span></span>
<span class="line"><span style="color: #D4D4D4">  </span><span style="color: #DCDCAA">exit</span><span style="color: #D4D4D4"> </span><span style="color: #B5CEA8">0</span></span>
<span class="line"><span style="color: #C586C0">fi</span></span>
<span class="line"></span></code></pre></div>



<p class="wp-block-paragraph">To close nano, use the keys <code>^X</code>, <code>y</code>, then <code>[Enter]</code></p>



<p class="wp-block-paragraph">When you first close the script, you will not have permission to execute it. To get permission use 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>chmod +x /usr/local/nagios/libexec/check_load_average.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">chmod</span><span style="color: #D4D4D4"> </span><span style="color: #CE9178">+x</span><span style="color: #D4D4D4"> </span><span style="color: #CE9178">/usr/local/nagios/libexec/check_load_average.sh</span></span></code></pre></div>



<p class="wp-block-paragraph">To make sure the script is working properly, type in this command and substitute the parameters:</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>./check_load_average.sh -w &lt;warning_threshold> -c &lt;critical_threshold></textarea></pre><svg xmlns="http://www.w3.org/2000/svg" style="width:24px;height:24px" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2"><path class="with-check" stroke-linecap="round" stroke-linejoin="round" d="M4.5 12.75l6 6 9-13.5"></path><path class="without-check" stroke-linecap="round" stroke-linejoin="round" d="M16.5 8.25V6a2.25 2.25 0 00-2.25-2.25H6A2.25 2.25 0 003.75 6v8.25A2.25 2.25 0 006 16.5h2.25m8.25-8.25H18a2.25 2.25 0 012.25 2.25V18A2.25 2.25 0 0118 20.25h-7.5A2.25 2.25 0 018.25 18v-1.5m8.25-8.25h-6a2.25 2.25 0 00-2.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">./check_load_average.sh</span><span style="color: #D4D4D4"> </span><span style="color: #569CD6">-w</span><span style="color: #D4D4D4"> &lt;</span><span style="color: #CE9178">warning_threshol</span><span style="color: #D4D4D4">d&gt; </span><span style="color: #569CD6">-c</span><span style="color: #D4D4D4"> &lt;</span><span style="color: #CE9178">critical_threshol</span><span style="color: #D4D4D4">d&gt;</span></span></code></pre></div>



<p class="wp-block-paragraph">The output could be one of four options. It would appear like this:</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># An Unknown Response 
UNKNOWN - Invalid arguments. USAGE: $0 -w &lt;warning_threshold> -c &lt;critical_threshold>

# A Critical Response
CRITICAL - Load Average is 1.26 in the last minute (threshold: .04) | loadaverage=1.26

# A Warning Response
WARNING - Load Average is 0.83 in the last minute (threshold: .3) | loadaverage=0.83

# An OK Response
OK - Load Average is 2.21 in the last minute | loadaverage=2.21
</textarea></pre><svg xmlns="http://www.w3.org/2000/svg" style="width:24px;height:24px" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2"><path class="with-check" stroke-linecap="round" stroke-linejoin="round" d="M4.5 12.75l6 6 9-13.5"></path><path class="without-check" stroke-linecap="round" stroke-linejoin="round" d="M16.5 8.25V6a2.25 2.25 0 00-2.25-2.25H6A2.25 2.25 0 003.75 6v8.25A2.25 2.25 0 006 16.5h2.25m8.25-8.25H18a2.25 2.25 0 012.25 2.25V18A2.25 2.25 0 0118 20.25h-7.5A2.25 2.25 0 018.25 18v-1.5m8.25-8.25h-6a2.25 2.25 0 00-2.25 2.25v6"></path></svg></span><pre class="shiki dark-plus" style="background-color: #1E1E1E" tabindex="0"><code><span class="line"><span style="color: #6A9955"># An Unknown Response </span></span>
<span class="line"><span style="color: #DCDCAA">UNKNOWN</span><span style="color: #D4D4D4"> </span><span style="color: #CE9178">-</span><span style="color: #D4D4D4"> </span><span style="color: #CE9178">Invalid</span><span style="color: #D4D4D4"> </span><span style="color: #CE9178">arguments.</span><span style="color: #D4D4D4"> </span><span style="color: #CE9178">USAGE:</span><span style="color: #D4D4D4"> </span><span style="color: #9CDCFE">$0</span><span style="color: #D4D4D4"> </span><span style="color: #569CD6">-w</span><span style="color: #D4D4D4"> &lt;</span><span style="color: #CE9178">warning_threshol</span><span style="color: #D4D4D4">d&gt; </span><span style="color: #569CD6">-c</span><span style="color: #D4D4D4"> &lt;</span><span style="color: #CE9178">critical_threshol</span><span style="color: #D4D4D4">d&gt;</span></span>
<span class="line"></span>
<span class="line"><span style="color: #6A9955"># A Critical Response</span></span>
<span class="line"><span style="color: #DCDCAA">CRITICAL</span><span style="color: #D4D4D4"> </span><span style="color: #CE9178">-</span><span style="color: #D4D4D4"> </span><span style="color: #CE9178">Load</span><span style="color: #D4D4D4"> </span><span style="color: #CE9178">Average</span><span style="color: #D4D4D4"> </span><span style="color: #CE9178">is</span><span style="color: #D4D4D4"> </span><span style="color: #B5CEA8">1.26</span><span style="color: #D4D4D4"> </span><span style="color: #CE9178">in</span><span style="color: #D4D4D4"> </span><span style="color: #CE9178">the</span><span style="color: #D4D4D4"> </span><span style="color: #CE9178">last</span><span style="color: #D4D4D4"> </span><span style="color: #CE9178">minute</span><span style="color: #D4D4D4"> (threshold: </span><span style="color: #CE9178">.04</span><span style="color: #D4D4D4">) | </span><span style="color: #9CDCFE">loadaverage</span><span style="color: #D4D4D4">=</span><span style="color: #B5CEA8">1.26</span></span>
<span class="line"></span>
<span class="line"><span style="color: #6A9955"># A Warning Response</span></span>
<span class="line"><span style="color: #DCDCAA">WARNING</span><span style="color: #D4D4D4"> </span><span style="color: #CE9178">-</span><span style="color: #D4D4D4"> </span><span style="color: #CE9178">Load</span><span style="color: #D4D4D4"> </span><span style="color: #CE9178">Average</span><span style="color: #D4D4D4"> </span><span style="color: #CE9178">is</span><span style="color: #D4D4D4"> </span><span style="color: #B5CEA8">0.83</span><span style="color: #D4D4D4"> </span><span style="color: #CE9178">in</span><span style="color: #D4D4D4"> </span><span style="color: #CE9178">the</span><span style="color: #D4D4D4"> </span><span style="color: #CE9178">last</span><span style="color: #D4D4D4"> </span><span style="color: #CE9178">minute</span><span style="color: #D4D4D4"> (threshold: </span><span style="color: #CE9178">.3</span><span style="color: #D4D4D4">) | </span><span style="color: #9CDCFE">loadaverage</span><span style="color: #D4D4D4">=</span><span style="color: #B5CEA8">0.83</span></span>
<span class="line"></span>
<span class="line"><span style="color: #6A9955"># An OK Response</span></span>
<span class="line"><span style="color: #DCDCAA">OK</span><span style="color: #D4D4D4"> </span><span style="color: #CE9178">-</span><span style="color: #D4D4D4"> </span><span style="color: #CE9178">Load</span><span style="color: #D4D4D4"> </span><span style="color: #CE9178">Average</span><span style="color: #D4D4D4"> </span><span style="color: #CE9178">is</span><span style="color: #D4D4D4"> </span><span style="color: #B5CEA8">2.21</span><span style="color: #D4D4D4"> </span><span style="color: #CE9178">in</span><span style="color: #D4D4D4"> </span><span style="color: #CE9178">the</span><span style="color: #D4D4D4"> </span><span style="color: #CE9178">last</span><span style="color: #D4D4D4"> </span><span style="color: #CE9178">minute</span><span style="color: #D4D4D4"> | </span><span style="color: #9CDCFE">loadaverage</span><span style="color: #D4D4D4">=</span><span style="color: #B5CEA8">2.21</span></span>
<span class="line"></span></code></pre></div>



<h2 class="wp-block-heading">Step 2: Setting up a Command in Nagios XI</h2>



<p class="wp-block-paragraph">Now that the script is running in the host, the next step is to add it as a command. To do that, go to <strong>Core Configuration Manager</strong> and go to <strong>Commands</strong>.</p>



<figure class="wp-block-image size-large"><a href="https://library.nagios.com/wp-content/uploads/2025/01/Screenshot-2025-01-16-162940-2.png"><img loading="lazy" decoding="async" width="1024" height="402" src="https://library.nagios.com/wp-content/uploads/2025/01/Screenshot-2025-01-16-162940-2-1024x402.png" alt="Navigating to Commands" class="wp-image-41250" title="Guide to Writing Custom Plugins in Nagios XI 11" srcset="https://library.nagios.com/wp-content/uploads/2025/01/Screenshot-2025-01-16-162940-2-1024x402.png 1024w, https://library.nagios.com/wp-content/uploads/2025/01/Screenshot-2025-01-16-162940-2-300x118.png 300w, https://library.nagios.com/wp-content/uploads/2025/01/Screenshot-2025-01-16-162940-2-768x301.png 768w, https://library.nagios.com/wp-content/uploads/2025/01/Screenshot-2025-01-16-162940-2-1536x603.png 1536w, https://library.nagios.com/wp-content/uploads/2025/01/Screenshot-2025-01-16-162940-2.png 1917w" sizes="(max-width: 1024px) 100vw, 1024px" /></a><figcaption class="wp-element-caption">Navigating to Commands</figcaption></figure>



<p class="wp-block-paragraph">At the top of the <strong>Commands</strong> page is button, select <strong>+ Add New</strong>.</p>



<figure class="wp-block-image size-large"><a href="https://library.nagios.com/wp-content/uploads/2025/01/image.png"><img loading="lazy" decoding="async" width="1024" height="665" src="https://library.nagios.com/wp-content/uploads/2025/01/image-1024x665.png" alt="Adding a new Command" class="wp-image-41254" title="Guide to Writing Custom Plugins in Nagios XI 12" srcset="https://library.nagios.com/wp-content/uploads/2025/01/image-1024x665.png 1024w, https://library.nagios.com/wp-content/uploads/2025/01/image-300x195.png 300w, https://library.nagios.com/wp-content/uploads/2025/01/image-768x499.png 768w, https://library.nagios.com/wp-content/uploads/2025/01/image.png 1371w" sizes="(max-width: 1024px) 100vw, 1024px" /></a><figcaption class="wp-element-caption">Adding a new Command</figcaption></figure>



<p class="wp-block-paragraph">Fill out the fields. It should look like this after.</p>



<figure class="wp-block-gallery has-nested-images columns-default is-cropped wp-block-gallery-1 is-layout-flex wp-block-gallery-is-layout-flex">
<figure class="wp-block-image size-large"><a href="https://library.nagios.com/wp-content/uploads/2025/02/Screenshot-2026-03-19-104424.png"><img loading="lazy" decoding="async" width="1024" height="523" data-id="68692" src="https://library.nagios.com/wp-content/uploads/2025/02/Screenshot-2026-03-19-104424-1024x523.png" alt="Screenshot 2026 03 19 104424" class="wp-image-68692" title="Guide to Writing Custom Plugins in Nagios XI 13" srcset="https://library.nagios.com/wp-content/uploads/2025/02/Screenshot-2026-03-19-104424-1024x523.png 1024w, https://library.nagios.com/wp-content/uploads/2025/02/Screenshot-2026-03-19-104424-300x153.png 300w, https://library.nagios.com/wp-content/uploads/2025/02/Screenshot-2026-03-19-104424-768x393.png 768w, https://library.nagios.com/wp-content/uploads/2025/02/Screenshot-2026-03-19-104424.png 1203w" sizes="(max-width: 1024px) 100vw, 1024px" /></a><figcaption class="wp-element-caption">Nagios XI Command Settings</figcaption></figure>
</figure>



<p class="wp-block-paragraph">Select <strong>Save</strong>. At the top right of the Command page will be a message saying <strong>Apply Configuration</strong>. Go through the apply configuration process.</p>



<figure class="wp-block-image size-full"><a href="https://library.nagios.com/wp-content/uploads/2025/01/Screenshot-2025-01-16-164132.png"><img loading="lazy" decoding="async" width="823" height="328" src="https://library.nagios.com/wp-content/uploads/2025/01/Screenshot-2025-01-16-164132.png" alt="Apply Configuaration" class="wp-image-41263" title="Guide to Writing Custom Plugins in Nagios XI 14" srcset="https://library.nagios.com/wp-content/uploads/2025/01/Screenshot-2025-01-16-164132.png 823w, https://library.nagios.com/wp-content/uploads/2025/01/Screenshot-2025-01-16-164132-300x120.png 300w, https://library.nagios.com/wp-content/uploads/2025/01/Screenshot-2025-01-16-164132-768x306.png 768w" sizes="(max-width: 823px) 100vw, 823px" /></a><figcaption class="wp-element-caption">Apply Configuration</figcaption></figure>



<h2 class="wp-block-heading">Step 3: Setting Up a Service in Nagios XI</h2>



<p class="wp-block-paragraph">On the side bar, go under <strong>Monitoring</strong> and select <strong>Services</strong>. </p>



<p class="wp-block-paragraph">An easy way to get a new service up and running is to copy an existing service and edit it to fit your needs. To do that, go under actions and select copy on any of services. The copied service will be inactive and unapplied. Select the <strong>edit icon</strong> under actions to make the changes to fit the plugin.</p>



<figure class="wp-block-image size-large"><a href="https://library.nagios.com/wp-content/uploads/2025/02/Screenshot-2026-03-17-165105.png"><img loading="lazy" decoding="async" width="1024" height="442" src="https://library.nagios.com/wp-content/uploads/2025/02/Screenshot-2026-03-17-165105-1024x442.png" alt="Screenshot 2026 03 17 165105" class="wp-image-68662" title="Guide to Writing Custom Plugins in Nagios XI 15" srcset="https://library.nagios.com/wp-content/uploads/2025/02/Screenshot-2026-03-17-165105-1024x442.png 1024w, https://library.nagios.com/wp-content/uploads/2025/02/Screenshot-2026-03-17-165105-300x129.png 300w, https://library.nagios.com/wp-content/uploads/2025/02/Screenshot-2026-03-17-165105-768x331.png 768w, https://library.nagios.com/wp-content/uploads/2025/02/Screenshot-2026-03-17-165105-1536x663.png 1536w, https://library.nagios.com/wp-content/uploads/2025/02/Screenshot-2026-03-17-165105.png 1916w" sizes="(max-width: 1024px) 100vw, 1024px" /></a><figcaption class="wp-element-caption">Copying an existing service</figcaption></figure>



<p class="wp-block-paragraph">Change the <strong>Config Name</strong> and other fields to whatever values you want. Make sure to select <strong>Active</strong> on the bottom left. The other settings tabs can also be changed to fit specific needs.</p>



<p class="wp-block-paragraph">At the bottom right of the <strong>Common Settings</strong> tab, is a <strong>Run Check Command</strong> button. This can be used to test if the command works as expected before saving the changes.</p>



<figure class="wp-block-image size-large"><a href="https://library.nagios.com/wp-content/uploads/2025/02/Screenshot-2026-03-19-104643.png"><img loading="lazy" decoding="async" width="1024" height="727" src="https://library.nagios.com/wp-content/uploads/2025/02/Screenshot-2026-03-19-104643-1024x727.png" alt="Screenshot 2026 03 19 104643" class="wp-image-68694" title="Guide to Writing Custom Plugins in Nagios XI 16" srcset="https://library.nagios.com/wp-content/uploads/2025/02/Screenshot-2026-03-19-104643-1024x727.png 1024w, https://library.nagios.com/wp-content/uploads/2025/02/Screenshot-2026-03-19-104643-300x213.png 300w, https://library.nagios.com/wp-content/uploads/2025/02/Screenshot-2026-03-19-104643-768x546.png 768w, https://library.nagios.com/wp-content/uploads/2025/02/Screenshot-2026-03-19-104643.png 1160w" sizes="(max-width: 1024px) 100vw, 1024px" /></a><figcaption class="wp-element-caption">Service Management Settings</figcaption></figure>



<p class="wp-block-paragraph">When the settings are all complete, select <strong>Save</strong>. A message will appear on the top of the service page saying that changes were made, and you need to <strong>Apply Configuration</strong>. Follow that process the same as you did with Commands.</p>



<h2 class="wp-block-heading">Where to Find More Service Settings</h2>



<p class="wp-block-paragraph">On the Home page under <strong>Details</strong>, select <strong>Service Status</strong>. This will bring up all the services that are being used. </p>



<figure class="wp-block-image size-full"><a href="https://library.nagios.com/wp-content/uploads/2025/01/Screenshot-2025-01-21-140726.png"><img loading="lazy" decoding="async" width="582" height="480" src="https://library.nagios.com/wp-content/uploads/2025/01/Screenshot-2025-01-21-140726.png" alt="Navigation to More Service Options" class="wp-image-41332" title="Guide to Writing Custom Plugins in Nagios XI 17" srcset="https://library.nagios.com/wp-content/uploads/2025/01/Screenshot-2025-01-21-140726.png 582w, https://library.nagios.com/wp-content/uploads/2025/01/Screenshot-2025-01-21-140726-300x247.png 300w" sizes="(max-width: 582px) 100vw, 582px" /></a><figcaption class="wp-element-caption">Service Details Navigation</figcaption></figure>



<figure class="wp-block-image size-large"><a href="https://library.nagios.com/wp-content/uploads/2025/02/Screenshot-2026-03-19-105629.png"><img loading="lazy" decoding="async" width="1024" height="594" src="https://library.nagios.com/wp-content/uploads/2025/02/Screenshot-2026-03-19-105629-1024x594.png" alt="Screenshot 2026 03 19 105629" class="wp-image-68700" title="Guide to Writing Custom Plugins in Nagios XI 18" srcset="https://library.nagios.com/wp-content/uploads/2025/02/Screenshot-2026-03-19-105629-1024x594.png 1024w, https://library.nagios.com/wp-content/uploads/2025/02/Screenshot-2026-03-19-105629-300x174.png 300w, https://library.nagios.com/wp-content/uploads/2025/02/Screenshot-2026-03-19-105629-768x445.png 768w, https://library.nagios.com/wp-content/uploads/2025/02/Screenshot-2026-03-19-105629.png 1193w" sizes="(max-width: 1024px) 100vw, 1024px" /></a><figcaption class="wp-element-caption">Service Status page with New Service</figcaption></figure>



<p class="wp-block-paragraph">Find the New Service you just created and select it. The <strong>Service Status Detail</strong> page will show up with multiple tabs of more settings.</p>



<figure class="wp-block-image size-full"><a href="https://library.nagios.com/wp-content/uploads/2025/02/Screenshot-2026-03-19-105823.png"><img loading="lazy" decoding="async" width="824" height="538" src="https://library.nagios.com/wp-content/uploads/2025/02/Screenshot-2026-03-19-105823.png" alt="Screenshot 2026 03 19 105823" class="wp-image-68701" title="Guide to Writing Custom Plugins in Nagios XI 19" srcset="https://library.nagios.com/wp-content/uploads/2025/02/Screenshot-2026-03-19-105823.png 824w, https://library.nagios.com/wp-content/uploads/2025/02/Screenshot-2026-03-19-105823-300x196.png 300w, https://library.nagios.com/wp-content/uploads/2025/02/Screenshot-2026-03-19-105823-768x501.png 768w" sizes="(max-width: 824px) 100vw, 824px" /></a><figcaption class="wp-element-caption">Service Status Details Page</figcaption></figure>



<p class="wp-block-paragraph">Now you have the steps to make your own Nagios Plugin.</p>



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



<p class="wp-block-paragraph">For any support related questions please visit the&nbsp;<a href="http://support.nagios.com/forum/" target="_blank" rel="noreferrer noopener">Nagios Support Forums</a>&nbsp;at:</p>



<p class="wp-block-paragraph"><a href="http://support.nagios.com/forum/" target="_blank" rel="noreferrer noopener">http://support.nagios.com/forum/</a>,</p>
]]></content:encoded>
					
		
		
			</item>
	</channel>
</rss>
