summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Code/Server-Code/truthtableClass.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/Code/Server-Code/truthtableClass.py b/Code/Server-Code/truthtableClass.py
index e29af3f..b886922 100644
--- a/Code/Server-Code/truthtableClass.py
+++ b/Code/Server-Code/truthtableClass.py
@@ -43,7 +43,7 @@ class trueTable:
if str(item[1]) != 'OK':
update = True
else:
- update = False
+ update = None
return update
def initNagiosResult(self):
@@ -65,8 +65,11 @@ class trueTable:
except:
continue
self.deviceStatus.append([device,'OK'])
- else:
+
+ elif self.findStatusInList(device) == False:
self.deviceStatus.append([device,'OK'])
+ else:
+ continue
elif int(result[2]) == 486:
found = False