summaryrefslogtreecommitdiffstats
path: root/plugins/check_vol_server.py
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/check_vol_server.py')
-rwxr-xr-xplugins/check_vol_server.py9
1 files changed, 8 insertions, 1 deletions
diff --git a/plugins/check_vol_server.py b/plugins/check_vol_server.py
index f780ba8..8e42126 100755
--- a/plugins/check_vol_server.py
+++ b/plugins/check_vol_server.py
@@ -42,6 +42,10 @@ def _getVolQuotaStatusNRPECommand(args):
return ("check_vol_quota_status -a " + args.volume)
+def _getVolSelfHealStatusNRPECommand(args):
+ return ("check_vol_heal_status -a " + args.volume)
+
+
def _getNRPEBaseCmd(host):
return NRPE_PATH + " -H " + host + " -c "
@@ -134,6 +138,8 @@ def showVolumeOutput(args):
command = _getVolUtilizationNRPECommand(args)
elif args.option == 'quota':
return _getVolumeQuotaStatusOutput(args)
+ elif args.option == 'self-heal':
+ command = _getVolSelfHealStatusNRPECommand(args)
return _executeRandomHost(command)
@@ -167,7 +173,8 @@ def parse_input():
help='the volume option to check',
choices=['utilization',
'status',
- 'quota'])
+ 'quota',
+ 'self-heal'])
args = parser.parse_args()
if args.critical <= args.warning:
print "UNKNOWN:Critical must be greater than Warning."