hi ,
I think the best option to go with is retrive PMI data using the PerfServletApp, but when i tried to invoke the http request, i got this SSLException:
CWPKI0022E: SSL HANDSHAKE FAILURE: A signer with SubjectDN "CN=ASCR1.WSDMGR, OU=CB390, O=IBM" was sent from target host:port "172.2
4.48.167:10141". The signer may need to be added to local trust store "safkeyring:///WASKeyring" located in SSL configuration alias
"CellDefaultSSLSettings" loaded from SSL configuration file "security.xml". The extended error message from the SSL handshake exce
ption is: "PKIX path building failed: java.security.cert.CertPathBuilderException: PKIXCertPathBuilderImpl could not build a valid C
ertPath.; internal cause is:
java.security.cert.CertPathValidatorException: The certificate issued by CN=WAS CertAuth for Security Domain, OU=DEVA is not truste
d; internal cause is:
java.security.cert.CertPathValidatorException: Certificate chaining error".
CWPKI0428I: The signer might need to be added to the local trust store. You can use the Retrieve from port option in the administrat
ive console to retrieve the certificate and resolve the problem. If you determine that the request is trusted, complete the followin
g steps: 1. Log into the administrative console. 2. Expand Security and click SSL certificate and key management. Under Configurati
on settings, click Manage endpoint security configurations. 3. Select the appropriate outbound configuration to get to the (cell):DC
855 management scope. 4. Under Related Items, click Key stores and certificates and click the CellDefaultTrustStore key store. 5. Un
der Additional Properties, click Signer certificates and Retrieve From Port. 6. In the Host field, enter 172.24.48.167 in the host
name field, enter 10141 in the Port field, and 172.24.48.167_cert in the Alias field. 7. Click Retrieve Signer Information. 8. Ver
ify that the certificate information is for a certificate that you can trust. 9. Click Apply and Save.
execute - caught PrivilegedActionException in initAdminnull
java.security.PrivilegedActionException: com.ibm.websphere.management.exception.AdminException: com.ibm.websphere.management.excepti
on.ConnectorNotAvailableException
at com.ibm.ws.security.auth.ContextManagerImpl.runAs(ContextManagerImpl.java:5520)
at com.ibm.ws.security.auth.ContextManagerImpl.runAsSystem(ContextManagerImpl.java:5600)
at com.ibm.ws.security.core.SecurityContext.runAsSystem(SecurityContext.java:255)
at com.ibm.ws.pmi.perfServlet60.PerformanceServlet.initAdmin(PerformanceServlet.java:324)
at com.ibm.ws.pmi.perfServlet60.PerformanceServlet.doPost(PerformanceServlet.java:108)
at com.ibm.ws.pmi.perfServlet60.PerformanceServlet.doGet(PerformanceServlet.java:85)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:575)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:668)
at com.ibm.ws.cache.servlet.ServletWrapper.serviceProxied(ServletWrapper.java:307)
at com.ibm.ws.cache.servlet.CacheHook.handleFragment(CacheHook.java:562)
at com.ibm.ws.cache.servlet.CacheHook.handleServlet(CacheHook.java:255)
at com.ibm.ws.cache.servlet.ServletWrapper.service(ServletWrapper.java:259)
at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1227)
at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:776)
at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:458)
The problem that I go through the steps using WAS admin console but WAS admin console didn't let me to do the change because its Read only , any idea how to solve this problem?
------------------------------
Sharbel Nasra
------------------------------
Original Message:
Sent: Mon January 30, 2023 05:50 AM
From: Gabriel Aberasturi
Subject: How to get PMI data on TWAS
Hello Sharbel,
You alternative ways to obtain PMI data from @Largou walid and @Hermann Huebler answers.
A practical example of get data through java program suggested by @Brian S Paskin
An here oficial documentation links:
https://www.ibm.com/docs/en/was/9.0.5?topic=health-custom-pmi-api
https://www.ibm.com/docs/en/was/9.0.5?topic=health-developing-your-own-monitoring-applications
Hope this helps. Tell us if you need more support.
Regards
Gabriel Aberaturi.
------------------------------
Gabriel Aberasturi
Versia Sistemas TI
Original Message:
Sent: Sun January 29, 2023 02:40 PM
From: Sharbel Nasra
Subject: How to get PMI data on TWAS
Hi,
is there anyway to monitor PMI data on TWAS using JMX API without using the AdminClient Interface,
I am writing the code in Java language?
If MbeanServerDelegate can help me to achieve this goal , i am happy if you share examples of how to do?
ThanksSharbel
------------------------------
Sharbel Nasra
------------------------------