1
0
mirror of https://github.com/opinkerfi/nagios-plugins.git synced 2024-11-05 01:53:44 +01: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.
# 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)