Fixes to the crab monitoring script