--- title: "Configure Scripts for Custom Alarms" slug: "configure-scripts-for-custom-alarms" updated: 2026-03-05T12:10:17Z published: 2026-03-05T12:10:17Z canonical: "documentation.lakesidesoftware.com/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. Select **Systems Configuration - Roles** on the navigation pane to display the Roles page, and then select the **Scripting** tab. 2. Click the **+** (plus) button to the left of **Scripts** to add a new child setting to the selected **Role**. ![](https://cdn.document360.io/87d11426-6b1f-4b19-b593-b71e55a81af3/Images/Documentation/roles_scripting1(1).png) 3. In the **Add New Setting** dialog create a Name for your setting and click the **Create** button. 4. In the **Script path/Redist/SQL** field use the drop-down menu to 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\