Some ruby scripts for monitoring