function that runs and background and checks for machines, emails admins when stuff goes down