![]() |
Copyright © TIBCO Software Inc. All Rights Reserved |
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.
5. Under the Tests section, click the New Test icon.
7. (Optional) Click Advance Options to add extra conditions to the test.
8. (Optional) Click Create and Add Action.The New Action window opens to add an appropriate action for the rule if the test condition is true. For details, see Creating an Action for a Test Condition.
9. Click Create Test.Create a new action for the test condition. For details, see Creating an Action for a Test Condition.
Table 6 Test Condition Elements For example, the following variables are listed for the Self:getUptime() method:
• Click the Add Expression icon to add one more expression to the test condition at the same level. The expressions are joined by using the logical operator specified (AND or OR) Select the logical operator to join two expressions. The values are: AND and OR. You can use the Add Expression icon to add one more expression to the test condition. Select this NOT operator for the expression if you want to negate the result of that single expression. Select this NOT operator for the set of expressions if you want to negate the result of that set of expressions.For example, the following is the test expression when the NOT operator is selected: Note: You must have at least one test expression to create a test condition.
The drop-down also lists the negative of the schedules as well, which when selected means that the conditions are checked at times other than the schedule. For example, if the Weekend schedule defines the time interval for every Saturday and Sunday then the !Weekend schedule means the time interval other than every Saturday and Sunday.
• (Default)CLEAR_ON_FIRST_FALSE - After the test becomes true, the test is cleared when the first time the test changes from true to false. This is the default behavior for a test with a synchronous data source.
• CLEAR_TIMER - Specify a wait interval in seconds. After the test becomes true it remains true until this interval has passed without an additional true test. This is the default behavior for a test with an asynchronous data source, and the default wait interval is 900 seconds (15 minutes).
• CLEAR_TEST - Specify an extra test expression for clearing the test. After the test becomes true, it becomes false only when the clear test expression becomes true. The clear test uses the microagent method result fields of the data source as input.For example, a test monitors each line in a log file for the string Feed Line Down. If this string is found, an alert is generated. A clear test for the original test checks for a log file line that signals the condition is resolved, such as Feed Line Up. When the clear test evaluates to true, the original alert message is cleared.
Table 10 Test Operators for Boolean Results
![]() |
Copyright © TIBCO Software Inc. All Rights Reserved |