Monitor JBoss EAP 7.1 / Wildfly

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
TheQ
Posts: 2
Joined: Tue Jul 30, 2019 9:29 am

Monitor JBoss EAP 7.1 / Wildfly

Post 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!
User avatar
cdienger
Support Tech
Posts: 5045
Joined: Tue Feb 07, 2017 11:26 am

Re: Monitor JBoss EAP 7.1 / Wildfly

Post 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
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: Monitor JBoss EAP 7.1 / Wildfly

Post 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.
TheQ
Posts: 2
Joined: Tue Jul 30, 2019 9:29 am

Re: Monitor JBoss EAP 7.1 / Wildfly

Post 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
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: Monitor JBoss EAP 7.1 / Wildfly

Post by ssax »

Did you have any questions on it or is it working for your needs?
Locked