[cron.d/monit] timeout pour nc
This commit is contained in:
parent
5fa6339cd0
commit
de7af4c305
1 changed files with 1 additions and 1 deletions
|
@ -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")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue