mirror of
https://github.com/centreon/centreon-plugins.git
synced 2025-07-24 06:05:17 +02:00
+ Fix #462
This commit is contained in:
parent
c62ac8135d
commit
af59e89b64
@ -154,9 +154,9 @@ sub manage_selection {
|
|||||||
my $result = $options{snmp}->map_instance(mapping => $mapping, results => $self->{results}, instance => $instance);
|
my $result = $options{snmp}->map_instance(mapping => $mapping, results => $self->{results}, instance => $instance);
|
||||||
my $name = defined($result->{lgpPduEntryUsrLabel}) && $result->{lgpPduEntryUsrLabel} ne '' ?
|
my $name = defined($result->{lgpPduEntryUsrLabel}) && $result->{lgpPduEntryUsrLabel} ne '' ?
|
||||||
$result->{lgpPduEntryUsrLabel} : $instance;
|
$result->{lgpPduEntryUsrLabel} : $instance;
|
||||||
my $status = 'unknow';
|
my $status = 'unknown';
|
||||||
foreach (keys %bitmap_status) {
|
foreach (keys %bitmap_status) {
|
||||||
if (($result->{lgpPduEntrySysStatus} & $_)) {
|
if ((int($result->{lgpPduEntrySysStatus}) & $_)) {
|
||||||
$status = $bitmap_status{$_};
|
$status = $bitmap_status{$_};
|
||||||
last;
|
last;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user