From 6759965ca3df5aca51c248a016688646e63497fc Mon Sep 17 00:00:00 2001 From: Darshan N Date: Thu, 2 Jul 2015 12:40:49 +0530 Subject: nagios-addons: added disperse vol details to discover_volumes plugin This patch adds disperse volume related details like redundancy count and disperse count to discover_volumes plugin. It is needed to monitor status of disperse volume. Change-Id: I1c5d7d85e6fe7b0efdcd75fd562507dd1f9ce906 Bug-Url: https://bugzilla.redhat.com/1235651 Signed-off-by: Darshan N Reviewed-on: http://review.gluster.org/11500 Reviewed-by: Ramesh N Reviewed-by: Sahina Bose --- plugins/discover_volumes.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'plugins') diff --git a/plugins/discover_volumes.py b/plugins/discover_volumes.py index c175247..e8633e0 100755 --- a/plugins/discover_volumes.py +++ b/plugins/discover_volumes.py @@ -75,6 +75,8 @@ def discoverVolumes(volumeName, list): volDict['replicaCount'] = volume['replicaCount'] volDict['bricks'] = [] + volDict['disperseCount'] = volume['disperseCount'] + volDict['redundancyCount'] = volume['redundancyCount'] for brick in volume['bricksInfo']: brickproplist = brick['name'].split(':') volDict['bricks'].append({'brickaddress': brickproplist[0], -- cgit