monitor.sh script