Subject: | Problem with the Path parameter when trying to monitor the thread pool of websphere |
Date: | Mon, 2 Feb 2015 10:01:34 +0000 |
To: | "bug-jmx4perl [...] rt.cpan.org" <bug-jmx4perl [...] rt.cpan.org> |
From: | Sudhir Chauhan <SC00354007 [...] TechMahindra.com> |
Hi Roland,
Thanks a lot for such a great tool.
I am trying to monitor WAS 8.5.5(Global security switched off) on a remote server.
Resources I am using:
RHEL 6.6 (64-bit)
Perl v5.10.1
jmx4perl 1.11
jolokia 1.2.3
I am able to access the beans using the j4psh,jmx4perl and check_jmx4perl.
However, when I am trying to fetch the thread pool , getting the below error:
jmx4perl]# /usr/local/bin/check_jmx4perl --url http://<some IP> :51159/jolokia -m "WebSphere:name=WebContainer,type=ThreadPool,*" -a stats -p "*/*/statistics/'PoolSize'/current"
UNKNOWN - Pattern request does not result in a proper return format: $VAR1 = undef;
Verbose mode:
jmx4perl]# /usr/local/bin/check_jmx4perl --url http://<some<http://%3csome> IP>:51159/jolokia -m "WebSphere:name=WebContainer,type=ThreadPool,*" -a stats -p "*/*/statistics/'PoolSize'/current" -v
Result fetched in 50.1 ms:
$VAR1 = [
bless( {
'request' => bless( {
'attribute' => 'stats',
'mbean' => 'WebSphere:name=WebContainer,type=ThreadPool,*',
'path' => '*/*/statistics/\'PoolSize\'/current',
'type' => 'read'
}, 'JMX::Jmx4Perl::Request' ),
'timestamp' => 1422870846,
'value' => undef,
'status' => 200
}, 'JMX::Jmx4Perl::Response' )
];
UNKNOWN - Pattern request does not result in a proper return format: $VAR1 = undef;
-p "*/*/statistics/'PoolSize'/current" == I have got this path from the websphere.cfg file from the below link:
https://github.com/rhuss/jmx4perl/blob/master/config/websphere/threads.cfg
WebSphere:cell=CWUWAST1_port51150,mbeanIdentifier=cells/CWUWAST1_port51150/nodes/CWUWAST1_port51150/
servers/DISE_51150/server.xml#ThreadPool_1183122130079,name=WebContainer,node=CWUWAST1_port51150,
platform=dynamicproxy,process=DISE_51150,spec=1.0,type=ThreadPool,version=8.0.0.5
This is the mbean I am trying to fetch the "PoolSize" from.
Please advise how to fetch the thread pool data.
Best Regards,
Sudhir
============================================================================================================================
Disclaimer: This message and the information contained herein is proprietary and confidential and subject to the Tech Mahindra policy statement, you may review the policy at http://www.techmahindra.com/Disclaimer.html externally http://tim.techmahindra.com/tim/disclaimer.html internally within TechMahindra.
============================================================================================================================