Abstract. The growing developments on networked devices, with different communication structures and capabilities made possible the emergence of new architectures for monitoring systems. In the case of heterogeneous distributed environments, where knowledge, processing devices, sensors and actuators are distributed throughout the network, the design of such systems are challenging in terms of integration and, markedly, in security and state-awareness of the overall system. This work proposes a general distributed architecture, with supporting methods, for building a resilient monitoring system that can adaptively accommodate both cyber and physical anomalies. Its implementation relies on multi-agent systems within a distributed middleware.