I would like to suspend a Alerts on a Rule indefinitely until I turn it back on. The Rule Editor only lets me do this for up to 60 minutes.
Admin Console | Dashboards | Administration | Rules & Notifications | Manage Rules | click on Rule Name | click Rule Summary drop down | click on icon next to Rule Alarms |
only allows me to suspend in 10 minute intervals up to 60 minutes.
I would like to Suspend, turn off, disable and Alert indefinitely, permanently until I turn back on.
In FMS version 5.6.11 and earlier, one cannot select multiple or all Rules to disable.
The UI options to disable a rule only go up to 60 minutes, but there is a script that can be used to achieve this.
STATUS: FMS version 5.7.1 and higher provides a Manage Rules dashboard with checkbox selections for multiple or all rules.
WORKAROUND: On 5.6.11 and earlier, to disable alarms on all rules with the name "CPU Utilization" (as an example):
See "Additional Info" section to suspend all alarms and re-enable all alarms.
Note: If a different rule name is desired, replace "CPU_Utilization" in the script below with the rule name as it appears in the "Manage Rules" dashboard.
1. Navigate to the Script Editor:
Admin Console | Dashboards | Administration | Tooling | Script Editor |
2. Paste the following script text into the Script Editor's 'Script' box
name = 'CPU Utilization';
forever = new Date(9999-1900,12-1,31);
report = '';
rs = server.get("RuleService");
for (rule in rs.getAllRules()) {
if (rule.name == name) {
rs.suspendRuleAlarms(rule.id, forever);
report += 'Suspending alarms on rule '+rule.name+' ('+rule.id+') permanently\n';
}
}
report ;
3. click 'Run'. The Result box should return a list of "Suspending alarms on rule xxxxxx"
To re-enable the Rule(s):
Admin Console | Dashboards | Administration | Rules & Notifications | Manage Rules | click on RuleName | click Rule Summary drop down | click on icon next to Rule Alarms | Cancel Suspend
If you would like to Suspend All Rules indefinitely, a modification to the script can be made:
This.....
© ALL RIGHTS RESERVED. Terms of Use Privacy Cookie Preference Center