Connecting an application to the Health Center client
You can connect the Health Center client to a Java™ or Node.js application that you want to monitor.
You can make a JMX, MQTT, or Bluemix® connection by using the Health Center connection wizard and specifying the required details. If you want to make a Bluemix connection and are already running IBM® Eclipse Tools for Bluemix, you can make an immediate connection without needing to specify further details.
If you want to monitor a Node.js application, you must use the MQTT connection type.
If an application ends while it is being monitored by the Health Center, error messages might appear in the logs. For Java applications, messages that are caused by unexpected application termination contain references to org.omg.CORBA* classes.
Making a JMX connection to a Java application
Before you begin
- If you want a secure connection, set up the required files or keystores. For more information, see Securing Health Center.
- A monitoring agent must be installed and active in the runtime environment in which the application is running. For more information, see Installing a Health Center monitoring agent, Configuring the monitoring agent, and Starting the monitoring agent.
Procedure
Results
After the wizard finishes, the Health Center attempts to connect to the application. You are notified if authentication is required.
If you cannot connect to the application, see the troubleshooting topic: Cannot connect to an application.
Making an MQTT connection to a Java or Node.js application
Before you begin
- To connect to a Node.js application, you must have installed an MQTT broker as described in Monitoring a running application.
- If you want a secure connection, set up the required files or keystores. For more information, see Securing Health Center.
- A monitoring agent must be installed and active in the runtime environment in which the application is running. The agent must also be configured if required (configuration is not possible in Bluemix environments). For example, the host and port number of the MQTT broker must be set in the Health Center properties file. For more information, see Installing a Health Center monitoring agent, Configuring the monitoring agent, and Starting the monitoring agent.
Procedure
Results
After the wizard finishes, the Health Center attempts to connect to the application. A message dialog box notifies you if authentication is required.
If you cannot connect to the application, see the troubleshooting topic: Cannot connect to an application.
Making a Bluemix connection to a Java application
Before you begin
- If you want a secure connection, set up the required files or keystores. For more information, see Securing Health Center.
- A monitoring agent must be installed and active in the runtime environment in which the application is running.
- In Bluemix, enable App Management for the application. For more information, see App Management in the Bluemix documentation.
Using the connection wizard
Procedure
Results
After the wizard finishes, the Health Center attempts to connect to the application. A message dialog box notifies you if authentication is required.
If you cannot connect to the application, see the troubleshooting topic: Cannot connect to an application.
Using IBM Eclipse Tools for Bluemix
Procedure
-
Ensure that your Bluemix application has the BLUEMIX_APP_MGMT_ENABLE environment variable set to hc.
For more information, see How to configure App Management in the Bluemix App Management documentation.
- Open the Servers view provided by Bluemix Tools.
- Right-click your running application and select Open Health Center.