Page 1 of 1

Monitor JBoss EAP 7.1 / Wildfly

Posted: Tue Jul 30, 2019 10:38 am
by TheQ
Hello everybody,

I'm new to nagios. I'd like to know what are the best practices for JBoss EAP 7.x / Wildyfly monitoring these days.

I saw there's official check_jvm plugin for JBoss/Wildfly monitoring which is capable of monitoring rather "high level" metrics, such as: heap / non heap memory, cpu usage, uptime, class and thread count.

I'm additionally interessed in things like DB connection pools, Prepared Statement Cache Hit/Miss Count, Persistent Unit Metrics, Http Thread Pool, etc. What options are there to get these metrics monitored with nagios? Would jolokia be a viable way to expose metrics via rest interface? What nagios plugin to use for rest api calls towards jboss/jolokia rest interface?

Thank's a lot for your support!

Re: Monitor JBoss EAP 7.1 / Wildfly

Posted: Wed Jul 31, 2019 4:25 pm
by cdienger
I'm not familiar enough with Jolokia to know what all metrics are available, but there are a few JSON plugins available on the exchange as well as a wizard:

https://exchange.nagios.org/index.php?o ... hword=JSON

Re: Monitor JBoss EAP 7.1 / Wildfly

Posted: Wed Jul 31, 2019 4:30 pm
by ssax
In addition to cdienger's post:

Did you see these guides?

https://assets.nagios.com/downloads/nag ... ios-XI.pdf

https://assets.nagios.com/downloads/nag ... ios-XI.pdf

Those are the only official guides we have at this point in time.

Here are the plugins for JBoss on the Exchange:

https://exchange.nagios.org/directory/P ... vers/JBOSS

As we are not Java admins or run JBoss/Wildfly here you will need to work with your JBoss/Wildfly admins to test out the plugins and make sure that you have the connectivity/configuration required to check via those methods above.

Let us know if you have any questions or if we can clarify anything for you.

Re: Monitor JBoss EAP 7.1 / Wildfly

Posted: Thu Aug 01, 2019 4:53 pm
by TheQ
Thanks for your replies cdienger and saxx!

Yes I saw the guides, you've mentioned.

I'm now a step further to access JBoss EAP 7.x metrics with check_jmx plugin. As standard rmi doesn't work any longer, I had to change the connection URL to 'service:jmx:remote+http://localhost:9990' and had to add jboss-client.jar (from $JBOSS_HOME/bin/client folder) to the classpath of check_jmx.

content of check_jmx.bat

Code: Select all

@echo off
%JAVA_HOME%\bin\java -cp jmxquery.jar;jboss-client.jar -Djava.util.logging.config.file=logging.properties org.nagios.JMXQuery %*
invocation of check_jmx.bat

Code: Select all

check_jmx.bat -U service:jmx:remote+http://localhost:9990 -O java.lang:type=Memory -A HeapMemoryUsage -K "used" -w 200000000 -c 300000000
Regards, TheQ

Re: Monitor JBoss EAP 7.1 / Wildfly

Posted: Mon Aug 05, 2019 3:54 pm
by ssax
Did you have any questions on it or is it working for your needs?