Ajout de testPortNoBann
git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@1198 bf3deb0d-5f1a-0410-827f-c0cc1f45334c
This commit is contained in:
21
check
21
check
@@ -195,6 +195,27 @@ function testPort()
|
|||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function testPortNoBann()
|
||||||
|
{
|
||||||
|
# Verifie si un port est actif
|
||||||
|
# Attend 3 parametres : l'adresse IP a tester, le port a tester et le
|
||||||
|
# fichier /etc/init.d/XX a relancer
|
||||||
|
# Le port sera actif même si il ne renvoie aucun caractère
|
||||||
|
if [ ! -e "/etc/init.d/$3" ]; then
|
||||||
|
checklog "ERREUR : /etc/init.d/$3 introuvable (testPort)"
|
||||||
|
else
|
||||||
|
RESULTAT=`echo "QUIT" | nc -w1 $1 $2 2>&1`
|
||||||
|
if [ "$?" != "0" ]; 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"
|
||||||
|
echo "Relance de $3"
|
||||||
|
/etc/init.d/$3 stop
|
||||||
|
/etc/init.d/$3 start
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
function testDDClient()
|
function testDDClient()
|
||||||
{
|
{
|
||||||
# Verifie si ddclient est toujours actif. Pour cela, le processus doit avoir
|
# Verifie si ddclient est toujours actif. Pour cela, le processus doit avoir
|
||||||
|
|||||||
7
debian/changelog
vendored
7
debian/changelog
vendored
@@ -1,3 +1,10 @@
|
|||||||
|
domcheck (0.16-1) unstable; urgency=low
|
||||||
|
|
||||||
|
* Package 0.16 : testPortNoBann ajouté pour supporter les tests de ports ne
|
||||||
|
renvoyant aucun caractère (LDAPS)
|
||||||
|
|
||||||
|
-- Dominique Fournier <dominique@fournier.homedns.org> Thu, 30 Jan 2014 09:30:44 +0100
|
||||||
|
|
||||||
domcheck (0.15-1) unstable; urgency=low
|
domcheck (0.15-1) unstable; urgency=low
|
||||||
|
|
||||||
* Package 0.15 : Ecriture des erreurs dans les mails de cron
|
* Package 0.15 : Ecriture des erreurs dans les mails de cron
|
||||||
|
|||||||
Reference in New Issue
Block a user