Fix #5421
This commit is contained in:
parent
b8389c6caf
commit
e8641a04da
|
@ -107,7 +107,7 @@ sub check {
|
|||
my $oid_end = $1 . '.' . $2;
|
||||
|
||||
next if ($present_map{$result->{$key}} ne 'present' &&
|
||||
$self->absent_problem(section => 'fans', instance => $1 . '.' . $2));
|
||||
$self->absent_problem(section => 'fan', instance => $1 . '.' . $2));
|
||||
|
||||
|
||||
push @oids_end, $oid_end;
|
||||
|
@ -125,7 +125,7 @@ sub check {
|
|||
my $fan_redundant = $result->{$oid_cpqHeFltTolFanRedundant . '.' . $_};
|
||||
my $fan_redundantpartner = $result->{$oid_cpqHeFltTolFanRedundantPartner . '.' . $_};
|
||||
|
||||
next if ($self->check_exclude(section => 'fans', instance => $fan_chassis . '.' . $fan_index));
|
||||
next if ($self->check_exclude(section => 'fan', instance => $fan_chassis . '.' . $fan_index));
|
||||
$self->{components}->{fan}->{total}++;
|
||||
|
||||
$self->{output}->output_add(long_msg => sprintf("fan %d status is %s, speed is %s [chassis: %s, location: %s, redundance: %s, redundant partner: %s].",
|
||||
|
|
|
@ -283,13 +283,13 @@ Can be: 'cpu', 'psu', 'pc', 'fan', 'network', 'temperature', 'storage'.
|
|||
|
||||
=item B<--exclude>
|
||||
|
||||
Exclude some parts (comma seperated list) (Example: --exclude=fans,modules)
|
||||
Can also exclude specific instance: --exclude=fans#1.2#,lnic#1#,psus
|
||||
Exclude some parts (comma seperated list) (Example: --exclude=fan,cpu)
|
||||
Can also exclude specific instance: --exclude=fan#1.2#,lnic#1#,cpu
|
||||
|
||||
=item B<--absent-problem>
|
||||
|
||||
Return an error if an entity is not 'present' (default is skipping) (comma seperated list)
|
||||
Can be specific or global: --absent-problem=fans#1.2#,psus
|
||||
Can be specific or global: --absent-problem=fan#1.2#,cpu
|
||||
|
||||
=item B<--no-component>
|
||||
|
||||
|
|
Loading…
Reference in New Issue