[wikis/../autostatus] Fichiers de l'autostatus déplacés dans /usr/scripts/var/autostatus
darcs-hash:20081207202337-bd074-e1ed8bdeb462c6b717abf47229add5876a377cea.gz
This commit is contained in:
parent
d29a380e65
commit
913a142aa7
3 changed files with 74 additions and 7 deletions
|
@ -5,7 +5,7 @@ from commands import getstatusoutput,getoutput
|
|||
|
||||
def execute(macro, text) :
|
||||
|
||||
lines = open('/etc/autostatus/local.status').readlines()
|
||||
lines = open('/usr/scripts/var/local.status').readlines()
|
||||
|
||||
f = macro.formatter
|
||||
code = f.table(1)
|
||||
|
@ -21,7 +21,7 @@ def execute(macro, text) :
|
|||
line = lines[0].split(' ')
|
||||
trucsdown += f.table_row(1)
|
||||
trucsdown += f.table_cell(1,{'style':'background-color:lightgrey;'})
|
||||
trucsdown += unicode(f.text('%s (%s)' % (line [0], getoutput("grep '^%s[^a-zA-Z]' /etc/autostatus/hosts | cut -d ' ' -f 5-" % line [0])) ), "iso-8859-15")
|
||||
trucsdown += unicode(f.text('%s (%s)' % (line [0], getoutput("grep '^%s[^a-zA-Z]' /usr/scripts/var/autostatus/hosts | cut -d ' ' -f 5-" % line [0])) ), "iso-8859-15")
|
||||
trucsdown += f.table_cell(0)
|
||||
# nombre de non réponse au ping
|
||||
if int(line[1]) > 2 :
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue