From the left navigation pane, select Data Center > Virtualization > Cluster name.
Click the Application HA tab.
Click Configure Monitoring Policies.
Click Add.
Configure the parameters, and then click OK.
Applicable OS: Select the operating system that the application monitoring policy supports.
Process: Enter the name of the process to be monitored.
Path: Enter the installation path of the service to be monitored.
HA: Select the action to take after three service failures.
Use Custom Commands: Enable this feature to enable the user to use custom commands. For a custom command, if the process name contains two or more words, you must enclose the process name in double quotes. For example, to start the process named iNode DAM Agent, use the command sc start "iNode DAM Agent". To monitor the state of the service, use the command sc query "iNode DAM Agent".
Startup Command: Enter the command or command line script used to restart the services after failure. You can use this command to start an application, a service, or a TCP connection. When the application or service fails, you can use this command to restore the application or service. When the command is executed successfully, the return value must be 0. Configure this parameter when you select to use custom commands.
State Monitoring Command: Enter the command or command line script used to monitor the states of the services. You can use this command to view the state of an application, a service, or a TCP connection. If the application or service operates correctly, the output shows that the application or service is in running or active state, and the return value is 0. If the application or service is in abnormal state, the return value is not 0. Configure this parameter when you select to use custom commands.