Processing alarms with a rule-based expert system