A self-diagnosing distributed monitoring system for nuclear power plants