A modular approach to virtual monitoring