How do I fetch and monitor the WebLogic Server server state in APM?

Document ID : KB000032452
Last Modified Date : 14/02/2018
Show Technical Document Details

Question:  

We have APM (WebLogic Server) WLS pack installed but are not getting any alert when a WLS server failure occurs. This is seen in the WLS admin console with a typical status as "RUNNING". Can APM get this variable to monitor its state?

 

Answer:

You can do this by exposing the ServerRuntimeMBean(getStateVal()) interface to JMX. STATE is returned as a string. Then use the fieldpack to convert this value to Integer. It is available on the APM Community: https://communities.ca.com/docs/DOC-101379249

 

Additional Information: 

https://docs.oracle.com/cd/E11035_01/wls100/javadocs_mhome/weblogic/management/runtime/ServerRuntimeMBean.html -- More details on  ServerRuntimeMBean. This interface provides methods for retrieving runtime information about a server instance and for transitioning a server from one state to another.