Monitor script for htpc