vCenter Server pulls data from solutions about their health status. Solutions expose health data by providing a URL to an XML file that defines the health model of the solution. Solutions Manager provides a graphical representation of the health data that vCenter Server receives from the solutions that it manages.
All solutions must provide an XML file that specifies their health model. The health specification XML file for your solution must conform to the VMware Health Service extensible schema definition (XSD). See Solution Health XML Schema for the complete VMware solution health schema.
Solutions expose health data about themselves to vCenter Server by publishing XML documents that declare different health statuses, depending on the events that occur in the solution. You provide messages to accompany each health status in the XML document that the solution exposes to vCenter Server. Solutions can provide the following statuses to vCenter Server:
■
| |
■
| |
■
|
When you develop a solution, you must include a program or function that generates the health status XML file for the solution. The health status of a solution can be red, yellow, or green.
Solutions Manager displays the health data graphically for each solution that is running in a vCenter Server instance. You can see an overview of the health status of all running solutions in the vCenter Server view in Solutions Manager. You can see health status information about each solution individually in the view for each solution in Solutions Manager.
You must pass a URL to the XML file that defines the health model for a solution to the ExtensionHealthInfo object in the program that manages the solution.
The EAM Sample Solution provides two classes that provide health data about the solution to Solutions Manager. You find these classes in eam_work_folder\src\com\vmware\eam\sample\solution\health.
■
|
VimHealthProvider.java defines the health statuses for the EAM Sample Solution. |
■
|
HealthStatusServlet.java dynamically creates the XML file in which the solution exposes health status data. For an example of the XML file that HealthStatusServlet.java creates, see Example: Contents of the EAM Sample Solution Health XML File . |
In the EAM Sample Solution, the Manager.java class implements ExtensionHealthInfo. The Manager.java class sets a URL to a health definition XML file in the ExtensionHealthInfo url property. The URL that Manager.java provides is the path to the health.xml file that HealthStatusServlet.java creates.
You added passed a URL to the health definition of a solution to vCenter Server. Solutions Manager displays the health information when the solution registers with vCenter Server.
The EAM Sample Solution publishes health data at http://vCenter_server_ip_address:solution_port/eam-sample/health/health.xml. The HealthStatusServlet.java class in the EAM Sample Solution generates this file when the solution starts. This example shows the XML file that HealthStatusServlet.java generates when the EAM Sample Solution is running correctly.
<vimhealth schemaVersion="1.0"> <health id="null"> <name>null</name> <status>green</status> <message id="null" level="info" time="2011-07-12T13:21:32">Running</message> </health> </vimhealth>