mirror of
https://github.com/centreon/centreon-plugins.git
synced 2025-07-27 07:34:35 +02:00
+ fix fujitsu cpu
This commit is contained in:
parent
32f3c13b0f
commit
429a6108a0
@ -173,6 +173,7 @@ sub manage_selection {
|
|||||||
command => $self->{option_results}->{command},
|
command => $self->{option_results}->{command},
|
||||||
command_path => $self->{option_results}->{command_path},
|
command_path => $self->{option_results}->{command_path},
|
||||||
command_options => $self->{option_results}->{command_options});
|
command_options => $self->{option_results}->{command_options});
|
||||||
|
# Can have 4 columns also.
|
||||||
|
|
||||||
#Location Busy Rate(%) Copy Residual Quantity(MB)
|
#Location Busy Rate(%) Copy Residual Quantity(MB)
|
||||||
#--------------------- ------------ --------------------------
|
#--------------------- ------------ --------------------------
|
||||||
@ -185,7 +186,7 @@ sub manage_selection {
|
|||||||
|
|
||||||
$self->{cpu} = {};
|
$self->{cpu} = {};
|
||||||
foreach (split /\n/, $stdout) {
|
foreach (split /\n/, $stdout) {
|
||||||
next if ($_ !~ /^(.*?)\s+(\d+)\s+\S+$/);
|
next if ($_ !~ /^(CM.*?)\s{2,}(\d+)\s+\S+/);
|
||||||
my ($cpu_name, $cpu_value) = ($1, $2);
|
my ($cpu_name, $cpu_value) = ($1, $2);
|
||||||
|
|
||||||
if (defined($self->{option_results}->{filter_name}) && $self->{option_results}->{filter_name} ne '' &&
|
if (defined($self->{option_results}->{filter_name}) && $self->{option_results}->{filter_name} ne '' &&
|
||||||
|
Loading…
x
Reference in New Issue
Block a user