Update bash/monitor.sh

Updated code based on running monitor.sh.