set correct state when no controller
@@ -112,6 +112,7 @@ def schedule_job_reinvestigation(func):
candidates.append(endpoint)
if len(candidates) > 0:
random.shuffle(candidates)
+ if func.s.sdnc:
trigger_reinvestigation(candidates)
@@ -736,6 +737,7 @@ class Monitor(object):
for endpoint in self.s.endpoints:
if not endpoint.ignore:
+ if self.s.sdnc:
if endpoint.state == 'unknown':
endpoint.p_next_state = 'mirror'
endpoint.queue()
@@ -756,6 +758,8 @@ class Monitor(object):
self.s.investigations -= 1
endpoint.p_prev_states.append(
(endpoint.state, int(time.time())))
+ else:
+ endpoint.known()
return
def get_q_item(self):
