monitor Hogging Threads count using check_jmx in nagios

An open discussion forum for obtaining help with Nagios Core. Nagios Core users of all experience levels are welcome here. Subforum have been created for the discussion of Nagios Core and Nagios Plugin development.

NOTE: The SourceForge.net mailing lists have been deprecated in favor of this forum in order to expedite support and provide additional features not available on the old mailing list.

monitor Hogging Threads count using check_jmx in nagios

Postby padu_3891 » Fri Apr 13, 2018 8:56 am

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.
padu_3891
 
Posts: 45
Joined: Thu Sep 05, 2013 10:12 pm

Re: monitor Hogging Threads count using check_jmx in nagios

Postby scottwilkerson » Fri Apr 13, 2018 3:38 pm

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
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
User avatar
scottwilkerson
DevOps Engineer
 
Posts: 11179
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises

Re: monitor Hogging Threads count using check_jmx in nagios

Postby mcapra » Mon Apr 16, 2018 8:19 am

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/wls/docs90/jmx/understandWLS.html

Here's the section which references the ServerRuntime MBean:
https://docs.oracle.com/cd/E13222_01/wls/docs90/jmx/understandWLS.html#1116185

And the official javadocs for that object:
https://docs.oracle.com/cd/E11035_01/wls100/javadocs_mhome/weblogic/management/runtime/ServerRuntimeMBean.html
Former Nagios employee
http://www.mcapra.com/
User avatar
mcapra
 
Posts: 3372
Joined: Thu May 05, 2016 3:54 pm

Re: monitor Hogging Threads count using check_jmx in nagios

Postby scottwilkerson » Mon Apr 16, 2018 8:32 am

Thanks for sharing the additional docs
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
User avatar
scottwilkerson
DevOps Engineer
 
Posts: 11179
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises

Re: monitor Hogging Threads count using check_jmx in nagios

Postby padu_3891 » Fri Apr 27, 2018 10:41 am

Thank you Both
padu_3891
 
Posts: 45
Joined: Thu Sep 05, 2013 10:12 pm

Re: monitor Hogging Threads count using check_jmx in nagios

Postby kyang » Fri Apr 27, 2018 1:50 pm

Let us know if you have any more questions or if we are okay to close this thread.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.

Be sure to check out our Knowledgebase for helpful articles and solutions!
kyang
Support Tech
 
Posts: 1792
Joined: Tue Jul 25, 2017 3:35 pm


Return to Nagios Core

Who is online

Users browsing this forum: No registered users and 13 guests