An application monitor policy defines the actions to take on a failed process and the VM where the process resides. An operator can configure the command for monitoring and restarting a service, or configure the system to reboot the VM.
For an application monitor policy to take effect, make sure the following requirements are met:
HA is enabled for the cluster.
CAStools is installed on VMs in the cluster.
The policy is applied to VMs in the cluster by configuring application monitor tasks.
On the top navigation bar, click Hosts, and then select Cluster Management > Application HA.
Click Configure Monitor Policies.
On the top navigation bar, click Hosts, and then select Cluster Management > Application HA.
Click Configure Monitor Policies.
In the dialog box that opens, click Add.
Configure the policy parameters as described in "Parameters."
Click OK.
On the top navigation bar, click Hosts, and then select Cluster Management > Application HA.
Click Configure Monitor Policies.
Edit the policy parameters as described in "Parameters."
Click OK.
On the top navigation bar, click Hosts, and then select Cluster Management > Application HA.
Click Configure Monitor Policies.
In the dialog box that opens, click OK.
OS: Select an OS that the application monitor policy supports.
Service Name: Enter the name of the service 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: Configure whether to use custom commands. For a custom command, if the service name contains two or more words, you must enclose the service name in double quotes. For example, to start the service 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 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. If the command is executed successfully, the return value must be 0.
State Monitor 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.