Une borne qui n'a plus de ssh est consideree comme down...
darcs-hash:20051114211941-d1718-b6fe9ba6d6e6e6dfd8aedcb2701dad538919b81e.gz
This commit is contained in:
parent
d30c547306
commit
2b3e8bb247
1 changed files with 1 additions and 1 deletions
|
@ -35,7 +35,7 @@ for b in bornes:
|
||||||
# Est-ce un hotspot ?
|
# Est-ce un hotspot ?
|
||||||
hotspot = "<nvram>crans_hotspot=1" in b.info() and 1 or 0
|
hotspot = "<nvram>crans_hotspot=1" in b.info() and 1 or 0
|
||||||
# Est-ce que la borne est up ?
|
# Est-ce que la borne est up ?
|
||||||
if os.system("/usr/sbin/fping -q %s" % b.nom()) == 0:
|
if os.system("nmap -p 22 -sS %s | grep -E -q '22/tcp (filtered|open)'" % b.nom()) == 0:
|
||||||
up = 1
|
up = 1
|
||||||
else:
|
else:
|
||||||
up = 0
|
up = 0
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue