
Common Configuration
# P0602477 Ver: 3.1.11 Page 207
Notation Functionality
Alarms are generated by the system in the following format:
Mon Jan 3 08:51:17 <srp> 12008 Severity 5 Comp
#mps.55/raven Line 23 Host 2 sysmon: disk space for
/var below LWM: capacity at 67%
Included in the contents of the alarm are the following fields (with their corresponding
example entries in parentheses):
•Date (Mon Jan 3)
•Time (08:51:17)
• Producer name (srp)
•Alarm number (12008)
•Severity (5)
• Component name, number, and node (mps, 55, raven)
• Phone Line number (23), if any
•Host number (2), if any
•Alarm Text (sysmon: disk space for /var below LWM:
capacity at 67%)
Each filter in a filter set can refer to the alarm fields by their fixed names: producer,
number, severity, compname (component name), compnum (component
number), node, line, and host. Filtering expressions use the following basic
C-like notation:
( logical condition ) ? actions_if_true :
actions_if_false
An expression is any syntactically correct combination of symbols that represents a
value. Every expression consists of at least one operand and can have one or more
operators. Operands are values, whereas operators are symbols that represent
particular actions (see Logical Conditions on page 209).
If no action is required, the filter should use the true or false function instead. For
example, the filter
((producer == "srp" && severity > 5) || producer ==
"vmm") ? print() : false
passes all alarms generated by srp with severity larger than 5, or generated by
vmm. The filter prints matching alarms because the print() action is invoked, and
ignores the rest. The print() action returns true, so the filter returns true if
this action is invoked, and also sends the alarm to all connected viewers.
Several filters, separated by a semi-colon (
;), can be combined into one filter set.
Each alarm is compared to all filters in the set since each filter may cause a different
action. If any filter in the set executes the action discard(), the alarm is discarded
and no further matching of the alarm is done. For example, the set
Komentarze do niniejszej Instrukcji