
Working with vFoglight Rules and Registry 261
Working with Rules
7
Click Add.
The Severity Level Variables pane refreshes, showing the newly-added variable.
To delete a severity-level variable from the list, select the row containing that
variable in the Severity Level Variables pane, and click Delete Selected.
From here, you can proceed to “Writing conditions” on page 261.
Writing conditions
A condition is the part of a rule that is evaluated against monitoring data. When it
evaluates to True, the rule is said to fire, causing any actions that are associated with the
rule or severity level to be performed.
When you create a simple rule, you specify a single condition for it. You can edit this
condition after you create the rule. When you create a multiple-severity rule, you must
specify a condition for one or more of its severity levels, Fatal, Critical, and Warning,
along with an alarm message that is associated with each condition.
• Conditional Expression. A conditional expression can be either true or false.
They can reference registry variables, Groovy functions, and metrics associated
with the one or more topology types or their topology objects to which the rule
applies.
Additionally, conditional expressions can reference properties of topology objects
that are related (within the hierarchy of the topology model) to one or more
topology objects to which the rule is scoped. For example, the condition for a
simple rule that is associated with a specific JVM can reference properties of the
server on which the JVM is running (such as the server name), or properties of the
cluster to which the server belongs.
Comentarios a estos manuales