summaryrefslogtreecommitdiffstats
path: root/plugins/check_volume_status.py
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/check_volume_status.py')
-rwxr-xr-xplugins/check_volume_status.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/plugins/check_volume_status.py b/plugins/check_volume_status.py
index 4812e99..77168f3 100755
--- a/plugins/check_volume_status.py
+++ b/plugins/check_volume_status.py
@@ -34,11 +34,13 @@ def getVolumeStatus(args):
elif volumes[args.volume]["volumeStatus"] == (glustercli.
VolumeStatus.ONLINE):
exitstatus = utils.PluginStatusCode.OK
- message = "OK: Volume is up"
+ message = "OK: Volume : %s type - Volume is up" % \
+ (volumes[args.volume]["volumeType"])
elif volumes[args.volume]["volumeStatus"] == (glustercli.
VolumeStatus.OFFLINE):
exitstatus = utils.PluginStatusCode.CRITICAL
- message = "CRITICAL: Volume is stopped"
+ message = "CRITICAL: Volume : %s type is stopped" % \
+ (volumes[args.volume]["volumeType"])
except glustercli.GlusterCmdFailedException as e:
out = ("UNKNOWN: Command execution failed %s" % e.message)
return utils.PluginStatusCode.UNKNOWN, out