Commit 4ae7ea0e authored by Vincent Le gallic's avatar Vincent Le gallic
Browse files

[wiki/macro/MonitStatus] /usr/scripts/monit -> /usr/scripts/var/monit

parent 4e62a2b8
......@@ -12,7 +12,7 @@ Exemple :
[[MonitStatus(All|Off|service@host)
"""
statusfolder = '/usr/scripts/monit/status'
statusfolder = '/usr/scripts/var/monit/status'
def NotRunningHosts() :
"""
......@@ -21,7 +21,7 @@ def NotRunningHosts() :
"""
hosts = []
for host in os.listdir(statusfolder) :
if os.path.getmtime('/usr/scripts/monit/status/%s' % host) < time.time() - 240 :
if os.path.getmtime('%s/%s' % (statusfolder,host)) < time.time() - 240 :
hosts.append(host)
return hosts
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment