bin/win[32|64]/vmware-appmonitor.exe

This program allows control of the app monitor heartbeat from the command line.
Usage: vmware-appmonitor {enable | disable | markActive | isEnabled | getAppStatus | postAppState(appStateOk, appStateNeedReset)}

enable
	Enable application heartbeat. vSphere HA will start listening and monitoring heartbeat count from this VM. The heartbeats should be sent at least once every 30 seconds.

disable
	HA will stop listening to heartbeats from this VM.

markActive
	This is the actual heartbeat. Send every 30 seconds or less.

isEnabled
	Indicates if the heartbeating was enabled.

getAppStatus
	Get the status of the application. Green, red or gray.

postAppState
        Post an application state. Possible states are "appStateOk, appStateNeedReset"
        appStateOk : Sends an "Application State is OK" signal to the HA agent running on the host.
        appStateNeedReset : Sends an "Immediate Reset" signal to the HA agent running on the host.


docs/VMGuestAppMonitor/samples/visualstudio directory

This directory includes appmon Microsoft VisualStudio 2007 project. appmon.cpp file demonstrates how to use application monitoring api.
Make sure that the PATH variable includes the path to the lib directory containing vmware-appmonitor.dll before running the executable.

The appmon program enables Application Monitoring and sends heartbeats every 15 seconds. Once the program is running issuing Ctrl-c will bring three choice:
stop(s)     - stop heartbeating and exit program. This should cause a reset of the VM
disable(d)  - disable application monitoring and exit program. This will not cause a reset.
continue(c) - keep sending heartbeats.
Please make sure you are running ESX[i] 4.1 or later. Please also make sure you enabled application monitoring while configuring HA.

There are SDK function definitions and simple documentation in GuestSDK/vmGuestAppMonitorLib.h.

docs/VMGuestAppMonitor/samples/java directory

This directory includes a Java JNI implementation. Please read the included README file.
