From 7743b3e86e67d8b0dadfcefe666cb9cffe751c47 Mon Sep 17 00:00:00 2001 From: Triatmoko Date: Fri, 18 Nov 2011 22:15:40 +0100 Subject: final for nagios up and running --- Code/Server-Code/truthtableClass.py | 7 +++++-- 1 file 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 -- cgit v1.2.3-55-g7522