+ enhance fujitsu eternus dx
This commit is contained in:
parent
9c92f2961c
commit
481fe18238
|
@ -196,8 +196,8 @@ sub manage_selection {
|
|||
$self->{cpu}->{$cpu_name} = { display => $cpu_name, usage => $cpu_value };
|
||||
}
|
||||
|
||||
if (defined($self->{option_results}->{no_component}) && scalar(keys %{$self->{cpu}}) <= 0) {
|
||||
$self->{output}->output_add(severity => $self->{no_components},
|
||||
if (scalar(keys %{$self->{cpu}}) <= 0) {
|
||||
$self->{output}->output_add(severity => defined($self->{no_components}) ? $self->{no_components} : 'unknown',
|
||||
short_msg => 'No components are checked.');
|
||||
}
|
||||
}
|
||||
|
@ -247,8 +247,7 @@ Command options (Default: 'performance -type cm').
|
|||
|
||||
=item B<--no-component>
|
||||
|
||||
Return an error if no compenents are checked.
|
||||
If total (with skipped) is 0. (Default: 'critical' returns).
|
||||
Set the threshold where no components (Default: 'unknown' returns).
|
||||
|
||||
=item B<--filter-name>
|
||||
|
||||
|
|
|
@ -227,8 +227,8 @@ sub manage_selection {
|
|||
};
|
||||
}
|
||||
|
||||
if (defined($self->{option_results}->{no_component}) && scalar(keys %{$self->{port}}) <= 0) {
|
||||
$self->{output}->output_add(severity => $self->{no_components},
|
||||
if (scalar(keys %{$self->{port}}) <= 0) {
|
||||
$self->{output}->output_add(severity => defined($self->{no_components}) ? $self->{no_components} : 'unknown',
|
||||
short_msg => 'No components are checked.');
|
||||
}
|
||||
}
|
||||
|
@ -278,8 +278,7 @@ Command options (Default: 'performance -type port').
|
|||
|
||||
=item B<--no-component>
|
||||
|
||||
Return an error if no compenents are checked.
|
||||
If total (with skipped) is 0. (Default: 'critical' returns).
|
||||
Set the threshold where no components (Default: 'unknown' returns).
|
||||
|
||||
=item B<--filter-name>
|
||||
|
||||
|
|
|
@ -294,8 +294,8 @@ sub manage_selection {
|
|||
display => $raid_name };
|
||||
}
|
||||
|
||||
if (defined($self->{option_results}->{no_component}) && scalar(keys %{$self->{rg}}) <= 0) {
|
||||
$self->{output}->output_add(severity => $self->{no_components},
|
||||
if (scalar(keys %{$self->{rg}}) <= 0) {
|
||||
$self->{output}->output_add(severity => defined($self->{no_components}) ? $self->{no_components} : 'unknown',
|
||||
short_msg => 'No components are checked.');
|
||||
}
|
||||
}
|
||||
|
@ -373,8 +373,7 @@ Example: --threshold-overload='rg,CRITICAL,^(?!(Available|Spare)$)'
|
|||
|
||||
=item B<--no-component>
|
||||
|
||||
Return an error if no compenents are checked.
|
||||
If total (with skipped) is 0. (Default: 'critical' returns).
|
||||
Set the threshold where no components (Default: 'unknown' returns).
|
||||
|
||||
=item B<--filter-name>
|
||||
|
||||
|
|
|
@ -290,8 +290,8 @@ sub manage_selection {
|
|||
};
|
||||
}
|
||||
|
||||
if (defined($self->{option_results}->{no_component}) && scalar(keys %{$self->{vol}}) <= 0) {
|
||||
$self->{output}->output_add(severity => $self->{no_components},
|
||||
if (scalar(keys %{$self->{vol}}) <= 0) {
|
||||
$self->{output}->output_add(severity => defined($self->{no_components}) ? $self->{no_components} : 'unknown',
|
||||
short_msg => 'No components are checked.');
|
||||
}
|
||||
}
|
||||
|
@ -341,8 +341,7 @@ Command options (Default: 'performance -type host-io').
|
|||
|
||||
=item B<--no-component>
|
||||
|
||||
Return an error if no compenents are checked.
|
||||
If total (with skipped) is 0. (Default: 'critical' returns).
|
||||
Set the threshold where no components (Default: 'unknown' returns).
|
||||
|
||||
=item B<--filter-name>
|
||||
|
||||
|
|
Loading…
Reference in New Issue