monitor Hogging Threads count using check_jmx in nagios

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
padu_3891
Posts: 50
Joined: Thu Sep 05, 2013 10:12 pm

monitor Hogging Threads count using check_jmx in nagios

Post 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.
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: monitor Hogging Threads count using check_jmx in nagios

Post 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
Former Nagios employee
Creator:
ahumandesign.com
enneagrams.com
User avatar
mcapra
Posts: 3739
Joined: Thu May 05, 2016 3:54 pm

Re: monitor Hogging Threads count using check_jmx in nagios

Post 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
Former Nagios employee
https://www.mcapra.com/
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: monitor Hogging Threads count using check_jmx in nagios

Post by scottwilkerson »

Thanks for sharing the additional docs
Former Nagios employee
Creator:
ahumandesign.com
enneagrams.com
padu_3891
Posts: 50
Joined: Thu Sep 05, 2013 10:12 pm

Re: monitor Hogging Threads count using check_jmx in nagios

Post by padu_3891 »

Thank you Both
kyang

Re: monitor Hogging Threads count using check_jmx in nagios

Post by kyang »

Let us know if you have any more questions or if we are okay to close this thread.
Locked