1
0
mirror of https://github.com/opinkerfi/nagios-plugins.git synced 2024-09-28 16:33:46 +02:00

Small tab vs space issue. All spaces now

This commit is contained in:
Denis GERMAIN 2016-12-04 12:25:53 +01:00
parent fbd1392ca7
commit d9e89bc358

View File

@ -156,18 +156,18 @@ def main():
# Now we find the status of the local node from clustat. # 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. # We only care about the local state since this way we can tie the alert to the host.
nodeStates = getLocalNodeState(dom) nodeStates = getLocalNodeState(dom)
if nodeStates == {}: if nodeStates == {}:
print "UNKNOWN: Local node informations couldn't be found!" print "UNKNOWN: Local node informations couldn't be found!"
sys.exit(3) sys.exit(3)
if nodeStates['state'] != "1": if nodeStates['state'] != "1":
print "WARNING: Local node state is offline!" print "WARNING: Local node state is offline!"
sys.exit(1) sys.exit(1)
elif nodeStates['rgmanager'] != "1": elif nodeStates['rgmanager'] != "1":
print "CRITICAL: RGManager service not running on " + nodeStates['name'] + "!" print "CRITICAL: RGManager service not running on " + nodeStates['name'] + "!"
sys.exit(2) sys.exit(2)
else: else:
print "OK: Cluster node " + nodeStates['name'] + " is online and cluster is quorate." print "OK: Cluster node " + nodeStates['name'] + " is online and cluster is quorate."
sys.exit(0) sys.exit(0)
elif typeCheck == 'service': elif typeCheck == 'service':
serviceState = getServiceState(dom, serviceName) serviceState = getServiceState(dom, serviceName)