[CentOS] Testing remote machine status in a script ?