summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTriatmoko2011-11-18 22:15:40 +0100
committerTriatmoko2011-11-18 22:15:40 +0100
commit7743b3e86e67d8b0dadfcefe666cb9cffe751c47 (patch)
tree80e8a53d4b32a4e179595cd2cb505f5f9be889e6
parentchange a name for nagios (diff)
downloadgsm-selftest-7743b3e86e67d8b0dadfcefe666cb9cffe751c47.tar.gz
gsm-selftest-7743b3e86e67d8b0dadfcefe666cb9cffe751c47.tar.xz
gsm-selftest-7743b3e86e67d8b0dadfcefe666cb9cffe751c47.zip
final for nagios up and running
-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