Monitoring the health and integrity of Wireless Sensor Networks