<?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>Management Challenges &#8211; Nagios Library</title>
	<atom:link href="https://library.nagios.com/tag/management-challenges/feed/" rel="self" type="application/rss+xml" />
	<link>https://library.nagios.com</link>
	<description>Complete Nagios monitoring resources and documentation</description>
	<lastBuildDate>Thu, 02 Apr 2026 20:15:42 +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>Management Challenges &#8211; Nagios Library</title>
	<link>https://library.nagios.com</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>Host Groups: 3 Business Use Cases</title>
		<link>https://library.nagios.com/monitoring/host-groups-3-business-use-cases/</link>
		
		<dc:creator><![CDATA[Michael Bellerue]]></dc:creator>
		<pubDate>Fri, 21 Feb 2025 14:45:00 +0000</pubDate>
				<category><![CDATA[Monitoring]]></category>
		<category><![CDATA[Techtips]]></category>
		<category><![CDATA[Application & Server Monitoring]]></category>
		<category><![CDATA[Management Challenges]]></category>
		<guid isPermaLink="false">https://library.nagios.com/?p=43700</guid>

					<description><![CDATA[In Nagios XI, Host groups and Service groups are optional features that help you break up your monitoring environment in a logical fashion. Typically, since it&#8217;s the sysadmins who set up and use Nagios XI, these groups tend to be technical in nature. But I will often tell people not to forget business use cases. [&#8230;]]]></description>
										<content:encoded><![CDATA[
<p>In <a href="https://www.nagios.com/products/nagios-xi/" target="_blank" rel="noopener">Nagios </a><a href="https://www.nagios.com/products/nagios-xi/" target="_blank" rel="noreferrer noopener">XI</a>, Host groups and Service groups are optional features that help you break up your monitoring environment in a logical fashion. Typically, since it&#8217;s the sysadmins who set up and use Nagios XI, these groups tend to be technical in nature.</p>



<p>But I will often tell people not to forget business use cases. There are scenarios where it may make sense to create a grouping that doesn&#8217;t make technical sense, but it does make business sense. Let&#8217;s look at 3 examples of business-related use cases for using Host groups.</p>



<h2 class="wp-block-heading">1. Compliance &amp; Audit Readiness</h2>



<p>Many industries, such as healthcare, finance, and e-commerce, require strict compliance with regulations such as HIPAA, PCI-DSS, SOC 2, and GDPR. Using Host groups in Nagios Solutions can help organizations meet these compliance requirements by:</p>



<ul class="wp-block-list">
<li><strong>Grouping Compliance-Critical Servers</strong>
<ul class="wp-block-list">
<li>Example: A business handling credit card transactions can create a Host group for all PCI-DSS compliant servers to ensure continuous monitoring for security threats.</li>
</ul>
</li>



<li><strong>Applying Security and Performance Policies</strong>
<ul class="wp-block-list">
<li>Assigning specific monitoring checks (e.g., intrusion detection, encryption verification, log integrity) only to the systems that require them.</li>
</ul>
</li>



<li><strong>Audit and Reporting</strong>
<ul class="wp-block-list">
<li>Simplifying audits by generating reports focused only on compliance-related infrastructure, reducing the time needed for compliance verification.</li>
</ul>
</li>



<li><strong>Automated Alerts for Violations</strong>
<ul class="wp-block-list">
<li>Setting up notifications when a compliance-related server goes out of the expected state, such as an expired SSL certificate or an unapproved software version.</li>
</ul>
</li>
</ul>



<h2 class="wp-block-heading">2. Cost Optimization &amp; Budgeting</h2>



<p>Host groups can be used to track infrastructure costs and optimize resource allocation based on business needs:</p>



<ul class="wp-block-list">
<li><strong>Tracking Infrastructure Usage by Cost Centers</strong>
<ul class="wp-block-list">
<li>Grouping cloud-based servers used by different business units (e.g., Marketing, Sales, Engineering) to identify high-cost areas.</li>
</ul>
</li>



<li><strong>Identifying Underutilized Resources</strong>
<ul class="wp-block-list">
<li>Monitoring CPU, RAM, and disk usage trends in Host groups to detect over-provisioned resources that can be downsized.</li>
</ul>
</li>



<li><strong>Budgeting for IT Expenses</strong>
<ul class="wp-block-list">
<li>IT teams can allocate specific Host groups to budget forecasting tools, helping to predict future scaling costs.</li>
</ul>
</li>



<li><strong>Energy and Resource Savings</strong>
<ul class="wp-block-list">
<li>Monitoring data center power consumption per Host group (e.g., production vs. backup servers) to optimize energy usage and reduce costs.</li>
</ul>
</li>
</ul>



<h2 class="wp-block-heading">3. Business Continuity &amp; Disaster Recovery</h2>



<p>Ensuring high availability and quick recovery from system failures is crucial for business continuity. Host groups in Nagios help by:</p>



<ul class="wp-block-list">
<li><strong>Defining Critical vs. Non-Critical Systems</strong>
<ul class="wp-block-list">
<li>Example: Grouping mission-critical applications separately from non-essential services to prioritize restoration efforts during outages.</li>
</ul>
</li>



<li><strong>Automating Disaster Recovery Monitoring</strong>
<ul class="wp-block-list">
<li>Monitoring failover systems and backup data centers to ensure they are always ready to take over in case of a primary system failure.</li>
</ul>
</li>



<li><strong>Redundancy &amp; Load Balancing</strong>
<ul class="wp-block-list">
<li>Grouping servers based on redundancy (e.g., active vs. standby nodes) to monitor load balancing effectiveness.</li>
</ul>
</li>



<li><strong>Real-Time Alerts for Business Impact Analysis</strong>
<ul class="wp-block-list">
<li>If an entire Host group related to a key function (e.g., payment processing) fails, automated alerts can trigger business impact analysis procedures.</li>
</ul>
</li>



<li><strong>Ensuring SLA (Service Level Agreement) Compliance</strong>
<ul class="wp-block-list">
<li>Monitoring downtime per Host group to ensure contractual SLAs with customers and partners are met.</li>
</ul>
</li>
</ul>



<h2 class="wp-block-heading">Maximizing the Value of Host Groups with Nagios XI Visualizations</h2>



<p>When considering business use cases for Host groups, don&#8217;t forget the visualizations in Nagios XI. You can create <a href="https://assets.nagios.com/downloads/nagiosxi/docs/Generating-Reports-With-Nagios-XI.pdf" target="_blank" rel="noreferrer noopener">reports</a> and <a href="https://library.nagios.com/training/how-to-build-a-custom-dashboard-in-nagios-xi/" target="_blank" rel="noreferrer noopener">dashboards</a> showing the state of these groups to the interested parties. Doing so will enable Nagios XI to add value to the IT team by monitoring the environment and to the business team by allowing them to make better-informed decisions, faster.</p>



<h2 class="wp-block-heading">Final Thoughts</h2>



<p>When setting up Nagios XI, it&#8217;s crucial to think about how Host groups can be used beyond the technical scope. By considering business-related use cases, you can improve compliance management, cost optimization, and disaster recovery planning. The combination of flexible grouping, monitoring, and visualization tools in Nagios XI enables both IT and business teams to work together more effectively.</p>



<p>Happy monitoring!</p>



<p></p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>Monitor of Monitors: Easily Monitoring Nagios Servers</title>
		<link>https://library.nagios.com/techtips/monitor-of-monitors-easily-monitor-your-nagios-servers/</link>
		
		<dc:creator><![CDATA[Shamas Demoret]]></dc:creator>
		<pubDate>Thu, 06 Feb 2025 20:51:54 +0000</pubDate>
				<category><![CDATA[Techtips]]></category>
		<category><![CDATA[Application & Server Monitoring]]></category>
		<category><![CDATA[Management Challenges]]></category>
		<category><![CDATA[Network Monitoring]]></category>
		<category><![CDATA[Operating System Monitoring]]></category>
		<guid isPermaLink="false">https://library.nagios.com/?p=40918</guid>

					<description><![CDATA[Day after day, IT admins around the world rely on Nagios solutions to verify the health of their infrastructures and keep things running smoothly, but monitoring Nagios servers is often overlooked. Who &#8216;watches the watchmen&#8217;? If you&#8217;re not monitoring your Nagios systems and they run into trouble, you&#8217;ll be left in the dark about the [&#8230;]]]></description>
										<content:encoded><![CDATA[
<p>Day after day, IT admins around the world rely on Nagios solutions to verify the health of their infrastructures and keep things running smoothly, but monitoring Nagios servers is often overlooked. Who &#8216;watches the watchmen&#8217;? If you&#8217;re not monitoring your Nagios systems and they run into trouble, you&#8217;ll be left in the dark about the status of the critical assets they keep tabs on. In this article, we&#8217;ll discuss strategies you can employ for monitoring Nagios application servers, making sure they are available and performing as expected.</p>



<h2 class="wp-block-heading">Start Monitoring Nagios XI Servers</h2>



<p><a href="https://assets.nagios.com/downloads/nagiosxi/docs/Monitoring-A-Nagios-XI-Server.pdf" target="_blank" rel="noopener">Monitoring your Nagios XI server</a> is a breeze using the built-in Nagios XI Monitoring Wizard. It provides easy access a variety of key application metrics that you&#8217;ll want to keep an eye on, monitored via XI&#8217;s REST API :</p>



<ul class="wp-block-list">
<li>Nagios XI Web Interface &#8211; <em>checks the availability of the web UI</em></li>



<li>Monitoring Daemons &#8211; <em>ensures that the monitoring engine and supporting daemons (nagios and npcd) are running</em></li>



<li>Monitoring Jobs &#8211; <em>ensures that core monitoring jobs are running</em></li>



<li>Load &#8211; <em>1, 5, and 15 minute CPU load averages</em></li>



<li>I/O Wait &#8211; <em>measures disk read/write times</em></li>
</ul>



<p>It&#8217;s also recommended to monitor standard items such as memory, drivespace, interface bandwidth, and CPU usage, as well as key system services such as <code>mysqld</code>/<code>mariadb</code>, <code>crond</code>, and apache (<code>httpd</code>). In this article we&#8217;ll use <a href="https://www.nagios.org/ncpa/" target="_blank" rel="noopener">NCPA</a> (the Nagios Cross Platform Agent) and built-in monitoring wizard to easily configure monitoring of these items.</p>



<figure class="wp-block-image size-large"><a href="https://library.nagios.com/wp-content/uploads/2025/01/XI-Services.png"><img fetchpriority="high" decoding="async" width="1024" height="578" src="https://library.nagios.com/wp-content/uploads/2025/01/XI-Services-1024x578.png" alt="Screenshot showing Nagios monitoring of a Nagios XI server, with a list of key services being monitored." class="wp-image-41488" title="Monitor of Monitors: Easily Monitoring Nagios Servers 1" srcset="https://library.nagios.com/wp-content/uploads/2025/01/XI-Services-1024x578.png 1024w, https://library.nagios.com/wp-content/uploads/2025/01/XI-Services-300x169.png 300w, https://library.nagios.com/wp-content/uploads/2025/01/XI-Services-768x433.png 768w, https://library.nagios.com/wp-content/uploads/2025/01/XI-Services.png 1267w" sizes="(max-width: 1024px) 100vw, 1024px" /></a><figcaption class="wp-element-caption">Nagios monitoring of key services on an XI server. </figcaption></figure>



<p>It&#8217;s also worth using your production XI server to monitor the XI server you monitor your other Nagios servers with. This best practice will ensure that both servers are being checked for availability. </p>



<p>For <a href="https://www.nagios.org/projects/nagios-core/" target="_blank" rel="noopener">Nagios Core</a> servers, you&#8217;ll want to monitor the <code>nagios</code> service and <code>httpd</code>, along with the same server performance metrics.</p>



<h2 class="wp-block-heading">Monitoring Nagios Log Server</h2>



<p>In addition to standard performance metrics like CPU, memory, and drivespace, you&#8217;ll also want to monitor critical system services such as <code>elasticsearch</code> and <code>logstash</code>. For added power, you can <a href="https://library.nagios.com/techtips/nagios-xi-bpi-unlock-actionable-insights-for-it-monitoring-and-optimization/" data-type="link" data-id="https://library.nagios.com/techtips/nagios-xi-bpi-unlock-actionable-insights-for-it-monitoring-and-optimization/">create a BPI group</a> for your cluster for intelligent monitoring and root cause analysis of issues.</p>



<p>If the NCPA agent is used, you&#8217;ll also notice a couple of built-in plugins at the bottom of Step 2 of the wizard that can be used to monitor cluster status and JVM heap data.</p>



<figure class="wp-block-image size-large"><a href="https://library.nagios.com/wp-content/uploads/2025/01/NLSR2-Services-.png"><img decoding="async" width="1024" height="504" src="https://library.nagios.com/wp-content/uploads/2025/01/NLSR2-Services--1024x504.png" alt="A screenshot showing key services being monitored on a Nagios Log Server instance." class="wp-image-41394" title="Monitor of Monitors: Easily Monitoring Nagios Servers 2" srcset="https://library.nagios.com/wp-content/uploads/2025/01/NLSR2-Services--1024x504.png 1024w, https://library.nagios.com/wp-content/uploads/2025/01/NLSR2-Services--300x148.png 300w, https://library.nagios.com/wp-content/uploads/2025/01/NLSR2-Services--768x378.png 768w, https://library.nagios.com/wp-content/uploads/2025/01/NLSR2-Services--1536x757.png 1536w, https://library.nagios.com/wp-content/uploads/2025/01/NLSR2-Services-.png 1693w" sizes="(max-width: 1024px) 100vw, 1024px" /></a><figcaption class="wp-element-caption">Key services being monitored on Nagios Log Server. </figcaption></figure>



<h2 class="wp-block-heading">Monitoring Nagios Network Analyzer</h2>



<p>In addition to key server performance checks, some critical Nagios Network Analyzer system services are <code>nagiosna</code>, <code>mariadb</code>/<code>mysql</code>, and <code>httpd</code>:</p>



<figure class="wp-block-image size-large"><a href="https://library.nagios.com/wp-content/uploads/2025/01/NNA-Services-.png"><img decoding="async" width="1024" height="529" src="https://library.nagios.com/wp-content/uploads/2025/01/NNA-Services--1024x529.png" alt="Screenshot showing key services being monitored on a Nagios Network Analyzer server." class="wp-image-41401" title="Monitor of Monitors: Easily Monitoring Nagios Servers 3" srcset="https://library.nagios.com/wp-content/uploads/2025/01/NNA-Services--1024x529.png 1024w, https://library.nagios.com/wp-content/uploads/2025/01/NNA-Services--300x155.png 300w, https://library.nagios.com/wp-content/uploads/2025/01/NNA-Services--768x397.png 768w, https://library.nagios.com/wp-content/uploads/2025/01/NNA-Services--1536x794.png 1536w, https://library.nagios.com/wp-content/uploads/2025/01/NNA-Services-.png 1683w" sizes="(max-width: 1024px) 100vw, 1024px" /></a><figcaption class="wp-element-caption">Key services monitored on Nagios Network Analyzer.  </figcaption></figure>



<h2 class="wp-block-heading">Monitoring Nagios Fusion</h2>



<p>On your Fusion server, monitoring of <code>mariadb</code>/<code>mysqld</code> and <code>httpd</code> services is important, along with standard system performance metrics: </p>



<figure class="wp-block-image size-large"><a href="https://library.nagios.com/wp-content/uploads/2025/01/Fusion-Services.png"><img loading="lazy" decoding="async" width="1024" height="487" src="https://library.nagios.com/wp-content/uploads/2025/01/Fusion-Services-1024x487.png" alt="Screenshot showing key services being monitored on a Nagios Fusion server." class="wp-image-41402" title="Monitor of Monitors: Easily Monitoring Nagios Servers 4" srcset="https://library.nagios.com/wp-content/uploads/2025/01/Fusion-Services-1024x487.png 1024w, https://library.nagios.com/wp-content/uploads/2025/01/Fusion-Services-300x143.png 300w, https://library.nagios.com/wp-content/uploads/2025/01/Fusion-Services-768x365.png 768w, https://library.nagios.com/wp-content/uploads/2025/01/Fusion-Services-1536x730.png 1536w, https://library.nagios.com/wp-content/uploads/2025/01/Fusion-Services.png 1754w" sizes="(max-width: 1024px) 100vw, 1024px" /></a><figcaption class="wp-element-caption">Key services monitored on Nagios Fusion. </figcaption></figure>



<h2 class="wp-block-heading">Use the Force: Set Up Custom Alerts and Dashboards</h2>



<p>Once you&#8217;ve set up monitoring of your Nagios servers, the next step will be to set up <a href="https://assets.nagios.com/downloads/nagiosxi/docs/Configuring-Email-And-Text-Notifications-in-Nagios-XI.pdf" target="_blank" rel="noopener">alerts</a> so you and your team will know when problems occur. </p>



<p>You can also set up custom Dashboards for a quick visual reference of how your Nagios deployment is running, such as this one: </p>



<figure class="wp-block-image size-large"><a href="https://library.nagios.com/wp-content/uploads/2025/01/Nagios-Suite-Dashboard.png"><img loading="lazy" decoding="async" width="1024" height="531" src="https://library.nagios.com/wp-content/uploads/2025/01/Nagios-Suite-Dashboard-1024x531.png" alt="A dashboard showing the status of several Nagios servers." class="wp-image-41367" title="Monitor of Monitors: Easily Monitoring Nagios Servers 5" srcset="https://library.nagios.com/wp-content/uploads/2025/01/Nagios-Suite-Dashboard-1024x531.png 1024w, https://library.nagios.com/wp-content/uploads/2025/01/Nagios-Suite-Dashboard-300x156.png 300w, https://library.nagios.com/wp-content/uploads/2025/01/Nagios-Suite-Dashboard-768x398.png 768w, https://library.nagios.com/wp-content/uploads/2025/01/Nagios-Suite-Dashboard-1536x796.png 1536w, https://library.nagios.com/wp-content/uploads/2025/01/Nagios-Suite-Dashboard.png 1663w" sizes="(max-width: 1024px) 100vw, 1024px" /></a><figcaption class="wp-element-caption">This Dashboard provides at-a-glace details on the status of the Nagios suite. </figcaption></figure>



<p>Here&#8217;s a video from Mahad on creating Dashboards in Nagios XI in case you&#8217;re looking for details on setting them up:</p>



<figure class="wp-block-embed is-type-video is-provider-youtube wp-block-embed-youtube wp-embed-aspect-16-9 wp-has-aspect-ratio"><div class="wp-block-embed__wrapper">
<iframe title="How To Use Dashboards in Nagios XI" width="800" height="450" src="https://www.youtube.com/embed/W2WErj6BWP4?feature=oembed" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" referrerpolicy="strict-origin-when-cross-origin" allowfullscreen></iframe>
</div></figure>



<h2 class="wp-block-heading">Be Proactive: Capacity Planning, Automated Actions &amp; Real-Time Insights</h2>



<p>In addition to monitoring the current health of your Nagios servers, you can take things a step further by leveraging other great features of Nagios XI, such as Capacity Planning, Actions, Event Handlers, and the NCPA Web UI: </p>



<ul class="wp-block-list">
<li><a href="https://assets.nagios.com/downloads/nagiosxi/docs/How_To_Use_Capacity_Planning.pdf" target="_blank" rel="noopener">Capacity Planning</a> empowers you to project future usage based on the historical performance data you collect, and graph the results. Those results can be reviewed as needed, added to Dashboards for quick access to specific projections you want to keep tabs on, and even alerted on using the Capacity Planning Wizard. This powerful feature is part of the Enterprise Edition of XI. Here&#8217;s a video from Vadim that will help you quickly understand Capacity Planning: </li>
</ul>



<figure class="wp-block-embed is-type-video is-provider-youtube wp-block-embed-youtube wp-embed-aspect-16-9 wp-has-aspect-ratio"><div class="wp-block-embed__wrapper">
<iframe title="How to Use Capacity Planning - Nagios XI: Enterprise Features" width="800" height="450" src="https://www.youtube.com/embed/b1nmYVQwDs4?feature=oembed" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" referrerpolicy="strict-origin-when-cross-origin" allowfullscreen></iframe>
</div></figure>



<ul class="wp-block-list">
<li><a href="https://library.nagios.com/techtips/take-action-leverage-custom-quick-actions-in-nagios-xi/" target="_blank" rel="noreferrer noopener">Actions</a> enable you to set up clickable icons in the Host and Service Status Detail pages of XI, which can be set to do useful things like execute scripts (for example, to restart a system service) and direct users to URLs.</li>



<li><a href="https://assets.nagios.com/downloads/nagiosxi/docs/Introduction-To-Event-Handlers-in-Nagios-XI.pdf" target="_blank" rel="noopener">Event Handlers</a> are another option worth exploring, providing you with the ability to automatically execute scripted remediation actions when problems are detected. </li>



<li>The <a href="https://www.nagios.org/ncpa/help.php#undefined" target="_blank" rel="noopener">NCPA Web UI</a> provides access to real-time performance graphs and top processes data on each system you monitor with this powerful agent:</li>
</ul>



<figure class="wp-block-image size-large"><a href="https://library.nagios.com/wp-content/uploads/2025/01/NCPA-Graphs.png"><img loading="lazy" decoding="async" width="1024" height="516" src="https://library.nagios.com/wp-content/uploads/2025/01/NCPA-Graphs-1024x516.png" alt="The NCPA (Nagios Cross Platform Agent) web interface, showing graphs of CPU and Memory usage." class="wp-image-41498" title="Monitor of Monitors: Easily Monitoring Nagios Servers 6" srcset="https://library.nagios.com/wp-content/uploads/2025/01/NCPA-Graphs-1024x516.png 1024w, https://library.nagios.com/wp-content/uploads/2025/01/NCPA-Graphs-300x151.png 300w, https://library.nagios.com/wp-content/uploads/2025/01/NCPA-Graphs-768x387.png 768w, https://library.nagios.com/wp-content/uploads/2025/01/NCPA-Graphs.png 1273w" sizes="(max-width: 1024px) 100vw, 1024px" /></a><figcaption class="wp-element-caption">Live graphs in the NCPA web UI. </figcaption></figure>



<figure class="wp-block-image size-large"><a href="https://library.nagios.com/wp-content/uploads/2025/01/NCPA-Top-Processes.png"><img loading="lazy" decoding="async" width="1024" height="352" src="https://library.nagios.com/wp-content/uploads/2025/01/NCPA-Top-Processes-1024x352.png" alt="The NCPA (Nagios Cross Platform Agent) web interface, showing a list of Top Processes." class="wp-image-41499" title="Monitor of Monitors: Easily Monitoring Nagios Servers 7" srcset="https://library.nagios.com/wp-content/uploads/2025/01/NCPA-Top-Processes-1024x352.png 1024w, https://library.nagios.com/wp-content/uploads/2025/01/NCPA-Top-Processes-300x103.png 300w, https://library.nagios.com/wp-content/uploads/2025/01/NCPA-Top-Processes-768x264.png 768w, https://library.nagios.com/wp-content/uploads/2025/01/NCPA-Top-Processes.png 1416w" sizes="(max-width: 1024px) 100vw, 1024px" /></a><figcaption class="wp-element-caption">Top Processes live data in the NCPA web UI. </figcaption></figure>



<h2 class="wp-block-heading">Nagios Licensing Considerations</h2>



<p>One great option is the free 7 Node (Host)/ 100 Total Check (Hosts + Services) license of Nagios XI. To leverage this approach, simply set up a fresh install of Nagios XI, then navigate to <strong>Admin -&gt; System Config -&gt; License Information</strong> and select the <strong>Free (self supported)</strong> option.</p>



<p>We also offer smaller <a href="https://www.nagios.com/pricing-plans/" target="_blank" rel="noopener">licenses</a> like the 50 Node if your requirements exceed the limits of the free license.</p>



<p>Whatever licensing approach you choose, taking the time to set up monitoring of your Nagios servers is an important best practice that will help make sure your Nagios deployment is ready and running when you need it most, and by extension keep the rest of your environment spinning like a top.</p>
]]></content:encoded>
					
		
		
		<media:content url="https://www.youtube.com/embed/W2WErj6BWP4" medium="video">
			<media:player url="https://www.youtube.com/embed/W2WErj6BWP4" />
			<media:title type="plain">Management Challenges Archives - Nagios Library</media:title>
			<media:description type="html"><![CDATA[Enjoy the videos and music you love, upload original content, and share it all with friends, family, and the world on YouTube.]]></media:description>
			<media:thumbnail url="https://library.nagios.com/wp-content/uploads/2025/01/Nagios-Suite-Dashboard.png" />
			<media:rating scheme="urn:simple">nonadult</media:rating>
		</media:content>
	</item>
		<item>
		<title>Take Action! Leverage Custom Quick Actions in Nagios XI</title>
		<link>https://library.nagios.com/techtips/take-action-leverage-custom-quick-actions-in-nagios-xi/</link>
		
		<dc:creator><![CDATA[Shamas Demoret]]></dc:creator>
		<pubDate>Tue, 28 Jan 2025 16:23:29 +0000</pubDate>
				<category><![CDATA[Techtips]]></category>
		<category><![CDATA[Management Challenges]]></category>
		<guid isPermaLink="false">https://library.nagios.com/?p=40736</guid>

					<description><![CDATA[Enhance your Nagios XI monitoring efficiency by implementing custom quick actions. This guide provides step-by-step instructions on configuring the XI Actions Component, enabling you to execute custom URLs, Linux scripts, macros, and PHP code directly from the Nagios XI interface. By leveraging these customizable actions, you can streamline your workflow and respond swiftly to critical events.]]></description>
										<content:encoded><![CDATA[
<p>You may already be familiar with the <a href="https://assets.nagios.com/downloads/nagiosxi/docs/Introduction-To-Event-Handlers-in-Nagios-XI.pdf" target="_blank" rel="noopener">event handlers </a>function of Nagios XI, which enables you to execute automated scripted actions in response to problems Nagios detects. This automated method enables you to do anything from pushing information to your ticketing system to restarting key system services XI finds to be in a stopped state.</p>



<p>But did you know that Nagios XI also provides a built-in way to execute scripts and navigate to URLs by clicking on icons in the Quick Actions section of your Hosts Status and Service Status Detail pages? In this article we&#8217;ll take a look at the powerful Nagios XI <a href="https://assets.nagios.com/downloads/nagiosxi/docs/How-To-Use-The-Actions-Component-in-Nagios-XI.pdf" target="_blank" rel="noopener">Actions</a> component.</p>



<h2 class="wp-block-heading">Setting Up Your Actions</h2>



<p>To begin setting up your custom Actions, navigate to <strong>Admin -&gt; System Extensions -&gt; Manage Components -&gt; Actions</strong>, and click the gear icon:</p>



<figure class="wp-block-image size-large"><a href="https://library.nagios.com/wp-content/uploads/2025/01/Actions-getting-to.png"><img loading="lazy" decoding="async" width="1024" height="437" src="https://library.nagios.com/wp-content/uploads/2025/01/Actions-getting-to-1024x437.png" alt="A picture of the Nagios XI menu, with the path to the Actions component highlighted." class="wp-image-40786" title="Take Action! Leverage Custom Quick Actions in Nagios XI 8" srcset="https://library.nagios.com/wp-content/uploads/2025/01/Actions-getting-to-1024x437.png 1024w, https://library.nagios.com/wp-content/uploads/2025/01/Actions-getting-to-300x128.png 300w, https://library.nagios.com/wp-content/uploads/2025/01/Actions-getting-to-768x328.png 768w, https://library.nagios.com/wp-content/uploads/2025/01/Actions-getting-to.png 1257w" sizes="(max-width: 1024px) 100vw, 1024px" /></a><figcaption class="wp-element-caption">Getting to the Actions component. </figcaption></figure>



<p>Here you can view, create, and edit your Actions. You&#8217;ll notice that a couple of simple example Actions are already present, designed to run a Google search for your Host Names or Service Names, and a button at the bottom of the menu to add a row <strong>(+ Add Row)</strong>, which you&#8217;ll click to add a new Action.</p>



<p>In this article we&#8217;ll use the example of Actions which will <a href="https://assets.nagios.com/downloads/nagiosxi/docs/Restarting-Windows-Services-With-NCPA.pdf" target="_blank" rel="noopener">start and stop</a> the spooler service on a Windows host we&#8217;re monitoring with <a href="https://youtu.be/Q-Mq6PzwE38?si=hxMvD8oa2aH5ir9C" target="_blank" rel="noopener">NCPA</a> (the Nagios Cross Platform Agent):</p>



<figure class="wp-block-image size-large"><a href="https://library.nagios.com/wp-content/uploads/2025/01/Actions-spooler-action-settings.png"><img loading="lazy" decoding="async" width="1024" height="330" src="https://library.nagios.com/wp-content/uploads/2025/01/Actions-spooler-action-settings-1024x330.png" alt="A look at the settings for an Action which will be used to restart the spooler service on an Windows machine." class="wp-image-40787" title="Take Action! Leverage Custom Quick Actions in Nagios XI 9" srcset="https://library.nagios.com/wp-content/uploads/2025/01/Actions-spooler-action-settings-1024x330.png 1024w, https://library.nagios.com/wp-content/uploads/2025/01/Actions-spooler-action-settings-300x97.png 300w, https://library.nagios.com/wp-content/uploads/2025/01/Actions-spooler-action-settings-768x248.png 768w, https://library.nagios.com/wp-content/uploads/2025/01/Actions-spooler-action-settings.png 1092w" sizes="(max-width: 1024px) 100vw, 1024px" /></a><figcaption class="wp-element-caption">Our example Action settings. </figcaption></figure>



<p>For <strong>Object Type</strong>, we&#8217;ve selected &#8216;Service&#8217;, so that our icon will appear on any Nagios services that match our other settings. For <strong>Host</strong>, we&#8217;ve selected a Windows host, placing the Host Name between forward slashes. For<strong> Service</strong>, we&#8217;ve selected the &#8216;Spooler&#8217; Service Name on the Windows host, also between forward slashes. Note that you can also choose to apply the Action to entire <a href="https://library.nagios.com/techtips/organize-host-service-groups-nagios-xi/" target="_blank" rel="noreferrer noopener">Hostgroups and Servicegroups</a> to quickly add an icon and function to many objects.</p>



<p></p>



<p><strong>Action Text</strong> defines how our icon will be labelled in Status Detail pages it appears on. For <strong>Action Type</strong> we&#8217;ve selected &#8216;Command&#8217;, so that XI knows we wish to execute a command when our Action icon is clicked. Just below in the <strong>URL/Command</strong> field, we&#8217;ve added: <code>/usr/local/nagios/libexec/check_ncpa.py -H 192.168.123.45 -P 5693 -t sometoken -M 'plugins/start_service.bat' -a spooler</code><br><br>This command executes the <code>check_ncpa.py</code> plugin with all of the arguments that follow. Of course in your commands, you&#8217;ll want to include your own Windows IP address after <code>-H</code>, your own token after <code>-t</code>, the name of the plugin you wish to execute via check_ncpa.py after <code>-M</code>, and the name of the system service to restart after <code>-a</code> in the event that you&#8217;re executing the plugin via NCPA. You can also restart Windows services with <a href="https://assets.nagios.com/downloads/nagiosxi/docs/Restarting-Windows-Services-With-NRPE-in-Nagios-XI.pdf" target="_blank" rel="noopener">NRPE on NSClient++,</a> Linux services with <a href="https://assets.nagios.com/downloads/nagiosxi/docs/Restarting-Linux-Services-With-NCPA.pdf" target="_blank" rel="noopener">NCPA</a> or <a href="https://assets.nagios.com/downloads/nagiosxi/docs/Restarting-Linux-Services-With-NRPE.pdf" target="_blank" rel="noopener">NRPE</a>, or with no agent at all using methods like SSH, so there are many options.</p>



<p></p>



<p>The restart_service.bat script we wish to execute lives in: <code><a href="\Program Files\Nagios\NCPA\plugins">C:\Program Files\Nagios\NCPA\plugins</a></code> on our Windows host, and contains the following text:</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:#adbac7;display:none" aria-label="Copy" class="code-block-pro-copy-button"><pre class="code-block-pro-copy-button-pre" aria-hidden="true"><textarea class="code-block-pro-copy-button-textarea" tabindex="-1" aria-hidden="true" readonly>@echo off
net start %1
@exit 0</textarea></pre><svg xmlns="http://www.w3.org/2000/svg" style="width:24px;height:24px" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2"><path class="with-check" stroke-linecap="round" stroke-linejoin="round" d="M4.5 12.75l6 6 9-13.5"></path><path class="without-check" stroke-linecap="round" stroke-linejoin="round" d="M16.5 8.25V6a2.25 2.25 0 00-2.25-2.25H6A2.25 2.25 0 003.75 6v8.25A2.25 2.25 0 006 16.5h2.25m8.25-8.25H18a2.25 2.25 0 012.25 2.25V18A2.25 2.25 0 0118 20.25h-7.5A2.25 2.25 0 018.25 18v-1.5m8.25-8.25h-6a2.25 2.25 0 00-2.25 2.25v6"></path></svg></span><pre class="shiki github-dark-dimmed" style="background-color: #22272e" tabindex="0"><code><span class="line"><span style="color: #adbac7">@echo off</span></span>
<span class="line"><span style="color: #adbac7">net start %1</span></span>
<span class="line"><span style="color: #adbac7">@exit 0</span></span></code></pre></div>



<p>The <code>-a</code> argument we pass when XI executes the check_ncpa.py plugin will take the place of the <code>%1</code> portion of our script, in this case <code>spooler</code>. <br><br>Finally, in the Code section on the far right of our Action settings, we&#8217;ve pared down the example code as follows:</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:#adbac7;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>if ('%servicestateid%'!='0') {
    $img = '/nagiosxi/images/wizardwand.png';
    $showlink = true;
} else {
    $showlink = false;
}</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 github-dark-dimmed" style="background-color: #22272e" tabindex="0"><code><span class="line"><span style="color: #adbac7">if (&#39;%servicestateid%&#39;!=&#39;0&#39;) {</span></span>
<span class="line"><span style="color: #adbac7">    $img = &#39;/nagiosxi/images/wizardwand.png&#39;;</span></span>
<span class="line"><span style="color: #adbac7">    $showlink = true;</span></span>
<span class="line"><span style="color: #adbac7">} else {</span></span>
<span class="line"><span style="color: #adbac7">    $showlink = false;</span></span>
<span class="line"><span style="color: #adbac7">}</span></span></code></pre></div>



<p>We removed the leading and trailing <code>/*</code> and <code>*/</code> to uncomment the code, and set it so that if the state of the service (the <code>%servicestateid%</code> macro, see <a href="https://assets.nagios.com/downloads/nagiosxi/docs/How-To-Use-The-Actions-Component-in-Nagios-XI.pdf" target="_blank" rel="noopener">pages 12 and 13 of the guide</a> for a complete list) is either warning or critical, the icon will appear. However, if the state of the service is OK, the icon will be hidden. In Nagios, an OK state returns a 0, a Warning state a 1, and a Critical state a 2. So, <code>!='0' </code>means any state other than 0/OK will make our icon appear.</p>



<p></p>



<p>Alternately, to make the icon appear if the system service is in an OK state (for example if you wanted an option to stop one that was currently running), you would use <code>('%servicestateid%'=='0')</code>. For our icon, we&#8217;ve chosen <code>wizardwand.png</code>. There are a wide variety of icons you can choose from in the following directory: <code>/usr/local/nagiosxi/html/images</code> </p>



<p></p>



<p>Some that are well-suited for use in your custom Actions are:</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)"><pre class="shiki github-dark-dimmed" style="background-color: #22272e" tabindex="0"><code><span class="line"><span style="color: #adbac7">d_restart.gif, d_start.gif, d_stop.gif, editsettings.png (a wrench), eye.png, server_go.png,</span></span>
<span class="line"><span style="color: #adbac7">transmit.png, transmit_add.png, transmit_go.png, transmit_delete.png, wizardwand.png,</span></span>
<span class="line"><span style="color: #adbac7">lightning.png</span></span></code></pre></div>



<p>Although many are sized correctly to work as Actions icons, the following are too large and will cause issues, so should be avoided:</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)"><pre class="shiki github-dark-dimmed" style="background-color: #22272e" tabindex="0"><code><span class="line"><span style="color: #adbac7">apple-touch-icon.png, apple-touch-icon-precomposed.png, close_large.png,</span></span>
<span class="line"><span style="color: #adbac7">close_large_hover.png, config_wizard.png,favicon-32.32.png, footer_lodyas.png,</span></span>
<span class="line"><span style="color: #adbac7">footer_lodyas_dark.png, glyphicons-halflings.png, glyphicons-halflings-white.png,</span></span>
<span class="line"><span style="color: #adbac7">loginsplash.png, nagios_critial_larg.png, nagios_logo_white.transbg.png, nagios_ok_large.png,</span></span>
<span class="line"><span style="color: #adbac7">nagios_pending_large.png, nagios_unknown_large.png,nagios_warning_large.png,nagiosxi-logo</span></span>
<span class="line"><span style="color: #adbac7">small.png, pending_medium.png, shattered.png, tacdisabled,png, tacdisabledi.png,</span></span>
<span class="line"><span style="color: #adbac7">tacdisabledu.png, tacenabled.png, tacenabledu.png, techsupport-splash.png, techsupport</span></span>
<span class="line"><span style="color: #adbac7">splash2.png</span></span></code></pre></div>



<p></p>



<p>Simply replace <code>wizardwand.png</code> in the above snippet with the name of whichever icon you&#8217;d like to use to customize your Actions icon. Once your settings are in place, make sure that the <strong>Enable custom actions in Nagios XI</strong> checkbox is clicked at the top of the menu, that the <strong>Enabled</strong> checkbox is clicked for your new Action, and then click <strong>Apply Settings</strong> at the bottom of the menu.</p>



<h2 class="wp-block-heading">Take Action!</h2>



<p>Now that we&#8217;ve set up our Action, let&#8217;s see it&#8230;in action! Here&#8217;s a look at the &#8216;Spooler&#8217; Service Status Detail page when the Windows service is found to be stopped. As you can see, a &#8216;Start Spooler&#8217; action with a wizard wand icon is now available in the <strong>Quick Actions</strong> section:</p>



<figure class="wp-block-image size-full"><a href="https://library.nagios.com/wp-content/uploads/2025/01/Windows-Actions-Spooler.png"><img loading="lazy" decoding="async" width="920" height="416" src="https://library.nagios.com/wp-content/uploads/2025/01/Windows-Actions-Spooler.png" alt="The &#039;Start Spooler&#039; action icon in the Service Status Detail page for a Windows host." class="wp-image-40788" title="Take Action! Leverage Custom Quick Actions in Nagios XI 10" srcset="https://library.nagios.com/wp-content/uploads/2025/01/Windows-Actions-Spooler.png 920w, https://library.nagios.com/wp-content/uploads/2025/01/Windows-Actions-Spooler-300x136.png 300w, https://library.nagios.com/wp-content/uploads/2025/01/Windows-Actions-Spooler-768x347.png 768w" sizes="(max-width: 920px) 100vw, 920px" /></a><figcaption class="wp-element-caption">&#8216;Spooler&#8217; Service Status Detail page</figcaption></figure>



<p>To restart spooler, all we need to do is click the icon. This will execute our <code>service_restart.sh</code> script, and a new tab will open showing us the output:</p>



<figure class="wp-block-image size-full"><a href="https://library.nagios.com/wp-content/uploads/2025/01/Actions-starting-spooler.png"><img loading="lazy" decoding="async" width="1101" height="237" src="https://library.nagios.com/wp-content/uploads/2025/01/Actions-starting-spooler.png" alt="The output from running the Start Spooler Action, showing success." class="wp-image-40875" title="Take Action! Leverage Custom Quick Actions in Nagios XI 11" srcset="https://library.nagios.com/wp-content/uploads/2025/01/Actions-starting-spooler.png 1101w, https://library.nagios.com/wp-content/uploads/2025/01/Actions-starting-spooler-300x65.png 300w, https://library.nagios.com/wp-content/uploads/2025/01/Actions-starting-spooler-1024x220.png 1024w, https://library.nagios.com/wp-content/uploads/2025/01/Actions-starting-spooler-768x165.png 768w" sizes="(max-width: 1101px) 100vw, 1101px" /></a><figcaption class="wp-element-caption">Spooler started! </figcaption></figure>



<p>Adding to this example, we&#8217;ve also set up a second Action to stop spooler when it is running. The Code section of our Stop Spooler action is much like our Start Spooler code, but is looking for a an OK/running state, and is using the lightning.png icon:</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:#adbac7;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>if ('%servicestateid%'=='0') {
$img = '/nagiosxi/images/lightning.png';
$showlink = true;
} else {
$showlink = false;
}</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 github-dark-dimmed" style="background-color: #22272e" tabindex="0"><code><span class="line"><span style="color: #adbac7">if (&#39;%servicestateid%&#39;==&#39;0&#39;) {</span></span>
<span class="line"><span style="color: #adbac7">$img = &#39;/nagiosxi/images/lightning.png&#39;;</span></span>
<span class="line"><span style="color: #adbac7">$showlink = true;</span></span>
<span class="line"><span style="color: #adbac7">} else {</span></span>
<span class="line"><span style="color: #adbac7">$showlink = false;</span></span>
<span class="line"><span style="color: #adbac7">}</span></span></code></pre></div>



<figure class="wp-block-image size-full"><a href="https://library.nagios.com/wp-content/uploads/2025/01/Actions-stop_lightning.png"><img loading="lazy" decoding="async" width="667" height="225" src="https://library.nagios.com/wp-content/uploads/2025/01/Actions-stop_lightning.png" alt="An image of the Stop Spooler Action, using a lightning bolt icon" class="wp-image-40801" title="Take Action! Leverage Custom Quick Actions in Nagios XI 12" srcset="https://library.nagios.com/wp-content/uploads/2025/01/Actions-stop_lightning.png 667w, https://library.nagios.com/wp-content/uploads/2025/01/Actions-stop_lightning-300x101.png 300w" sizes="(max-width: 667px) 100vw, 667px" /></a><figcaption class="wp-element-caption">A lightning icon in case we want to zap spooler. </figcaption></figure>



<p>Our Command is almost identical, but is calling a <code>stop_service.bat</code> script rather than a <code>start_service.bat</code> script which contains:</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:#adbac7;display:none" aria-label="Copy" class="code-block-pro-copy-button"><pre class="code-block-pro-copy-button-pre" aria-hidden="true"><textarea class="code-block-pro-copy-button-textarea" tabindex="-1" aria-hidden="true" readonly>@echo off
net stop %1
@exit 0</textarea></pre><svg xmlns="http://www.w3.org/2000/svg" style="width:24px;height:24px" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2"><path class="with-check" stroke-linecap="round" stroke-linejoin="round" d="M4.5 12.75l6 6 9-13.5"></path><path class="without-check" stroke-linecap="round" stroke-linejoin="round" d="M16.5 8.25V6a2.25 2.25 0 00-2.25-2.25H6A2.25 2.25 0 003.75 6v8.25A2.25 2.25 0 006 16.5h2.25m8.25-8.25H18a2.25 2.25 0 012.25 2.25V18A2.25 2.25 0 0118 20.25h-7.5A2.25 2.25 0 018.25 18v-1.5m8.25-8.25h-6a2.25 2.25 0 00-2.25 2.25v6"></path></svg></span><pre class="shiki github-dark-dimmed" style="background-color: #22272e" tabindex="0"><code><span class="line"><span style="color: #adbac7">@echo off</span></span>
<span class="line"><span style="color: #adbac7">net stop %1</span></span>
<span class="line"><span style="color: #adbac7">@exit 0</span></span></code></pre></div>



<h2 class="wp-block-heading">Actions URLs </h2>



<p>The Actions component can also be used to add a clickable link to any URL you wish in your Status Detail pages. For example, linking to internal Knowledge Base resources related to the monitored object, a ticketing interface, or the webpage being monitored in the case of website monitoring. <a href="https://support.nagios.com/kb/article/nagios-xi-create-actions-url-link-in-quick-actions-menu-408.html" target="_blank" rel="noopener">This guide</a> explains how to set up Actions URLs, a quick and easy process.</p>



<p>Since Actions can execute anything you can script for, and link to external URLs, the possibilities are virtually endless! The Nagios XI Actions component is sure to prove valuable by helping you carry out common management and remediation tasks on your monitored systems and applications with the click of a button. </p>



<p></p>



<p></p>



<p></p>



<p></p>



<p></p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>Ensure They Can’t Hack IT This Holiday Season</title>
		<link>https://library.nagios.com/industry-insights/avoid-hacks-during-holidays/</link>
		
		<dc:creator><![CDATA[Kelly Ferguson]]></dc:creator>
		<pubDate>Mon, 23 Dec 2024 14:45:00 +0000</pubDate>
				<category><![CDATA[Industry Insights]]></category>
		<category><![CDATA[Log Monitoring]]></category>
		<category><![CDATA[Management Challenges]]></category>
		<category><![CDATA[Network Monitoring]]></category>
		<guid isPermaLink="false">https://library.nagios.com/?p=37721</guid>

					<description><![CDATA[The holiday season is the ideal time to relax, but it’s also the ideal time for hackers to compromise your systems. According to a recent study of 900 IT and security professionals worldwide by cybersecurity company Semperis, 86% of ransomware attacks on businesses happen during a holiday or weekend. Being the victim of a cyberattack [&#8230;]]]></description>
										<content:encoded><![CDATA[
<p>The holiday season is the ideal time to relax, but it’s also the ideal time for hackers to compromise your systems. According to a recent study of 900 IT and security professionals worldwide by cybersecurity company Semperis, 86% of ransomware attacks on businesses happen during a holiday or weekend.</p>



<figure class="wp-block-embed is-type-video is-provider-youtube wp-block-embed-youtube wp-embed-aspect-16-9 wp-has-aspect-ratio"><div class="wp-block-embed__wrapper">
<iframe title="Cyberattack risk during the holiday season" width="800" height="450" src="https://www.youtube.com/embed/EP3XOFIXznE?feature=oembed" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" referrerpolicy="strict-origin-when-cross-origin" allowfullscreen></iframe>
</div><figcaption class="wp-element-caption"><sub>Credit: CBS News</sub></figcaption></figure>



<p>Being the victim of a cyberattack may seem like something that only happens in the news, but it can happen to anyone. Many companies have suffered cyberattacks this year, such as AT&amp;T and Ticketmaster, according to CBS News, and yours could be next if you don’t fortify your systems for the holiday season.</p>



<p>While Nagios Monitoring Solutions aren’t cybersecurity tools, they can help you strengthen your IT infrastructure against malicious attacks. For a deeper look into how Nagios can support your cybersecurity efforts, read our other article <a href="https://www.nagios.com/article/supporting-cybersecurity-with-nagios-monitoring-solutions/" target="_blank" rel="noopener">Supporting Cybersecurity with Nagios Monitoring Solutions</a>.</p>



<h2 class="wp-block-heading">Supporting Cybersecurity with Nagios Monitoring Solutions During the Holiday Season</h2>



<h3 class="wp-block-heading">Nagios XI</h3>



<p>Nagios XI, our enterprise-grade IT infrastructure monitoring solution, can help protect you against cyberattacks through its ability to monitor and alert on nearly anything. XI can alert you when there are indicators of a possible attack, including unexpected file updates or changes in file size. With Configuration Wizards, you can also easily configure XI to <a href="https://library.nagios.com/documentation/how-to-monitor-website-defacement-with-nagios-xi/" target="_blank" rel="noreferrer noopener">monitor website defacement</a> and operating system error logs. For example, when you monitor your website for defacement, you can input specific strings you do not want to appear on your website. If XI finds one of those strings on your website, it will notify you so you can quickly jump into action and resolve the issue.</p>



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



<p>Nagios Log Server, our log monitoring solution, also helps with cybersecurity because it can store large amounts of log data and provides you with the ability to audit, report, and alert on it. These capabilities are important for your cybersecurity because they enable you to inspect your log data to identify or prevent security issues.</p>



<p>For instance, if you want to view the activity logs on an individual workstation to check data on access or permission attempts, Log Server can create an audit trail for you with its reporting feature. With near-instant alerting, Log Server also enables you to react quickly to any issues arising in your log data to speed up the time it takes to resolve an issue.</p>



<p>Log Server can also integrate with Nagios XI so you, or rather XI, can take action based on the log data it receives. By using this integration, you can create event handlers in XI to auto-remediate certain issues in your IT infrastructure based on log data it receives from Log Server. One example of how you can utilize this integration is if Log Server detects suspicious login attempts on a server, it can trigger an alert as well as an event handler in XI to will stop a running Service. As a result, you are able to prevent your IT environment from being compromised by someone who is trying to access your system.</p>



<h3 class="wp-block-heading">Nagios Network Analyzer</h3>



<p>Nagios Network Analyzer can help with cybersecurity as well because it monitors your network traffic and bandwidth and alerts you when critical thresholds for them are breached. With insight into both of these important parts of your network, you have the power to expose potential threats if they arise.</p>



<p>Whether abnormal activity is happening in your network or bandwidth usage is exceeding thresholds, you will be aware of whenever it happens because Network Analyzer will alert you and enable you to start investigating what’s happening. It’s essential you are aware of when these kinds of activity happen because these can indicate a malicious actor is inside your network. With an alert from Network Analyzer, however, the malicious actor won’t be in there long.</p>



<p>By integrating Nagios solutions into your cybersecurity strategy, you will have greater insight into what is happening in your IT infrastructure so you can avoid being part of the 86% during this holiday season.</p>



<p></p>
]]></content:encoded>
					
		
		
		<media:content url="https://www.youtube.com/embed/EP3XOFIXznE" medium="video">
			<media:player url="https://www.youtube.com/embed/EP3XOFIXznE" />
			<media:title type="plain">Management Challenges Archives - Nagios Library</media:title>
			<media:description type="html"><![CDATA[Enjoy the videos and music you love, upload original content, and share it all with friends, family, and the world on YouTube.]]></media:description>
			<media:thumbnail url="https://library.nagios.com/wp-content/uploads/2024/12/shutterstock_2516864551-scaled.jpg" />
			<media:rating scheme="urn:simple">nonadult</media:rating>
		</media:content>
	</item>
		<item>
		<title>Custom Variables in Nagios XI</title>
		<link>https://library.nagios.com/techtips/custom-variables-in-nagios-xi/</link>
		
		<dc:creator><![CDATA[Michael Bellerue]]></dc:creator>
		<pubDate>Wed, 18 Dec 2024 14:45:00 +0000</pubDate>
				<category><![CDATA[Techtips]]></category>
		<category><![CDATA[Management Challenges]]></category>
		<guid isPermaLink="false">https://library.nagios.com/?p=34271</guid>

					<description><![CDATA[These days, having a Configuration Management Database (CMDB) is a must. While Nagios XI is not built for managing your configurations, you can put some helpful information about your hosts and services into Nagios XI using Custom Variables. Once the custom variables are there, the information will be right at your fingertips in the very [&#8230;]]]></description>
										<content:encoded><![CDATA[
<p>These days, having a Configuration Management Database (CMDB) is a must. While <a href="https://library.nagios.com/products/nagios-xi/" target="_blank" rel="noreferrer noopener">Nagios XI</a> is not built for managing your configurations, you can put some helpful information about your hosts and services into Nagios XI using <a href="https://assets.nagios.com/downloads/nagioscore/docs/nagioscore/4/en/customobjectvars.html" target="_blank" rel="noreferrer noopener">Custom Variables</a>. Once the custom variables are there, the information will be right at your fingertips in the very moment you need it most.</p>



<h2 class="wp-block-heading">How To Configure Custom Variables</h2>



<p>Custom variables can be created on an individual host or service, or they can be configured in a host or service template. </p>



<p>To start off, let&#8217;s look at how to create custom variables. In this example, we will add them to a host in Nagios XI interface.</p>



<ol class="wp-block-list">
<li>Hover over the gear icon on the left menu, and select the Core Config Manager.</li>



<li>In the Core Config Manager, click on Hosts.</li>



<li>Select a host you want to give custom information. This will bring you to the Host Management screen.</li>



<li>In this screen, select the Misc Settings tab, and then click on the Manage Custom Variables button in the right column. This will bring up a Manage Custom Variables window.</li>



<li>Here you have a Name field and a Value field.
<ul class="wp-block-list">
<li>Things to keep in mind when filling out the Name field
<ul class="wp-block-list">
<li>The beginning of the variable name should always be an underscore ( _ )</li>



<li>It is best practice for the variable names to be all lower case, or all upper case</li>



<li>Avoid special characters like spaces, and ampersands</li>
</ul>
</li>
</ul>
</li>



<li>With those in mind, let&#8217;s create a variable named <code>_ncpa_token</code>.
<ul class="wp-block-list">
<li><strong>You can see here I used an underscore in place of a space.</strong></li>
</ul>
</li>



<li>For the Value, we&#8217;ll want whatever the host&#8217;s NCPA token actually is. In my case, I use a super secure token, &#8216;ASecretToken&#8217;.</li>
</ol>



<h2 class="wp-block-heading">Ideas For Using Custom Variables</h2>



<p>Custom Variables can be referenced in host or service checks, Event Handlers, and through Nagios XI&#8217;s API. Any piece of information you think is relevant to the host or service can be placed via a custom variable. It might be a Dell service tag ID for a server or maybe the Windows service name of a service you are monitoring, for use with an Event Handler to attempt to restart the service.</p>



<figure class="wp-block-image size-large is-resized"><a href="https://library.nagios.com/wp-content/uploads/2024/12/image-10.webp"><img loading="lazy" decoding="async" width="1024" height="564" src="https://library.nagios.com/wp-content/uploads/2024/12/image-10-1024x564.webp" alt="Image of the Nagios XI Core Configuration Manager, looking at a Host Template, under Misc Settings, the Manage Custom Variables menu is up. Among the custom variables shown are &#039;_ncpa_port&#039;, &#039;_ncpa_token&#039;, &#039;_cpu_warning&#039;, and &#039;_cpu_critical&#039;" class="wp-image-37536" style="width:840px;height:auto" title="Custom Variables in Nagios XI 13" srcset="https://library.nagios.com/wp-content/uploads/2024/12/image-10-1024x564.webp 1024w, https://library.nagios.com/wp-content/uploads/2024/12/image-10-300x165.webp 300w, https://library.nagios.com/wp-content/uploads/2024/12/image-10-768x423.webp 768w, https://library.nagios.com/wp-content/uploads/2024/12/image-10.webp 1076w" sizes="(max-width: 1024px) 100vw, 1024px" /></a><figcaption class="wp-element-caption">Here I have added custom variable to a Host Template defining the NCPA port number and secret token, as well as CPU warning and critical thresholds.</figcaption></figure>



<p>Custom variables can be assigned to hosts or services. Personally, I&#8217;m a fan of assigning variables to hosts, because you can create a generalized service check referenced by multiple hosts (typically known as Hostgroup Inheritance). Then when Nagios runs a service check for any host with the specific custom variable, it will pull the custom variable from the host and insert it into the service check.</p>



<figure class="wp-block-image size-full"><a href="https://library.nagios.com/wp-content/uploads/2024/12/image-11.webp"><img loading="lazy" decoding="async" width="874" height="618" src="https://library.nagios.com/wp-content/uploads/2024/12/image-11.webp" alt="Image of Nagios XI Core Configuration Manager looking at a specific Service Check. Highlighted items are the &#039;Manage Hosts&#039; button showing 0, the &#039;Manage Host Groups&#039; button showing 1, the $ARG1$ position showing &#039;$_HOSTNCPA_PORT$&#039;, the $ARG2$ position showing &#039;$_HOSTNCPA_TOKEN$&#039;, the $ARG4$ position showing &#039;-w $_HOSTCPU_WARNING$ -c $_HOST&#039; and then it cuts off, but presumably it is &#039;-c $_HOSTCPU_CRITICAL$&#039;" class="wp-image-37540" title="Custom Variables in Nagios XI 14" srcset="https://library.nagios.com/wp-content/uploads/2024/12/image-11.webp 874w, https://library.nagios.com/wp-content/uploads/2024/12/image-11-300x212.webp 300w, https://library.nagios.com/wp-content/uploads/2024/12/image-11-768x543.webp 768w" sizes="(max-width: 874px) 100vw, 874px" /></a><figcaption class="wp-element-caption">This service is assigned to a hostgroup rather than a host, thus this service is distributed via Hostgroup Inheritance. In the service check arguments section, you can see I am referring to some of those custom host variables. </figcaption></figure>



<p><strong>Note:</strong> In the previous image, the variables were defined like, <code>_ncpa_port</code>, lower case, with an underscore in front. When referencing the variables, it&#8217;s <code>_HOSTNCPA_PORT</code>, capitalized with underscore host in front denoting it is a custom variable defined at the <em>host</em> level.</p>



<p>This type of setup will add a ton of value for:</p>



<ul class="wp-block-list">
<li>Customers who need a different secret token for each system running NCPA</li>



<li>Customers who are utilizing Hostgroup Inheritance</li>



<li>Customers who need or want certain data to be available at a couple of clicks</li>
</ul>



<p></p>



<p>When looking at dashboards in Nagios XI, you may find a host has gone down. Depending on the dashlet you are looking at, you can click into the host and see all of the custom variables you have defined for the host. This can be very useful for network operation centers where you may have a process for ordering replacement hardware for your servers. Not having to access another application to get the system&#8217;s manufacturer ID number could help System Administrators get parts ordered faster.</p>



<figure class="wp-block-image size-large"><a href="https://library.nagios.com/wp-content/uploads/2024/12/image-8.webp"><img loading="lazy" decoding="async" width="1024" height="460" src="https://library.nagios.com/wp-content/uploads/2024/12/image-8-1024x460.webp" alt="Image showing the Custom Variables tab in the Host Status Detail page in Nagios XI. The host in question has several custom variables defined, including &#039;cpu_critical&#039;, &#039;cpu_warning&#039;, &#039;ncpa_port&#039;, and &#039;ncpa_token&#039;." class="wp-image-37392" title="Custom Variables in Nagios XI 15" srcset="https://library.nagios.com/wp-content/uploads/2024/12/image-8-1024x460.webp 1024w, https://library.nagios.com/wp-content/uploads/2024/12/image-8-300x135.webp 300w, https://library.nagios.com/wp-content/uploads/2024/12/image-8-768x345.webp 768w, https://library.nagios.com/wp-content/uploads/2024/12/image-8.webp 1102w" sizes="(max-width: 1024px) 100vw, 1024px" /></a><figcaption class="wp-element-caption">The Custom Variables tab in the Host Status Detail screen for a specific server.</figcaption></figure>



<p>Additionally, automating workflows based around the status of a given host or its service checks could be created by pulling custom variable information from Nagios XI&#8217;s API. For example, host variables for Ansible could be defined as custom variables in Nagios XI. Then Ansible could use Nagios XI as an <a href="https://galaxy.ansible.com/ui/namespaces/nagios/" target="_blank" rel="noreferrer noopener">Ansible inventory source</a>, and have connection information centralized in Nagios XI.</p>



<p></p>



<figure class="wp-block-image size-full"><a href="https://library.nagios.com/wp-content/uploads/2024/12/image-9.webp"><img loading="lazy" decoding="async" width="739" height="156" src="https://library.nagios.com/wp-content/uploads/2024/12/image-9.webp" alt="Image showing the output of the ansible-inventory command. The output shows a host with some Ansible specific information associated with it, such as &#039;ansible_connection&#039;, &#039;ansible_ssh_private_key_file&#039;, and &#039;ansible_user&#039;." class="wp-image-37393" style="aspect-ratio:Infinity;object-fit:cover" title="Custom Variables in Nagios XI 16" srcset="https://library.nagios.com/wp-content/uploads/2024/12/image-9.webp 739w, https://library.nagios.com/wp-content/uploads/2024/12/image-9-300x63.webp 300w" sizes="(max-width: 739px) 100vw, 739px" /></a><figcaption class="wp-element-caption">This is the ansible-inventory command querying Nagios XI&#8217;s API for a list of hosts and custom variables.</figcaption></figure>



<p></p>



<p>With custom variables, the only limitation is your imagination! </p>



<p></p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>Nagios XI – Using SSL with XI Active Directory</title>
		<link>https://library.nagios.com/documentation/nagios-xi-using-ssl-with-xi-active-directory-2/</link>
		
		<dc:creator><![CDATA[Ethan Galstad]]></dc:creator>
		<pubDate>Thu, 14 Nov 2024 03:27:55 +0000</pubDate>
				<category><![CDATA[Documentation]]></category>
		<category><![CDATA[Management Challenges]]></category>
		<guid isPermaLink="false">https://newlibrary.nagios.com/?post_type=nagios-xi-document&#038;p=3281</guid>

					<description><![CDATA[This document describes how to install the required certificate on the Nagios XI server for use with the Active Directory component for Nagios XI. This process is required if your LDAP server has a self signed certificate. This document is intended for use by Nagios XI Administrators that have unsecured Active Directory component working but [&#8230;]]]></description>
										<content:encoded><![CDATA[
<p>This document describes how to install the required certificate on the Nagios XI server for use with the Active Directory component for Nagios XI. This process is required if your LDAP server has a self signed certificate.</p>



<p>This document is intended for use by Nagios XI Administrators that have unsecured Active Directory component working but want to transition to using SSL.</p>



<p><strong>Using SSL with Nagios XI Active Directory &#8211; 2024 &amp; 2026</strong></p>



<p><a href="https://assets.nagios.com/downloads/nagiosxi/docs/Using-SSL-TLS-with-AD-LDAP-in-Nagios-XI-2024.pdf" target="_blank" rel="noopener">Using SSL with Nagios XI 2026 Active Directory</a></p>



<p><strong>Using SSL with Nagios XI Active Directory &#8211; v5 (Legacy) </strong></p>



<p><a href="https://assets.nagios.com/downloads/nagiosxi/docs/Using_SSL_with_XI_Active_Directory_Component.pdf" target="_blank" rel="noreferrer noopener">Using SSL with XI 5 Active Directory</a></p>



<p></p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>Nagios XI – Restarting Windows Services With NCPA</title>
		<link>https://library.nagios.com/documentation/nagios-xi-restarting-windows-services-with-ncpa/</link>
		
		<dc:creator><![CDATA[Ethan Galstad]]></dc:creator>
		<pubDate>Thu, 14 Nov 2024 03:21:17 +0000</pubDate>
				<category><![CDATA[Documentation]]></category>
		<category><![CDATA[Management Challenges]]></category>
		<category><![CDATA[NCPA]]></category>
		<category><![CDATA[Operating System Monitoring]]></category>
		<category><![CDATA[Windows Monitoring]]></category>
		<guid isPermaLink="false">https://newlibrary.nagios.com/?post_type=nagios-xi-document&#038;p=3275</guid>

					<description><![CDATA[This document describes how to automatically restart problematic services on Windows machines using the Nagios Cross-Platform Agent (NCPA). This document is intended for use by Nagios XI Administrators who want to automate restarting of problematic services on their Windows machines. A basic knowledge of NCPA is recommended. Restarting Windows Services with NCPA in Nagios XI [&#8230;]]]></description>
										<content:encoded><![CDATA[
<p>This document describes how to automatically restart problematic services on Windows machines using the Nagios Cross-Platform Agent (NCPA).</p>



<p>This document is intended for use by Nagios XI Administrators who want to automate restarting of problematic services on their Windows machines. A basic knowledge of NCPA is recommended.</p>



<p><strong>Restarting Windows Services with NCPA in Nagios XI &#8211; 2024 &amp; 2026</strong></p>



<p><a href="https://assets.nagios.com/downloads/nagiosxi/docs/Restarting-Windows-Services-NCPA-in-Nagios-XI-2024.pdf" target="_blank" rel="noopener">Restarting Windows Services With NCPA in XI 2026</a></p>



<p><strong>Restarting Windows Services with NCPA in Nagios XI &#8211; v5 (Legacy) </strong></p>



<p><a href="https://assets.nagios.com/downloads/nagiosxi/docs/Restarting-Windows-Services-With-NCPA.pdf" target="_blank" rel="noreferrer noopener">Restarting Windows Services With NCPA in XI 5</a></p>
]]></content:encoded>
					
		
		
			</item>
	</channel>
</rss>
