--- title: "Configure Scripts for Custom Alarms" slug: "roles-configure-scripts-for-custom-alarms" updated: 2026-02-23T11:56:57Z published: 2026-02-23T11:56:57Z canonical: "documentation.lakesidesoftware.com/roles-configure-scripts-for-custom-alarms" --- > ## Documentation Index > Fetch the complete documentation index at: https://documentation.lakesidesoftware.com/llms.txt > Use this file to discover all available pages before exploring further. # Configure Scripts for Custom Alarms Custom alarms may be used to provide application-specific monitoring. Each alarm is based on the execution of a named script or program which must return a value through its exit code and allows for the configuration of scripts to provide specific timed information responses outside the bounds of the existing framework. For example, a script can send a ping to a router and if a successful reply is not received, denoted by an error code, the SysTrack Agent will respond with an action and/or a notification. In a more complex situation, a custom created script could send a SQL statement to a database and capture the response time of the query. If the response time is more than ‘y’ number of milliseconds, over number or consecutive requests, the SysTrack Agent could raise an alarm For each script the following three alarms may be independently enabled: - **Duration** - triggered when the time required for the script to complete exceeds the specified limit for the specified time period - **Failure** - triggered when an attempt to run the script fails - **Result** - triggered when the value returned by the script exceeds the specified limit for the specified time period ## Configure a Script 1. In System Configuration, select **Roles**. 2. In the drop down list, select **Scripting**. 3. Click the plus icon to add a new child setting to the selected **Role**. The Add New Setting dialog box opens. ![](https://cdn.document360.io/87d11426-6b1f-4b19-b593-b71e55a81af3/Images/Documentation/roles_scripting1.png) 4. Enter a name and click **Create**. 5. In the **Script path/Redist/SQL** field, select one of the following options: - **Redist** - allows for the placing of a script in the redist folder that will be distributed to each system running in this Alarm Configuration. The redist folder is located off the Lsiagent folder on the Master System. If you select this option the path will appear as follows: **Redist\