SLA CONTROL_ACTION parameter (lsb.serviceclasses)

About this task

Configure a specific action to occur when a time-based SLA is missing its goal.

Procedure

Use the CONTROL_ACTION parameter in your service class to configure an action to be run if the time-based SLA goal is delayed for a specified number of minutes.

CONTROL_ACTION=VIOLATION_PERIOD[minutes] CMD [action]

If the SLA goal is delayed for longer than VIOLATION_PERIOD, the action specified by CMD is invoked. The violation period is reset and the action runs again if the SLA is still active when the violation period expires again. If the time-based SLA has multiple active goals that are in violation, the action is run for each of them.

Example

CONTROL_ACTION=VIOLATION_PERIOD[10] CMD [echo `date`: 
SLA is in violation >> ! /tmp/sla_violation.log]