From 7b5acdf11e67e237898ebae77f7b66b5d8c08d19 Mon Sep 17 00:00:00 2001 From: Daniel Berteaud Date: Fri, 10 Jul 2015 12:34:26 +0200 Subject: [PATCH] Fix GlusterFS brick count on 3.7.x There's a news RDMA column in gluster vol status --- zabbix_scripts/check_gluster_sudo | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/zabbix_scripts/check_gluster_sudo b/zabbix_scripts/check_gluster_sudo index 091a06a..3ca41b4 100644 --- a/zabbix_scripts/check_gluster_sudo +++ b/zabbix_scripts/check_gluster_sudo @@ -65,10 +65,10 @@ if ($what eq 'volume'){ } foreach my $line (@volinfo){ # Check that all bricks are online - if ($line =~ m/^Brick\ ([\w\.]+:\/[\w\.\/]+)\s+\d+\s+([A-Z])/){ + if ($line =~ m/^Brick\ ([\w\.]+:\/[\w\.\/]+)\s+\d+(\s+\d+)?\s+([A-Z])/){ $bricksfound++; - if ($2 ne 'Y') { - print "CRITICAL: brick status (reported $2 on $1)"; + if ($3 ne 'Y') { + print "CRITICAL: brick status (reported $3 on $1)"; exit 1; } }