diff --git a/Ceph/Script/cephHealth.pl b/Ceph/Script/cephHealth.pl index 036083e9ae35bc5bcffaea218341fc0f97587c94..eef443270fdaccf01b7e30f0685091f52cafd2ae 100755 --- a/Ceph/Script/cephHealth.pl +++ b/Ceph/Script/cephHealth.pl @@ -258,9 +258,17 @@ foreach my $_line (@_data) if ($_line =~ m/ (\d+) requests are blocked/) { $numSlowReq = $1; } + if ($_line =~ m/(\d+) slow ops/) { + $numSlowReq = $1; + } if ($_line =~ m/ (\d+) osds have slow requests/) { $numSlowOsd = $1; } + if ($_line =~ m/daemons \[(\S+)\] have slow ops/) { + my @slowOsds = (); + @slowOsds = split(/,/,$1); + $numSlowOsd = @slowOsds; + } if ($_line =~ m/ (\d+)\/(\d+) objects misplaced \(([-+]?[0-9]*\.?[0-9]+)\%\)/) { $objMisplaced = $1; $objMisplacedFrac = $3;