Diagnostic and recovery actions allow you to run a command or script every time a particular monitor changes from a healthy (green) state to a warning state (yellow) or a critical state (red). To begin creating a diagnostic or recovery action, right click on a monitor in the Health Explorer view and select
. Then click the
Diagnostic and Recovery
To configure a recovery task, click
Then select whether you want to run a script or a command, and which Management Pack you want to store the action in.
Some actions are better suited for running automatically than others. For example, if a disk is over 90% full, consider having a task that automatically deletes temporary files on the drive. This avoids requiring an operator to attend to the situation.
Other tasks should not be run without operator intervention. If a monitor changes to red when the CPU is at 90% utilization, a reasonable recovery action might be to halt the top five processes. Depending on what the computer is used for, however, you might not want this recovery task to be done automatically. Instead, consider clearing the
Run recovery automatically
check box and having an operator check whether halting the top five processes is acceptable before doing the task.