Is there is a way to clear alarms specific to only specific rules?
The following groovy script can be run from the script console to clear the alarms for a specific rule. The exact rule name has to be used for the script to work.
def alarmService = server.AlarmService;
def alarms = alarmService.getCurrentAlarms();
alarms.findAll{
alarm -> alarm.getRuleName().equals("Exact name of the Rule here");
}.each{
alarm -> alarmService.clearAlarm( alarm.getID() );
};
© ALL RIGHTS RESERVED. Terms of Use Privacy Cookie Preference Center