diagnose anomalies and take action to restore normal ship operation