Use custom actions to define custom corrective tasks that you can use when a health condition breaches.
#!/bin/sh echo "The sick server is " echo $server echo " which is on node " echo $node echo " which is a part of cell " echo $cell
By default, you can define the following actions to occur when a health condition breaches: restart the server, take thread dumps, or take heap dumps. If you have more specific needs for actions that occur when a health condition breaches, then create a custom action. Custom actions consist of Java or non-Java process definitions, and can run on the deployment manager, a node that is hosting servers that breach health conditions, the node where the health management controller is running, or a node that you specify.
Create a custom action before you create a health policy. When you define the health policy, select the custom action as part of the action plan that runs when the health condition breaches. You can also define a custom action when you are creating an action plan in the health policy creation wizard.
When a health policy contains multiple custom actions, updating the custom actions can cause the health controller runtime to be out-of-sync with the administrative console configuration. If you add, delete or modify a custom action for a policy that contains multiple custom actions, start and stop the health controller after saving your changes.