Alarms use Bots to execute automated Actions.

A Bot connects a single Alarm to one or more Actions. When the Alarm is raised the Bot fires all associated and enabled Actions to close the auto-remediation loop.

Bot Properties

Each Bot has various configurable properties that determine its behavior. The minimal required properties to create a Bot are:

  • name - The name of the Bot
  • command - An if-then-fi statement containing the Alarm name and Action name associated with the Bot. Alternatively, the command property can be a custom Linux command.

Create a Bot

Bots are created using either the CLI or the Configuration UI.

The command property is automatically defined when creating a Bot within the CLI. The basic Op syntax is:

bot <name> = <command>
The <command> line must be provided in the following format:
bot <name> = if <alarm_name> then <action_name> fi
  • alarm_name The name of the Alarm that the Bot monitors.
  • action_name - The name of the Action the Bot triggers when the monitored <alarm_name> Alarm is raised.

For example, the following creates a high_cpu_bot that fires the high_cpu_action when the high_cpu_alarm is raised.

bot high_cpu_bot = if high_cpu_alarm then high_cpu_action fi

Edit a Bot

You can edit an existing Bot from either the CLI or the UI.

To edit an existing Bot in the CLI simply set a new value for the appropriate Bot property.

See Bot Properties for details.

Delete a Bot

You can delete an existing Bot from either the CLI or the UI.

To delete an Bot via the CLI use the delete Op command:

delete high_cpu_bot
Deleted bot 'high_cpu_bot'.