fixed syntax error in status monitor script