Active thread pool Count,Poolsize Monitoring

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
admingirl
Posts: 17
Joined: Tue Jun 13, 2017 6:33 am

Active thread pool Count,Poolsize Monitoring

Post by admingirl »

Hello,
I need advise from you guys as you have always been so helpful.

We are monitoring Active thread pool Count and Poolsize in our WebSphere Application Servers. We have a requirement that if Active Count=Poolsize then it will be a Warning Alert.

How can I define it in my configuration?

Please advise.

Thanks and have a great day!
Ann
User avatar
mcapra
Posts: 3739
Joined: Thu May 05, 2016 3:54 pm

Re: Active thread pool Count,Poolsize Monitoring

Post by mcapra »

A relatively concise github post on the general topic of "How can I monitor my applications on $javaAppServer":
https://github.com/nagios-plugins/nagio ... -302832881

The gist of it is you should enable JMX on a per-application basis. There's a few WebSphere agents out there that make local JConsole connections and have corresponding plugins that can be called via a Nagios agent like NRPE or NCPA to access a specific application hosted on the server, buuuuuut they're old and often die out. A lot. I tend to tell people to enable JMX in their applications directly. If you're not sure how to do that, you might want to consult with your application team.

Then, once JMX is enabled for the applications you want to monitor JVM metrics for, this documentation should be useful:
https://assets.nagios.com/downloads/nag ... ios-XI.pdf

Though for this particular criteria:
if Active Count=Poolsize then it will be a Warning Alert
I don't think the check_jmx plugin mentioned in the above documentation can do that. I believe the thresholds are absolute and can't reference other beans. So stuff like if ThreadCount > 10 is kosher, but probably not stuff like if BeanA > BeanB. But if the pool size is static, that should be fine since you could plug that value in for the warning/critical parameter.
Former Nagios employee
https://www.mcapra.com/
dwhitfield
Former Nagios Staff
Posts: 4583
Joined: Wed Sep 21, 2016 10:29 am
Location: NoLo, Minneapolis, MN
Contact:

Re: Active thread pool Count,Poolsize Monitoring

Post by dwhitfield »

Thanks @mcapra!
admingirl
Posts: 17
Joined: Tue Jun 13, 2017 6:33 am

Re: Active thread pool Count,Poolsize Monitoring

Post by admingirl »

Hi Guys,

Thank you all for your response, appreciate it. Will give it a shot and do testing.

Have a great day to you all!
Ann
dwhitfield
Former Nagios Staff
Posts: 4583
Joined: Wed Sep 21, 2016 10:29 am
Location: NoLo, Minneapolis, MN
Contact:

Re: Active thread pool Count,Poolsize Monitoring

Post by dwhitfield »

Please let us know if you run into any additional issues.
Locked