What is the correct syntax for a correlation rule script condition to count the number of alarms in a bucket with a certain severity?
Use case: I have 5 IRD elements receiving a carrier from the same transmitting antenna. I want to trigger the correlation rule (to switch to another antenna) if all IRDs that are not in timeout give a critical alarm on their lock state.
Was thinking of a script condition like this: count(severity(critical)) == 5 - count(severity(timeout)) but I'm stuck on syntax...
Hi Jochen,
I think you can achieve this as follows:
By adding the "Severity not equal to Timeout" in the alarmfilter section all the timeout alarms are filtered out.
The script condition makes sure that the correlation rule gets triggered when all base alarms are critical except for the elements which are in timeout.
Thanks for the advice. That’s not what I’m searching for unfortunately. With your rule it triggers already if there’s only 1 IRD element giving an alarm. It should only trigger if all are unlocked/give alarm.