Page 2 of 2

Re: Monitoring Wildfly 14 and Java 10

Posted: Tue Mar 05, 2019 10:25 am
by eSailVite
Hi,

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

Regards

Re: Monitoring Wildfly 14 and Java 10

Posted: Tue Mar 05, 2019 11:47 am
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.

Re: Monitoring Wildfly 14 and Java 10

Posted: Tue Mar 05, 2019 4:07 pm
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

Re: Monitoring Wildfly 14 and Java 10

Posted: Fri Mar 08, 2019 2:00 am
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

Re: Monitoring Wildfly 14 and Java 10

Posted: Fri Mar 08, 2019 4:26 pm
by scottwilkerson
This is definitely beyond my knowledge in JMX, @mcapra do you happen to know if it can be used in standalone mode?