Timeout plus grand pour voir si Monit tourne.
darcs-hash:20051103063101-d1718-9a94ca34e1f00faeb0849e05acf02b053768bbda.gz
This commit is contained in:
parent
8e2469449b
commit
7eb88b5e13
1 changed files with 1 additions and 1 deletions
|
@ -21,7 +21,7 @@ def NotRunningHosts() :
|
||||||
"""
|
"""
|
||||||
hosts = []
|
hosts = []
|
||||||
for host in os.listdir(statusfolder) :
|
for host in os.listdir(statusfolder) :
|
||||||
if os.path.getmtime('/usr/scripts/monit/status/%s' % host) < time.time() - 180 :
|
if os.path.getmtime('/usr/scripts/monit/status/%s' % host) < time.time() - 240 :
|
||||||
hosts.append(host)
|
hosts.append(host)
|
||||||
return hosts
|
return hosts
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue