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