mirror of
https://github.com/centreon/centreon-plugins.git
synced 2025-07-23 21:55:16 +02:00
ref #647
This commit is contained in:
parent
9aa281a26d
commit
e9a2339040
@ -89,9 +89,9 @@ sub check {
|
|||||||
my ($phys_index, $loc_index) = ($1, $2);
|
my ($phys_index, $loc_index) = ($1, $2);
|
||||||
my $status = $self->{results}->{$oids{alaChasEntPhysFanStatus}}->{$key};
|
my $status = $self->{results}->{$oids{alaChasEntPhysFanStatus}}->{$key};
|
||||||
my $descr = defined($self->{results}->{entity}->{$oids{entPhysicalDescr} . '.' . $phys_index}) ?
|
my $descr = defined($self->{results}->{entity}->{$oids{entPhysicalDescr} . '.' . $phys_index}) ?
|
||||||
$self->{results}->{$oids{entPhysicalDescr}}->{$oids{entPhysicalDescr} . '.' . $phys_index} : 'unknown';
|
$self->{results}->{entity}->{$oids{entPhysicalDescr} . '.' . $phys_index} : 'unknown';
|
||||||
my $name = defined($self->{results}->{entity}->{$oids{entPhysicalName} . '.' . $phys_index}) ?
|
my $name = defined($self->{results}->{entity}->{$oids{entPhysicalName} . '.' . $phys_index}) ?
|
||||||
$self->{results}->{$oids{entPhysicalName}}->{$oids{entPhysicalName} . '.' . $phys_index} : 'unknown';
|
$self->{results}->{entity}->{$oids{entPhysicalName} . '.' . $phys_index} : 'unknown';
|
||||||
|
|
||||||
next if ($self->check_filter(section => 'fan', instance => $phys_index . '.' . $loc_index));
|
next if ($self->check_filter(section => 'fan', instance => $phys_index . '.' . $loc_index));
|
||||||
$self->{components}->{fan}->{total}++;
|
$self->{components}->{fan}->{total}++;
|
||||||
@ -110,4 +110,4 @@ sub check {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
1;
|
1;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user