Vérifiez si l'hôte est accessible Python
HOST_UP = True if os.system("ping -c 1 " + SOMEHOST) is 0 else False
AlgorSnipes
HOST_UP = True if os.system("ping -c 1 " + SOMEHOST) is 0 else False