To create or remove a threshold-alarm rule, use the following rhino-console commands or related MBean operations.
Console command: createthresholdrule
Command  | 
createthresholdrule <name>
    Create a threshold alarm rule
 | 
|---|---|
Example  | 
To create a rule named "low memory": $ ./rhino-console createthresholdrule "low memory" Threshold rule low memory created  | 
MBean operation: createRule
MBean  | 
|
|---|---|
Rhino operation  | 
public ObjectName createRule(String ruleName)
    throws ConfigurationException, ValidationException;
This operation creates a rule with the name given, and returns the JMX object name of a   | 
Console command: removethresholdrule
Command  | 
removethresholdrule <name> Remove a threshold alarm rule  | 
|---|---|
Example  | 
To remove a rule named "low memory": $ ./rhino-console removethresholdrule "low memory" Threshold rule low memory removed  | 
MBean operation: removeRule
MBean  | 
|
|---|---|
Example  | 
public void removeRule(String ruleName)
    throws ConfigurationException, ValidationException;
This operation removes the rule with the name given.  | 
