<?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>Glassfish &#8211; Nagios Library</title>
	<atom:link href="https://library.nagios.com/tag/glassfish/feed/" rel="self" type="application/rss+xml" />
	<link>https://library.nagios.com</link>
	<description>Complete Nagios monitoring resources and documentation</description>
	<lastBuildDate>Fri, 04 Dec 2026 15:25:59 +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>Glassfish &#8211; Nagios Library</title>
	<link>https://library.nagios.com</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>How to Use the GlassFish Wizard in Nagios XI</title>
		<link>https://library.nagios.com/tutorials/how-to-monitor-glassfish-with-nagios-xi-2/</link>
		
		<dc:creator><![CDATA[Benjamin Rowan]]></dc:creator>
		<pubDate>Fri, 29 Aug 2025 19:48:00 +0000</pubDate>
				<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[Glassfish]]></category>
		<category><![CDATA[Wizard]]></category>
		<guid isPermaLink="false">https://library.nagios.com/?p=62755</guid>

					<description><![CDATA[Nagios XI includes a GlassFish Wizard which enables you to monitor GlassFish applications and be notified when they are behaving unexpectedly. You can refer to this documentation for full details:]]></description>
										<content:encoded><![CDATA[
<p class="wp-block-paragraph">Nagios XI includes a <strong>GlassFish Wizard</strong> which enables you to monitor GlassFish applications and be notified when they are behaving unexpectedly.</p>



<p class="wp-block-paragraph">You can refer to this documentation for full details:</p>



<ul class="wp-block-list">
<li><a href="https://assets.nagios.com/downloads/nagiosxi/docs/Monitoring-GlassFish-2024.pdf" target="_blank" rel="noopener">How To Monitor Glassfish with Nagios XI</a></li>
</ul>


<div class="wp-block-pdfemb-pdf-embedder-viewer"><a href="https://library.nagios.com/wp-content/uploads/2025/08/Monitoring-GlassFish-2024-2.pdf" class="pdfemb-viewer" style="" data-width="max" data-height="max" data-toolbar="bottom" data-toolbar-fixed="off">Monitoring-GlassFish-2024-2</a></div>


<div style="height:50px" aria-hidden="true" class="wp-block-spacer"></div>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>Monitoring GlassFish Servers with Nagios XI</title>
		<link>https://library.nagios.com/monitoring/monitoring-glassfish-servers-with-nagios-xi/</link>
		
		<dc:creator><![CDATA[Jack Brisben]]></dc:creator>
		<pubDate>Fri, 07 Mar 2025 16:14:56 +0000</pubDate>
				<category><![CDATA[Monitoring]]></category>
		<category><![CDATA[Application & Server Monitoring]]></category>
		<category><![CDATA[Glassfish]]></category>
		<guid isPermaLink="false">https://library.nagios.com/?p=51574</guid>

					<description><![CDATA[Introduction Ensuring the availability and performance of GlassFish application servers is crucial for maintaining a stable Java EE environment. Nagios XI provides a robust solution for monitoring GlassFish, offering proactive alerts and real-time insights into server health. This guide walks through the setup process to monitor GlassFish servers effectively using Nagios XI. Prerequisites Before configuring [&#8230;]]]></description>
										<content:encoded><![CDATA[
<h3 class="wp-block-heading"><strong>Introduction</strong></h3>



<p class="wp-block-paragraph">Ensuring the availability and performance of GlassFish application servers is crucial for maintaining a stable Java EE environment. Nagios XI provides a robust solution for monitoring GlassFish, offering proactive alerts and real-time insights into server health. This guide walks through the setup process to monitor GlassFish servers effectively using Nagios XI.</p>



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



<p class="wp-block-paragraph">Before configuring monitoring, ensure the following:</p>



<ul class="wp-block-list">
<li><strong>GlassFish Server Installed and Running</strong></li>



<li><strong>Nagios XI Installed and Configured</strong></li>



<li><strong>SNMP or JMX Monitoring Enabled on GlassFish</strong></li>



<li><strong>Network Connectivity Between Nagios XI and GlassFish Server</strong></li>



<li><strong>Appropriate User Permissions for Monitoring Access</strong></li>
</ul>



<h3 class="wp-block-heading"><strong>Key Features of Nagios XI for GlassFish Monitoring</strong></h3>



<ul class="wp-block-list">
<li><strong>Resource Utilization Monitoring:</strong> CPU, memory, and disk usage tracking.</li>



<li><strong>Application Performance Metrics:</strong> Monitoring thread pools, active sessions, and response times.</li>



<li><strong>Custom Query Monitoring:</strong> Query specific GlassFish attributes via JMX for advanced monitoring.</li>



<li><strong>Alerting and Notifications:</strong> Set thresholds for warnings and critical alerts to prevent downtime.</li>
</ul>



<h3 class="wp-block-heading"><strong>Setting Up GlassFish Monitoring in Nagios XI</strong></h3>



<h4 class="wp-block-heading"><strong>Step 1: Enable JMX Monitoring in GlassFish</strong></h4>



<ol start="1" class="wp-block-list">
<li>Access the GlassFish admin console.</li>



<li>Navigate to <strong>Configurations &gt; server-config &gt; Monitoring</strong>.</li>



<li>Set the desired components (JVM, Web Container, etc.) to <strong>HIGH</strong>.</li>



<li>Enable JMX monitoring by adding the following startup options to <code>domain.xml</code>:</li>
</ol>



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



<p class="wp-block-paragraph">      5. Restart the GlassFish server to apply changes.</p>



<h4 class="wp-block-heading"><strong>Step 2: Configure Nagios XI to Monitor GlassFish</strong></h4>



<ul class="wp-block-list">
<li>Use <strong>NRPE</strong>, <strong>SNMP</strong>, or <strong>JMX plugins</strong> to gather GlassFish metrics.</li>



<li>Install necessary Nagios plugins on the monitoring server</li>
</ul>



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



<ul class="wp-block-list">
<li>Define GlassFish services in Nagios XI configuration:</li>
</ul>



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



<h4 class="wp-block-heading"><strong>Step 3: Test and Verify Monitoring</strong></h4>



<ul class="wp-block-list">
<li>Use <code>check_jmx</code> command to verify JMX connectivity:</li>
</ul>



<div class="wp-block-kevinbatdorf-code-block-pro" data-code-block-pro-font-family="Code-Pro-Geist-Mono" style="font-size:.875rem;font-family:Code-Pro-Geist-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:1.5rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)"><span role="button" tabindex="0" style="color:#D4D4D4;display:none" aria-label="Copy" class="code-block-pro-copy-button"><pre class="code-block-pro-copy-button-pre" aria-hidden="true"><textarea class="code-block-pro-copy-button-textarea" tabindex="-1" aria-hidden="true" readonly>/usr/local/nagios/libexec/check_jmx -U service:jmx:rmi:///jndi/rmi://glassfish-server:8686/jmxrmi -O java.lang:type=Memory -A HeapMemoryUsage</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">/usr/local/nagios/libexec/check_jmx</span><span style="color: #D4D4D4"> </span><span style="color: #569CD6">-U</span><span style="color: #D4D4D4"> </span><span style="color: #CE9178">service:jmx:rmi:///jndi/rmi://glassfish-server:8686/jmxrmi</span><span style="color: #D4D4D4"> </span><span style="color: #569CD6">-O</span><span style="color: #D4D4D4"> </span><span style="color: #CE9178">java.lang:type=Memory</span><span style="color: #D4D4D4"> </span><span style="color: #569CD6">-A</span><span style="color: #D4D4D4"> </span><span style="color: #CE9178">HeapMemoryUsage</span></span></code></pre></div>



<ul class="wp-block-list">
<li>Check Nagios XI <strong>Service Status</strong> page to ensure GlassFish metrics are displayed.</li>
</ul>



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



<ul class="wp-block-list">
<li><strong>JMX Connection Errors:</strong> Ensure the JMX port is open and accessible.</li>



<li><strong>Authentication Issues:</strong> If JMX authentication is enabled, provide credentials in the check command.</li>



<li><strong>Firewall Restrictions:</strong> Allow inbound connections to the JMX port</li>
</ul>



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



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



<p class="wp-block-paragraph">By integrating GlassFish monitoring with Nagios XI, IT teams gain proactive insights into application performance, resource utilization, and potential failures. Using JMX, SNMP, or NRPE, organizations can ensure optimal server health and minimize downtime. For advanced configurations, explore custom scripts and third-party plugins tailored to your monitoring needs. For additional support, visit the <a href="https://support.nagios.com/forum/" target="_blank" rel="noreferrer noopener">Nagios Support Forum</a> or <a href="https://library.nagios.com/docs" target="_blank" rel="noreferrer noopener">Nagios Documentation</a>.</p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>How To Monitor GlassFish With Nagios XI</title>
		<link>https://library.nagios.com/documentation/how-to-monitor-glassfish-with-nagios-xi/</link>
		
		<dc:creator><![CDATA[Ethan Galstad]]></dc:creator>
		<pubDate>Fri, 19 Apr 2019 16:08:23 +0000</pubDate>
				<category><![CDATA[Documentation]]></category>
		<category><![CDATA[Application & Server Monitoring]]></category>
		<category><![CDATA[Glassfish]]></category>
		<guid isPermaLink="false">https://library.nagios.com/?page_id=1908</guid>

					<description><![CDATA[This document will cover how to monitor GlassFish servers using the GlassFish wizard and check_jvm.jar plugin within Nagios XI, so that users may be notified when GlassFish applications are behaving unexpectedly. This document is intended for use by Nagios XI Administrators who want to monitor their GlassFish instances. Nagios XI 2024 &#38; 2026 How to Monitor [&#8230;]]]></description>
										<content:encoded><![CDATA[
<p class="wp-block-paragraph">This document will cover how to monitor GlassFish servers using the GlassFish wizard and check_jvm.jar plugin within Nagios XI, so that users may be notified when GlassFish applications are behaving unexpectedly.</p>



<p class="wp-block-paragraph">This document is intended for use by Nagios XI Administrators who want to monitor their GlassFish instances.</p>



<p class="wp-block-paragraph"><strong>Nagios XI 2024 &amp; 2026</strong></p>



<p class="wp-block-paragraph"><a href="https://assets.nagios.com/downloads/nagiosxi/docs/Monitoring-GlassFish-2024.pdf" target="_blank" rel="noopener">How to Monitor GlassFish With Nagios XI 2026</a></p>



<p class="wp-block-paragraph"><strong>Nagios XI 5.x (Legacy) </strong></p>



<p class="wp-block-paragraph"><a href="https://assets.nagios.com/downloads/nagiosxi/docs/How-to-Monitor-GlassFish-With-Nagios-XI.pdf" target="_blank" rel="noreferrer noopener">How To Monitor GlassFish With Nagios XI 5</a></p>
]]></content:encoded>
					
		
		
			</item>
	</channel>
</rss>
