Monitoring Wildfly 14 and Java 10

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
eSailVite
Posts: 22
Joined: Thu Feb 14, 2019 2:18 am

Re: Monitoring Wildfly 14 and Java 10

Post by eSailVite »

Hi,

this is not my problem..Are you sure nagios can monitoring Wildfly 14 with Java 10?

Regards
User avatar
mcapra
Posts: 3739
Joined: Thu May 05, 2016 3:54 pm

Re: Monitoring Wildfly 14 and Java 10

Post by mcapra »

Is the WildFly instance running in Domain Mode?

I've done this for JBoss, WebLogic, Tomcat, as well as vanilla Java applications running without a specific AS:
https://support.nagios.com/forum/viewto ... 60#p230360

The core JMX API hasn't changed fundamentally in quite some time. The trick has always been configuring a specific AS to accept generic JMX connections -- whether that be WildFly, GlassFish, WebLogic, whatever, most of them have their own conventions for brokering those connections to the underlying application(s) they are hosting.

I unfortunately don't have a ton of free time to lab this up, but for the bulk of JBoss instances I've worked with you're just adding the vanilla JMX properties to your core Java runtime:

Code: Select all

-Dcom.sun.management.jmxremote
-Dcom.sun.management.jmxremote.port=%my.jmx.port%
-Dcom.sun.management.jmxremote.ssl=false
-Dcom.sun.management.jmxremote.authenticate=false
Or, for individual application start-up scripts, a specific port per application.
Former Nagios employee
https://www.mcapra.com/
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Monitoring Wildfly 14 and Java 10

Post by scottwilkerson »

Thanks mcapra

additionally for this plugin you will likely need to specify the following for the plugin to work

Code: Select all

-Dcom.sun.management.jmxremote.rmi.port=9990
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
eSailVite
Posts: 22
Joined: Thu Feb 14, 2019 2:18 am

Re: Monitoring Wildfly 14 and Java 10

Post by eSailVite »

Hi mcapra,

The instance was running in standard mode.. I tested in domain mode and it`s working..At the moment, i cannot use domain mode.. With standard, is not possible use jmx???

Thanks for advanced
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Monitoring Wildfly 14 and Java 10

Post by scottwilkerson »

This is definitely beyond my knowledge in JMX, @mcapra do you happen to know if it can be used in standalone mode?
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
Locked