A rule functions as a trigger that runs your action when the rule condition is evaluated as true.
Note: Only the original creator or an administrator can edit or delete a rule.
Follow these steps:
The Rules page appears.
The Rule/Template wizard appears.
Note: Select Template to create a rule template that can be used with multiple rule definitions.
Note: Setting a limit on the number of times the rule can run prevents excessive retries that slow down system response time.
The Template Modeling and Action Selection section appears.
The Define Rule Formula section appears.
Specifies the source for the data that the rule evaluates, which can be Overall Utilization, Event, or specific server metrics.
Specifies how to evaluate the source data against the value you enter in the Value field. The valid operators depend on the source. For example, if you select Overall Utilization, the following operators are valid:
If you choose Event, the values are as follows:
Matches an exact string or substring. Wildcards are not permitted in the Value field.
Returns a value of true when strings matching the specified regular expression are found. Returns a value of false when no strings matching the specified regular expression are found.
Returns a value of true when no strings matching the specified regular expression are found. Returns a value of false when strings matching the specified regular expression are found.
Important! Verify that the rule and action name does not contain the string that you want to match. This best practice helps to avoid incremental firing of actions when events are matched in the next rule evaluation cycle.
Example: If the Value field contains threshold as the matching string, the following events are matched:
Event A: The memory threshold has been breached!
Event B: threshold
Specifies the numeric value or alphanumeric string against which the selected operator evaluates the source data.
Defines how often the rule must evaluate as true before the action triggers. Some actions that you define should trigger after a single occurrence. Other actions should trigger only after a number of occurrences signal a persistent problem. Note: When Source is set to Event, Lag is disabled by default.
Defines multiple formulas by using the logical operators AND or OR. Click New to complete each definition and add the formula to the list of defined formulas. The last formula that you define is set to NOOP by default.
Your condition formula will be used to trigger the action when the rule evaluates to true. The Confirm Configuration section appears.
Your rule or template is added to the Rules list.
Example: Set a Server Level Rule
This example sets a rule for a server that exceeds CPU and memory thresholds more than three times, or when an event occurs indicating that a server is discovered.
Rule formulas:
Action: Add 200 CPU Shares, Max 8000
Copyright © 2013 CA. All rights reserved. |
|