diff options
-rwxr-xr-x | plugins/check_cluster_vol_usage.py | 5 | ||||
-rw-r--r-- | plugins/livestatus.py | 2 |
2 files changed, 3 insertions, 4 deletions
diff --git a/plugins/check_cluster_vol_usage.py b/plugins/check_cluster_vol_usage.py index 2225634..59c2335 100755 --- a/plugins/check_cluster_vol_usage.py +++ b/plugins/check_cluster_vol_usage.py @@ -59,8 +59,7 @@ def checkVolumePerfData(clusterName): # Main method if __name__ == "__main__": - parser = ArgumentParser(description= - "Calculate the aggregate " + parser = ArgumentParser(description="Calculate the aggregate " "capacity usage in cluster") parser.add_argument('-w', '--warning', action='store', @@ -91,7 +90,7 @@ if __name__ == "__main__": else: warn = int((args.warn * avail) / 100.0) crit = int((args.crit * avail) / 100.0) - usedpercent = int((used/avail) * 100.0) + usedpercent = int((used / avail) * 100.0) if (usedpercent >= args.warn): statusstr = "WARNING" exitstatus = 1 diff --git a/plugins/livestatus.py b/plugins/livestatus.py index e2f4f03..f0b3bb8 100644 --- a/plugins/livestatus.py +++ b/plugins/livestatus.py @@ -21,7 +21,7 @@ # import socket -from plugins import constants +import constants _socketPath = constants.LIVESTATUS_SOCKETPATH |