From d9e89bc3588e57d48d52677592b4f18314467989 Mon Sep 17 00:00:00 2001
From: Denis GERMAIN
Date: Sun, 4 Dec 2016 12:25:53 +0100
Subject: [PATCH] Small tab vs space issue. All spaces now
---
check_rhcs/check_rhcs.py | 22 +++++++++++-----------
1 file changed, 11 insertions(+), 11 deletions(-)
diff --git a/check_rhcs/check_rhcs.py b/check_rhcs/check_rhcs.py
index 0c6f661..66fd565 100644
--- a/check_rhcs/check_rhcs.py
+++ b/check_rhcs/check_rhcs.py
@@ -156,18 +156,18 @@ def main():
# Now we find the status of the local node from clustat.
# We only care about the local state since this way we can tie the alert to the host.
nodeStates = getLocalNodeState(dom)
- if nodeStates == {}:
+ if nodeStates == {}:
print "UNKNOWN: Local node informations couldn't be found!"
- sys.exit(3)
- if nodeStates['state'] != "1":
- print "WARNING: Local node state is offline!"
- sys.exit(1)
- elif nodeStates['rgmanager'] != "1":
- print "CRITICAL: RGManager service not running on " + nodeStates['name'] + "!"
- sys.exit(2)
- else:
- print "OK: Cluster node " + nodeStates['name'] + " is online and cluster is quorate."
- sys.exit(0)
+ sys.exit(3)
+ if nodeStates['state'] != "1":
+ print "WARNING: Local node state is offline!"
+ sys.exit(1)
+ elif nodeStates['rgmanager'] != "1":
+ print "CRITICAL: RGManager service not running on " + nodeStates['name'] + "!"
+ sys.exit(2)
+ else:
+ print "OK: Cluster node " + nodeStates['name'] + " is online and cluster is quorate."
+ sys.exit(0)
elif typeCheck == 'service':
serviceState = getServiceState(dom, serviceName)