Skip to main content

Runbook Execution

Overview

Motadata AIOps empowers you to automate operational tasks efficiently through Runbooks. You can choose to execute Runbooks at predefined times or in response to specific alerts, allowing you to streamline your IT operations effectively.

Motadata AIOps allows you to execute Runbooks in two distinct ways:

  • Scheduling a Runbook Execution at Specific Times
  • Executing a Runbook When an Alert Is Triggered

In this guide, we'll look into each method individually to help you effectively manage your automation tasks.

Scheduling a Runbook Execution at Specific Times

To execute Runbooks at specific times, you first need to assign the Runbook to a monitor and then schedule it to run at the desired times. This method is ideal for scenarios like starting and stopping virtual machines at appropriate times during business hours.

1. Assigning a Runbook to a Monitor

Under the Actions Tab, select to display permissible actions for each runbook. After that, select Assign Monitor to display the list of monitors to which the runbook can be assigned. The monitors using the same communication protocol as the runbook are displayed for assignment.

Now, Select the monitors to which you need to assign the runbook using the check-box against it. You can select multiple monitors in case you need to assign the runbook to more than one monitor at once.

Select Assign Monitor to assign the runbook to the selected monitor(s).

Select Cancel if you do not wish to assign the runbook to the monitor(s).

2. Scheduling a Runbook

Once you have assigned the Runbook to the selected monitor(s), you can now schedule the Runbook to be executed for that monitor at specific times.

Under the Actions Tab, select to display permissible actions for each runbook. After that, select Schedule Runbook to display a scheduler pop-up as shown below.

Fill the details in the pop-up to create a scheduler.

FieldDescription
Scheduler TypeSelect the frequency at which you want to schedule the execution
Start DateSelect the date at which you want to start the Runbook execution.
HoursSelect the time at which you want to start the Runbook execution.
Notify via EmailEnter the E-mail addresses to receive a notification after the execution of the Runbook is complete.
Notify via SMSEnter the SMS to receive a notification after the execution of the runbook is complete.
DaysSelect the days on which you want to schedule the Runbook execution. This field is only available when you select the Scheduler Type as Weekly.
MonthsSelect the months in which you want to schedule the Runbook execution. This field is only available when you select the Scheduler Type as Months.
DatesSelect the dates of the month on which you want to schedule the Runbook execution. This field is only available when you select the Scheduler Type as Months

Select the Schedule button to schedule the Runbook execution as per the details you configure.

Executing a Runbook When an Alert Is Triggered

In this method, Runbooks are triggered automatically in response to specific alerts within your infrastructure. For instance, you can set up a Runbook to kill processes with high CPU utilization or list the top 10 processes with the highest CPU utilization when an alert for high CPU usage is triggered.

To execute Runbooks when alerts are triggered, you need to map the Runbooks to policies while configuring a policy. When you create alert policies to monitor events in your infrastructure, you can specify which Runbook to execute when a particular alert criterion is met under the Take Actions section of a policy configuration.

Motadata AIOps provides you with flexible options for executing Runbooks, whether it's on a predefined schedule or in response to real-time alerts. This automation capability enhances your operational efficiency, reduces manual intervention, and ensures your IT infrastructure runs smoothly.

Now, you can choose the method that best suits your needs and follow the respective steps to streamline your automation processes.