Use script-based threshold items to monitor specific values and trigger alerts when certain conditions are met. By linking a script to a threshold item, you can track a wide range of metrics and get notified whenever those metrics reach predefined thresholds.
Create script-based threshold item
Add Windows PowerShell (.ps1) and macOS Shell (.sh) scripts — that don't contain variables — to script-based threshold items.
Note:
- Available for Atera Enterprise users with Admin permissions.
- Available for Atera Superpower users with Admin permissions.
To create a script-based threshold item:
1. Go to Admin > Monitoring and automation > Thresholds.
The Threshold profiles page appears.
2. Select an existing profile or create a new one
The threshold profile appears.
3. Click New item.
The Threshold item window appears.
4. From the Script-based tab, enter the alert title. Then click Select under Monitoring script.
The Select script window appears.
5. From your My scripts tab, select the script.
Note: You can also create a script from scratch or search the Shared Script Library for community-submitted scripts.
The monitoring script is added to the threshold item.
6. Complete the threshold item:
- Select the alert severity.
- Select the value type and operator. Then set the value.
- Set the time period.
- Note: An alert is generated after each time period interval (with a delay of up to 2 minutes).
- Select an auto-healing script. Learn more
7. Click Add.
The script-based threshold item is added to the threshold profile.
8. Click Save.
The threshold profile is updated to include the script-based item.