Monitoring using scripts (legacy functionality)
Monitoring scripts functionality
The following monitoring scripts are included in the script packages:
| Script | Functionality |
|---|---|
|
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. |
|
All OSs |
Counts the number of open alerts of backup failed type, and outputs the sentence x backups failed. |
|
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 |
|
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
-
Log in to NinjaOne.
-
Select
. -
Select the devices on which you want to install the Acronis agent.
-
Select Run > Run Automation > Script.
-
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. -
Select a value from the Preset Parameter dropdown, if the script requires any.
-
Select System from the Run As dropdown list.
-
Click Run, then Yes.
To create a NinjaOne scheduled task for repetitive monitoring script execution
-
Log in to NinjaOne.
-
Select
. -
Select the devices on which you want to install the Acronis agent.
-
Select Create > Scheduled task.
- Specify:
Name
Description.
Schedule > Repeats from the dropdown list and supply further scheduling information, as required.
-
Click Add.
-
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. - Select System from the Run As dropdown list.
- Select the appropriate Preset Parameter from the dropdown list.
-
Click Save.