Run an Automated Task when a Check fails

You can run Automated Tasks when a Check fails by assigning a task when adding or editing a check. For example, you can have an automated task automatically deal with the cause of a check failure such as running a Clean All Temp Files Task when the Disk Space Check fails.

Automated Tasks are supported for Windows, Mac (from Agent 2.3.0), and Linux (from Agent 2).

Depending on the Agent version, a different configuration update mechanism is used for Automated Tasks and Checks. The Automated Task update may take up to two 24x7 Check cycles to deploy, and the Check update takes place in near real-time. This can result in the Agent running the newly configured Check, before the Automated Task has synchronized with the Agent. In this case, the Automated Task will not run if the Check fails.

The selected Automated Task only runs when a passing Check fails and creates an entry in the Outages tab. The Automated Task does not continually run when a Check is in the failed state—the Check must first pass, then fail again before the Automated Task is triggered.

Add Check

  1. Select the target device in the North-pane of the N-sight RMM Dashboard
  2. In the South-pane Checks tab click Add Check
  3. Choose the Check from Add 247 Check or Add DSC Check
  4. Configure the Check as required
  5. Enable Assign a Task after creating the Check and click OK

    The Add Automated Task dialog opens.

  6. Select a script from the drop-down options and configure where required. The drop-down options include both system grouped by function and custom User Defined Automated Tasks.
  7. Click Next to Set maximum permitted execution time
  8. Click Finish to complete and add both the Check and associated On-Check Failure Automated Task

Edit Check

  1. Select the target device in the North-pane of the N-sight RMM Dashboard
  2. In the South-pane Checks tab, right-click the target Check and select Edit Check
  3. Edit the Check as required
  4. Enable Assign a Task after creating the Check and click OK

    The Add Automated Task dialog opens.

  5. Select a script from the drop-down options and configure where required. The drop-down options include both system grouped by function and custom User Defined Automated Tasks.
  6. Click Next to Set maximum permitted execution time
  7. Click Finish to complete and add both the Check and associated On-Check Failure Automated Task

View Check and Automated Task Association

After a Check is added, all Automated Tasks associated with the Check appear in the Checks tab in the Assigned Tasks column—including those added via the Tasks tab, Add Automated Task. Click the Assigned Tasks link to open the Tasks tab and view information about the Task.

If multiple Automated Tasks are associated with a Check, the Assigned Tasks column reports the number of configured Tasks.

Similarly, the Tasks tab contains a list of associated Checks in the Assigned Check column. Click the Assigned Check link to open the Checks tab and view information about the Check.

Any changes to the Automated Task are completed on the Tasks tab.