When creating an event driven rule based on an alarmSystemEvent with an email action set up, the database rules fire the same email twice.
To solve it follow the steps below:
1. Create a simple rule
2. Click the event driven and set this to be alarmSystemEvent
3. Click "No scope"
4. Under the "Conditions/Actions" tab select the "Fire" pane.
Add the following script. In the example below, the logic variable is set to only forward emails for the rule DBSS - Connection Time. You can add further parameters to include other rules or severities.
//***Start***
// check that the rule is a 'fired' and not a 'cleared' event
alarmType = @event.get("change").get("value").equals("0");
logic = (@event_foglight_rule_name.equalsIgnoreCase("DBSS - Connection Time");
return (alarmType && logic);
//***End***
Remember to add an email action in the "Action" tab.
© ALL RIGHTS RESERVED. Feedback Terms of Use Privacy Cookie Preference Center