Page 1 of 1

monitor Hogging Threads count using check_jmx in nagios

Posted: Fri Apr 13, 2018 8:56 am
by padu_3891
Hello team,

I am able to monitor other JAVA parameters of weblogic server like heap size, Garbage collector and threadcount.

We are unable to monitor Hogging threads count, standby count, Queue count & Executing threads count.

I am using the below link,

https://github.com/ppresto/org.ctl.jmx. ... ry/scripts

./check_jmx -U service:jmx:rmi:///jndi/rmi://host.example.com:17703/jmxrmi -O com.bea:ServerRuntime=qcquotinge2e1,Name=ThreadPoolRuntime,Type=ThreadPoolRuntime -A ExecuteThreadTotalCount -w 100 -c 200

how or where can i find com.bea:ServerRuntime=?

/usr/local/nagios/libexec/check_jmx -U service:jmx:rmi:///jndi/rmi://$IP:$port/jmxrmi -O com.bea:ServerRuntime=ap_prd_domain,Name=ThreadPoolRuntime,Type=ThreadPoolRuntime -A ExecuteThreadTotalCount -w 100 -c 200

I am not sure about this value ap_prd_domain, this is domain name of weblogic server.
Please help.

Thx.

Re: monitor Hogging Threads count using check_jmx in nagios

Posted: Fri Apr 13, 2018 3:38 pm
by scottwilkerson
I'm not familiar with the pluign but I think it is a bad example and should be

Code: Select all

/usr/local/nagios/libexec/check_jmx -U service:jmx:rmi:///jndi/rmi://$IP:$port/jmxrmi -O com.bea:ServerRuntime=ap_prd_domain,Name=ap_prd_domain,Type=ThreadPoolRuntime -A ExecuteThreadTotalCount -w 100 -c 200

Re: monitor Hogging Threads count using check_jmx in nagios

Posted: Mon Apr 16, 2018 8:19 am
by mcapra
padu_3891 wrote:how or where can i find com.bea:ServerRuntime=?
That particular MBean is used to filter your request for a particular WebLogic instance. In the example provided by @scottwilkerson, It's sort of like saying "please give me the ap_prd_domain instance". You additionally need to specify which metric you want (ThreadPoolRuntime for example) for that particular instance, otherwise you'll be provided with whatever top-level attributes that MBean has which may or may not totally break check_jmx.

Here's the official documentation for WebLogic's MBeans:
https://docs.oracle.com/cd/E13222_01/wl ... ndWLS.html

Here's the section which references the ServerRuntime MBean:
https://docs.oracle.com/cd/E13222_01/wl ... ml#1116185

And the official javadocs for that object:
https://docs.oracle.com/cd/E11035_01/wl ... MBean.html

Re: monitor Hogging Threads count using check_jmx in nagios

Posted: Mon Apr 16, 2018 8:32 am
by scottwilkerson
Thanks for sharing the additional docs

Re: monitor Hogging Threads count using check_jmx in nagios

Posted: Fri Apr 27, 2018 10:41 am
by padu_3891
Thank you Both

Re: monitor Hogging Threads count using check_jmx in nagios

Posted: Fri Apr 27, 2018 1:50 pm
by kyang
Let us know if you have any more questions or if we are okay to close this thread.