Set locale for lvs call
This commit is contained in:
parent
ec05fd3935
commit
8460dd4ab2
1 changed files with 1 additions and 0 deletions
|
@ -6,6 +6,7 @@ my $warn = 92.0;
|
||||||
my $crit = 96.0;
|
my $crit = 96.0;
|
||||||
|
|
||||||
sub get_thinpools {
|
sub get_thinpools {
|
||||||
|
$ENV{'LC_ALL'} = 'C'; # Set locale for lvs call
|
||||||
my @lvsoutput = `lvs --noheadings --separator : -o lv_attr,lv_name,data_percent,metadata_percent`;
|
my @lvsoutput = `lvs --noheadings --separator : -o lv_attr,lv_name,data_percent,metadata_percent`;
|
||||||
my @thinpools;
|
my @thinpools;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue