updated xcp_monitor.sh