A modular approach to network monitoring in a Grid environment