Copyright © TIBCO Software Inc. All Rights Reserved
Copyright © TIBCO Software Inc. All Rights Reserved


Chapter 4 Rulebase Management : Creating an Action for a Test Condition

Creating an Action for a Test Condition
In the Hawk Console, you can define an action to take when a test condition for a rule of the Hawk agent becomes true.
Procedure
1.
2.
In the Agent’s page, select the Rulebases tab.
All the rulebases for the Hawk agent are displayed. For details, see Rulebases Tab.
3.
On the Rulebases tab, click the rulebase name which you want to edit.
All the rules in the rulebase are listed. For details, see Rule Details Page.
4.
All the test conditions in the rule are listed. For details, see Test Details Page.
5.
All the actions in the test are listed. For details, see Actions Details Page.
6.
The New Action window opens.
7.
In the Message field, type the alert text that you want to display in the Alerts tab.
In the Notification field, type the notification text that you want to display in the Hawk Console Alerts tab.
Specify a message recipient as recipient@domain.com. Specify a subject string, an SMTP mail server for sending the message, and message text.
8.
Select the Schedule that you want to apply to the action. For details about the schedules, see Chapter 5, Schedule Management.
9.
(Optional) Click Advance Options to add flexibility in timing when an action is performed.
The following table lists the Advance Options fields displayed for the new test.

The action is not performed the first time the associated test is true, but instead starts an internal timer. When the action is triggered by a test transition from false to true, the timer is started. If the associated test remains true for another evaluation after the specified interval, then the action is performed. You can use an escalation period to respond to continuing or deteriorating conditions.
ALWAYS - The action is performed each time the associated test is evaluated as true, even if the test was true in the last evaluation.
COUNT_ON_INTERVAL - Specify the maximum number of times the action can be performed in the Max Count field, no matter how long the associated test continues to remain true. If the test becomes false, the counter is reset. Specify the number of seconds to wait between actions, in the Interval field, as long as the test is true. The related action can only be triggered at a test evaluation, so the actual interval between actions might be longer than the specified Interval.
ONCE_ONLY_UNTIL_MESSAGE_CHANGE - The first time this action is triggered by a test, the action is performed. On subsequent true evaluations, the action is performed only until there is a change in the alert message.
ONCE_ONLY - The first time this action is triggered by a test, the action is performed. On subsequent true evaluations, the action is not performed. The action is not performed again until the test becomes false and then true again. This is the default behavior for all actions.
Use this field when the Action Policy is COUNT_ON_INTERVAL. Specify the maximum number of times the action can be performed, no matter how long the associated test continues to remain true. If the test becomes false, the counter is reset.
Use this field when the Action Policy is COUNT_ON_INTERVAL. Specify the number of seconds to wait between actions, as long as the test is true.
10.
Click Create Action.
The New Action window closes and the action is created for the test condition.
What to do Next
Deploy the rulebase to the domain for the new action to take effect, see Deploying a Rulebase to the Associated Hawk Agent.

Copyright © TIBCO Software Inc. All Rights Reserved
Copyright © TIBCO Software Inc. All Rights Reserved