summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorSuren A. Chilingaryan <csa@suren.me>2018-04-16 10:52:27 +0200
committerSuren A. Chilingaryan <csa@suren.me>2018-04-16 10:52:27 +0200
commit3155c744b3924e68213e542b9a22d858bb64cf83 (patch)
tree097457f18cbcda0008d01c865255e92c1a3911a7 /scripts
parentabea46eb8a3e05f6010247b526b5364ec312f2dc (diff)
downloadands-3155c744b3924e68213e542b9a22d858bb64cf83.tar.gz
ands-3155c744b3924e68213e542b9a22d858bb64cf83.tar.bz2
ands-3155c744b3924e68213e542b9a22d858bb64cf83.tar.xz
ands-3155c744b3924e68213e542b9a22d858bb64cf83.zip
Provision monitoring scripts on request
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/gluster.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/gluster.sh b/scripts/gluster.sh
index 07ca7f9..a3ff186 100755
--- a/scripts/gluster.sh
+++ b/scripts/gluster.sh
@@ -11,7 +11,7 @@ shift
function info {
vol=$1
- status=$(gluster volume info databases | grep -P 'Status' | awk '{ print $2 }' | tr -d '\r\n')
+ status=$(gluster volume info "$vol" | grep -P 'Status' | awk '{ print $2 }' | tr -d '\r\n')
bricks=$(gluster volume info "$vol" | grep -P 'Number of Bricks' | awk '{ print $NF }' | tr -d '\r\n')
avail=$(gluster volume status "$vol" detail | grep Brick | wc -l)
online=$(gluster volume status "$vol" detail | grep Online | grep Y | wc -l)