Monitoring using scripts (legacy functionality)

This is legacy functionality, which uses scripts to monitor Acronis statuses instead of monitoring through custom fields.

Monitoring scripts functionality

The following monitoring scripts are included in the script packages:

Script Functionality

Acronis_last_backup

All OSs

Compares the current endpoint date to the last successful backup date and time. If last successful backup is later than the number of days ago, it outputs the sentence Last succesful backup more than x days ago.

Acronis_backup_failed

All OSs

Counts the number of open alerts of backup failed type, and outputs the sentence x backups failed.

Acronis_last_malware_scan

Windows and MacOS only

Compares the current endpoint date to the last successful antimalware scan date and time. If last successful antimalware scan was later than the number of days ago, it outputs the sentence Last succesful antimalware scan more than x days ago.

Acronis_malware_detected_alert

Windows and MacOS only

Cumulatively counts the total number of open alerts of type Malware is detected and blocked (ODS) and Malware is detected and blocked (RTP), and outputs the sentence x MALWARE THREADS has been found.

Acronis_last_antivirus_scan

Windows only

Compares the current endpoint date to the last successful antivirus scan date and time. If last successful antivirus scan was later than the number of days ago, it outputs the sentence Last succesful antivirus scan more than x days ago.

Acronis_antivirus_failed_alert

Windows only

Counts the number of open alerts of type Active Protection service is not running and Continuous Data Protection failed, and outputs the sentence Active protection service failed x times.

Each monitoring script can be set as either manually or repetitively executed with a NinjaOne scheduled task.

To manually run a monitoring script

  1. Log in to NinjaOne.

  2. Select .

  3. Select the devices on which you want to install the Acronis agent.

  4. Select Run > Run Automation > Script.

  5. Locate the script you want to run.

    It will have the name you gave it when you uploaded the Acronis script. For more information. see Uploading the integration scripts to NinjaOne.
    Make sure that the device OS matches the script target OS.
  6. Select a value from the Preset Parameter dropdown, if the script requires any.

  7. Select System from the Run As dropdown list.

  8. Click Run, then Yes.

To create a NinjaOne scheduled task for repetitive monitoring script execution

  1. Log in to NinjaOne.

  2. Select .

  3. Select the devices on which you want to install the Acronis agent.

  4. Select Create > Scheduled task.

  5. Specify:
    1. Name

    2. Description.

    3. Schedule > Repeats from the dropdown list and supply further scheduling information, as required.

  6. Click Add.

  7. Locate and select the script you want to add to the scheduled task.

    They will have the name you gave them when you uploaded the Acronis scripts. For more information, see Uploading the integration scripts to NinjaOne.
    Make sure that the device OS matches the script target OS.
  8. Select System from the Run As dropdown list.
  9. Select the appropriate Preset Parameter from the dropdown list.
  10. Click Save.