Creating and editing output expressions
This task describes how to create and edit output expressions.
About this task
To create or edit output expressions, complete the following steps:
Procedure
- From the Edit Template tab
of the Service Editor, click the Output Expressions tab.
The Output Expressions tab opens.
- Enter the special rule data using Table 1 as your guide.
Table 1. Output Expressions tab elements Element Description Report Unknown Severity if no Events after the following number of seconds check box When you select this check box, the service status changes to unknown (purple) if the service does not detect events for a given time period. TBSM also sends a severity 1(indeterminate) event to the ObjectServer.For example, if you set the seconds to
60and no service events are detected for more than 1 minute, the service status changes to unknown and sends a severity1event to the ObjectServer.Expression builder drop-down lists and Insert buttons These fields enable you to enter output expression parameters in the open text field for both Bad-and Marginal Output Expressions. The first field lists all the rules for the service template. To use these fields, select the value you want from the drop-down list and click Insert to the right of the field. For non-English browsers, translated values will be displayed in the drop down lists, followed by English, displayed in brackets. The Insert buttons will insert the English only, as this is required for TBSM processing.
The selected value is displayed at the end of the expression. You cannot insert values into the middle of an expression with these fields.
Bad Output Expression text field Type your expression that results in a badstatus for the service in this field. That is, the service status isbadif the expression is true.You can also use the expression builder fields to insert the values you want as described in this table. You must enter values for both the Bad and Marginal Output Expression fields. You can enter false in one of the fields if you do not want a service to change states.
You can cut and paste text in this field by right-clicking the highlighted text and selecting Cut, Copy, or Paste from the menu. There are also Select All and Undo options in this menu.
Marginal Output Expression text field Type your expression that results in a marginalstatus for the service in this field. See Bad Output Expression for more information about how to use this text field. You can enter false in one of the fields if you do not want a service to change states. - When you have completed your expressions,
click the Save button in the toolbar.
TBSM performs a syntax check on the expressions before saving and displays an error message if syntax errors are found.