Forum Discussion

Issac's avatar
Issac
Icon for Expert rankExpert
2 months ago
Solved

Run Book Schedule Monitoring

Whether it is possible to monitor the runbook schedules ? We have some critical run book which used to run every day , some times it not running , we need an alert for this.
  • BryanHarding's avatar
    BryanHarding
    2 months ago

    Alfred,

    Each and every RBA policy execution results in a record to `master_logs`.`automation_policy_metrics` capturing which RBA policy, what triggered it, and timestamps for milestones of execution. The two key fields for your presented problem will be: ap_id and trigger_type where:

    ap_id = Local ID of the Run Book Automation Policy. You will be able to parse this from your RBA policy inventory in the UI (Registry > Run Book > Automation).

    trigger_type = The type of trigger method. As your concern is around time-point scheduled RBA you will be looking for this value being "1".

    Filtering on these two fields will show you all scheduled RBA executions and with that list you will be able to see the time the task was evaluated by the RBA engine (task_loaded_time), the time the RBA engine started the task execution (task_started_time), and the time the task was marked as completed (task_completed_time).

    If you understand that an RBA should have been triggered based on a schedule and you are not finding any such record pertinent to that execution within this table it would warrant capturing details about the time point schedule, the RBA policy, and reproducing the behavior while the RBA engine is in DEBUG to engage with our Support team for an in-depth review.