Machine monitoring script q.s