diff --git a/check b/check index c0f9618..c49e72b 100755 --- a/check +++ b/check @@ -184,7 +184,7 @@ function testPort() checklog "ERREUR : /etc/init.d/$3 introuvable (testPort)" else RESULTAT=`echo "QUIT" | nc -w1 $1 $2 2>&1` - if [ "$?" != "0" ]; then + if [ "$?" != "0" ] || [ "$RESULTAT" == "" ]; then checklog "Relance de $3 car injoignable par reseau" echo "ALERTE : La machine `hostname` ne peut plus se connecter a " echo "$1 port $2 : $RESULTAT"