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!
Monitor JBoss EAP 7.1 / Wildfly
Re: Monitor JBoss EAP 7.1 / Wildfly
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
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.
Re: Monitor JBoss EAP 7.1 / Wildfly
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.
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
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
invocation of check_jmx.bat
Regards, TheQ
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 %*
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
Re: Monitor JBoss EAP 7.1 / Wildfly
Did you have any questions on it or is it working for your needs?