|
|
@ -50,7 +50,14 @@ log = get_logger(log_level=log_level) |
|
|
|
|
|
|
|
|
|
|
|
all_hosts = i2phost.objects.all() |
|
|
|
all_hosts = i2phost.objects.all() |
|
|
|
|
|
|
|
|
|
|
|
S = samclasses.BaseSession('127.0.0.1:7656') |
|
|
|
# determine SAM interface address |
|
|
|
|
|
|
|
if sam_addr in config: |
|
|
|
|
|
|
|
sam_addr = config['sam_addr'] |
|
|
|
|
|
|
|
else: |
|
|
|
|
|
|
|
log.warning('SAM address isn\'t specified in config, falling back to localhost') |
|
|
|
|
|
|
|
sam_addr = '127.0.0.1:7656' |
|
|
|
|
|
|
|
S = samclasses.BaseSession(sam_addr) |
|
|
|
|
|
|
|
|
|
|
|
log.info('starting check') |
|
|
|
log.info('starting check') |
|
|
|
for host in all_hosts: |
|
|
|
for host in all_hosts: |
|
|
|
log.debug('testing %s', host.name) |
|
|
|
log.debug('testing %s', host.name) |
|
|
|