[cron.d/monit] timeout pour nc

This commit is contained in:
Daniel STAN 2013-05-19 21:51:57 +02:00
parent 5fa6339cd0
commit de7af4c305

View file

@ -23,7 +23,7 @@ if has('autostatus'):
comment("Seveurs ne possedant pas de nfs :")
for client in metadata.query.all():
if not has_shared_scripts(client):
print "* * * * * root ( /bin/nc %s 4242 || true ) > /usr/scripts/var/monit/status/%s 2> /dev/null" % (client.hostname, client.hostname.split('.', 1)[0])
print "* * * * * root ( /bin/nc -w 10 %s 4242 || true ) > /usr/scripts/var/monit/status/%s 2> /dev/null" % (client.hostname, client.hostname.split('.', 1)[0])
if not has_shared_scripts(metadata):
comment("Pas de nfs: attente de connexion depuis le serveur d'autostatus")