add check_script for monitoring connections