IBM Tivoli Software IBM Tivoli Software

[ Bottom of Page | Previous Page | Next Page | Contents | Index ]


General structure of a simple rule

The following example shows the general structure of a simple rule:

simple_rule: rule_name: 
  description: 'description_text'
  
  directive: directives

  event: event_filter
    where [
      attribute_conditions
    ]

  when:
    event_conditions:
    event_actions

Usage notes

Example

The following example simple rule changes an Su_Failure event to a severity of FATAL if an su command (switch user) to root fails three times within five minutes

simple_rule: escalate_su_failure:

  description: 'Escalate more than 3 su root failures
    in 5 minutes.'

  event: Su_Failure
    where [ to_user: equals 'root' ]

  when: frequency_exceeds 3 within 5 minutes:
      change_event_severity('FATAL').


[ Top of Page | Previous Page | Next Page | Contents | Index ]