Skip to content
Snippets Groups Projects
Commit 1455b8b2 authored by Fulvio Galeazzi's avatar Fulvio Galeazzi
Browse files

2019-02-05: FG; Try to fix error with broken pipe.

parent 81b45ab2
No related branches found
No related tags found
No related merge requests found
......@@ -183,7 +183,7 @@ if ($sumDo > 1) {
# Fetch the "pg dump" data and put it in an array
if ($doOsdFullth + $doOsdNearFullth + $doOsdBackfillFullth) {
my @_pgdata = `$cephCmd osd dump | head -20 2> /dev/null`;
my @_pgdata = `$cephCmd osd dump | tail -n +1 | head -20 2> /dev/null`;
chomp @_pgdata;
foreach my $_pgline (@_pgdata) {
if ($doOsdFullth) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment