diff --git a/hardware/server/hpproliant/mode/components/fan.pm b/hardware/server/hpproliant/mode/components/fan.pm index 12ba019d5..6c9b609f1 100644 --- a/hardware/server/hpproliant/mode/components/fan.pm +++ b/hardware/server/hpproliant/mode/components/fan.pm @@ -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].", diff --git a/hardware/server/hpproliant/mode/hardware.pm b/hardware/server/hpproliant/mode/hardware.pm index 1aa9104d3..dbba7abcf 100644 --- a/hardware/server/hpproliant/mode/hardware.pm +++ b/hardware/server/hpproliant/mode/hardware.pm @@ -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>