Set Up Alert Triggers
Note: The user interface below is for Litmus Edge Manager version 2.10.1 and later.
You can add an alert trigger for edge devices in the Triggers section in the Alerts module.
Review the following guides for setting up alert triggers:
Important: Triggers require an action for notification implementation.
Variables change depending on the Source selected.
Add an action to the Action List to receive a notification. See Add new Action for details.
Completing the Source section first avoids issues with the variables for the Subject and Message fields in the Trigger section. The source is the type of condition needed to trigger an alert.
To select a source:
- Select a Source. The options are:
- Metrics: The Trigger section's Subject and Message fields will be hidden and disabled.
- Events: The Trigger section's Subject and Message fields will be revealed and enabled.
- Click the Add link to add a new rule. The rule table drops down. The rule table is dependent on your source selection.
Select a metrics source to set up an alert that triggers based on metrics collected by Litmus Edge Manager, specifically when the value of a variable is a certain desired value or certain set/interval of values. You may create only one metrics rule per alert.
From the Select Alert template drop-down list, select an alert template and enter a value for each of the respective parameters. Refer to the following table for more information on each alert template:
Metrics Name | Source | Description / Purpose | Parameters | Trigger Condition (Create an Alert...) |
---|---|---|---|
Connector disk buffer | Integration | Monitor Integration Connector disk buffer, which is used when the connector’s throughput is insufficient to handle all defined tags coming from Edge devices. |
| When the usage of Integration Connector disk buffer is above __Target_Value__ MB for more than __Alert_Delay__ seconds. |
Connector online status | Integration | Detect unplanned IntegrationConnector disconnections. |
| When the IntegrationConnector is offline for more than __Alert_Delay__ seconds. |
DeviceHub (DH) online status | DeviceHub | Detect unplanned disconnections of DeviceHub (DH) devices. |
| When the DeviceHub (DH) device is offline for more than __Alert_Delay__ seconds. |
DeviceHub (DH) device data quality | DeviceHub | Monitor the rate of low-quality (i.e. error) messages. A high rate of low-quality messages indicate a problem with either the physical device or the device driver. |
| The rate of low-quality messages for the DH device is above __Target_Value__ for more than __Alert_Delay__ seconds. |
Edge Device online status | Edge Device | Detect unexpected disconnections of edge Devices. |
| The edge device is offline for more than __Alert_Delay__ seconds. |
Edge Device license expiration | Edge Device | Detect when the license of an edge device has expired. |
| When the license for an edge device is going to be expired in __Target_Value__ days for more than __Alert_Delay__ seconds. |
Edge Device free disk space | Edge Device | Monitor the available disk space of an edge device. |
| When the free disk space is less than __Target_Value__ percent for more than __Alert_Delay__ seconds. |
Edge Device memory available | Edge Device | Monitor the available memory of an edge device |
| When the Free RAM is less than __Target_Value__ percent for more than __Alert_Delay__ seconds. |
Edge Device CPU Idle | Edge Device | Monitor the CPU usage of an edge device |
| When the CPU idle is less than __Target_Value__ percent for more than __Alert_Delay__ seconds. |
Select an events source to set up an alert that triggers when a specific event occurs.
To set up an events source:
- From the Severity drop-down list, select an option.
- All
- Info
- Warning
- Alert
- From the Component drop-down list, select an option.
- All
- cc - Integrations
- mp - Marketplace
- dh - Device Hub
- auth - Auth
- dm - Device Management
- From the Event ID drop-down list, select an option. Options are dependent on the Component selected. See Event ID for User Alert Triggers.
- (Optional) Click Show Event Attributes... For each of the event attributes, enter a value.
- (Optional) In the Info field, enter a value.
- Repeat with additional new rules by clicking the Add new rule button as needed.
Note: For Litmus Edge Manager version 2.14.0 and later, you can customize the subject and message of the trigger alert with your preferred text in addition to the variables.
You can customize the trigger's subject/message contents that will be sent to a recipient. The visibility of the Subject and Message fields are dependent on the Source selection from Step 1.
You can select from the following variables in the trigger subject and message:
- $devicename: The name of the associated edge device . (For example: Litmus Edge (08:00:23:18:r5:32).
- $name: The name of the associated connector or DeviceHub device. (For example: PLC_2)
- $alertDelay: The alert delay parameter configured for the trigger.
- $value: The current value associated with the connector or DeviceHub device that is being monitored. (For example: connector disk buffer of 98MB)
- $company: The company associated with the edge device for the trigger.
- $deviceid: The associated edge device ID. (For example: 9udklweoidslsdd0lksdjfslkd)
- $project: The project associated with the edge device for the trigger.
- $targetValue: The target value configured for the trigger. (For example: 50MB for Connector disk buffer)
- $componentid: The associated component for the event trigger: cc - Integrations, mp - Marketplace, dh - Device Hub, or auth - Auth.
- $message: The associated event message for the trigger.
- $triggerid: The associated trigger ID.
- $hostname: The associated host name for the trigger.
- $tags: The associated tags for the trigger.
- $severity: The severity level selected for the trigger: Info, Warning, or Alert.
- $triggername: The name configured for the trigger.
- $type: The associated event type for the trigger.
- $eventid: The event ID associated with the trigger.
To set up the trigger:
- In the Name field, enter a name for the trigger.
- (Optional) Click the Active checkbox to set an active trigger flag.
- (Optional) Click the Dashboard check box to show trigger alerts on the dashboard.
- In the Description field, enter a description for the trigger.
- In the Subject field, select one or more variables. For Litmus Edge Manager version 2.14.0 and later, you can enter your preferred text in addition to selected variables.
- In the Message field, select one or more variables. For Litmus Edge Manager version 2.14.0 and later, you can enter your preferred text in addition to selected variables.
You can customize the scope of the user triggers. This will determine the applicable edge device(s) that will receive this alert trigger.
To set up the scope, select an option from the Scope section.
- All edge devices
- Edge Device. From the Edge Device drop-down list, select an edge device.
You must create an action to use this section. You can select the response action that will immediately occur after the alert is triggered.
To set up the action:
- Select an option from the Action List drop-down list.
- (Optional) Select the Continuously check box.
- If you have checked Continuously, enter a value in the Notification Period field in minutes.
- Click Save. The alert trigger appears in the Trigger List.