Optimisation
darcs-hash:20070919141429-72cb0-667c84a9c4e0193e9fdce3d1904fadbbed25c4cd.gz
This commit is contained in:
parent
05697b470d
commit
5b252cf305
1 changed files with 2 additions and 2 deletions
|
@ -10,8 +10,6 @@ from ldap_crans import crans_ldap
|
||||||
from config import NETs
|
from config import NETs
|
||||||
from iptools import AddrInNet
|
from iptools import AddrInNet
|
||||||
|
|
||||||
ips = [ x.ip() for x in crans_ldap().search('ip=*')['machine'] ]
|
|
||||||
|
|
||||||
try :
|
try :
|
||||||
arg = sys.argv[1]
|
arg = sys.argv[1]
|
||||||
except :
|
except :
|
||||||
|
@ -30,6 +28,8 @@ if arg == "config" :
|
||||||
print "%s.critical 98" % nom
|
print "%s.critical 98" % nom
|
||||||
|
|
||||||
else :
|
else :
|
||||||
|
ips = [ x.ip() for x in crans_ldap().search('ip=*')['machine'] ]
|
||||||
|
|
||||||
for subnet in NETs :
|
for subnet in NETs :
|
||||||
total = 0
|
total = 0
|
||||||
for net in NETs[subnet]:
|
for net in NETs[subnet]:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue