This commit is contained in:
qgarnier 2014-07-16 22:07:43 +02:00
parent 280cf69bd5
commit 874380f77d
2 changed files with 5 additions and 5 deletions

View File

@ -107,7 +107,7 @@ sub check {
my $oid_end = $1 . '.' . $2; my $oid_end = $1 . '.' . $2;
next if ($present_map{$result->{$key}} ne 'present' && 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; push @oids_end, $oid_end;
@ -125,7 +125,7 @@ sub check {
my $fan_redundant = $result->{$oid_cpqHeFltTolFanRedundant . '.' . $_}; my $fan_redundant = $result->{$oid_cpqHeFltTolFanRedundant . '.' . $_};
my $fan_redundantpartner = $result->{$oid_cpqHeFltTolFanRedundantPartner . '.' . $_}; 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->{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].", $self->{output}->output_add(long_msg => sprintf("fan %d status is %s, speed is %s [chassis: %s, location: %s, redundance: %s, redundant partner: %s].",

View File

@ -283,13 +283,13 @@ Can be: 'cpu', 'psu', 'pc', 'fan', 'network', 'temperature', 'storage'.
=item B<--exclude> =item B<--exclude>
Exclude some parts (comma seperated list) (Example: --exclude=fans,modules) Exclude some parts (comma seperated list) (Example: --exclude=fan,cpu)
Can also exclude specific instance: --exclude=fans#1.2#,lnic#1#,psus Can also exclude specific instance: --exclude=fan#1.2#,lnic#1#,cpu
=item B<--absent-problem> =item B<--absent-problem>
Return an error if an entity is not 'present' (default is skipping) (comma seperated list) 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> =item B<--no-component>