Creating an Action for a Test Condition
In the TIBCO OI Hawk RedTail UI, you can define an action to take when a test condition for a rule of the Hawk agent becomes true.
Procedure
1. | In the TIBCO OI Hawk RedTail UI, navigate to the Hawk agent page to which you want to add an action. For steps, see Viewing the Agent Details. |
2. | On the Agent 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 which you want to edit. |
All the rules in the rulebase are listed. For details, see Rule Details Page.
4. | Click the rule for which you want to add the action. |
All the test conditions in the rule are listed. For details, see Test Details Page.
5. | Click the test condition to which you want to add action. |
All the actions in the test are listed. For details, see Actions Details Page.
6. | In the Actions section, click the New Action icon (![]() |
7. | In the New Action window, select the action you want to perform and enter the details to relevant fields. The following table lists all the available actions. |
Action Type |
Result |
Usage Notes |
Alert (default) |
Sends an alert message to Hawk RedTail Console |
In the Alert Message field, type the alert text that you want to display in the Alerts tab. Specify an Alert Level: High (default), Medium or Low. |
Notification |
Sends a notification message to Hawk RedTail Console |
In the Notification field, type the notification text that you want to display in the Alerts tab. |
Method |
Invokes a microagent method on the Hawk agent machine |
Select a Microagent and Method from the Microagent Info panel. Specify any required arguments. |
|
Sends an email message. |
Specify a message recipient as recipient@domain.com. Specify the subject string, TO, CC, BCC, and Content field for sending the message, and message text. |
Post Condition |
Creates a posted condition to use in another rule in the same rulebase |
In the Posted Condition field, type a label for the posted condition. For more information, see Creating and Using Posted Conditions . |
8. | Select the Schedule that you want to apply to the action. For details about the schedules, see 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.
Fields |
Description |
||||||||||||
Escalation Period |
To escalate a problem, type a wait interval in seconds in the Escalation Period field. The action is not performed the first time the associated test is |
||||||||||||
Action Policy |
Specify how actions are performed. The values are:
This option is useful when the action runs a paging script. A single page might be lost, but paging at each test evaluation (such as once per minute) is too often. With this option, you can send the page every five minutes until it is likely to be received.
This option is applicable only if the associated action creates an alert message with some string variables. The action is performed each time the value of the string variable changes, resulting in a change in the alert message. Substituting variables in alert messages overrules this feature.
Substitution of variables in alert messages has no impact on this feature. |
||||||||||||
Max Count |
Use this field when the Action Policy is |
||||||||||||
Interval |
Use this field when the Action Policy is |
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.