mirror of
https://github.com/centreon/centreon-plugins.git
synced 2025-07-23 21:55:16 +02:00
+ Fix #1509
This commit is contained in:
parent
31525f251b
commit
2084cef531
@ -57,7 +57,8 @@ sub snmp_execute {
|
||||
oids => [{ oid => $mapping->{branch_sensors}->{hwgste} }, { oid => $mapping->{branch_sensors}->{hwgste2} }]
|
||||
);
|
||||
$self->{branch} = 'hwgste';
|
||||
if (defined($self->{results}->{ $mapping->{branch_sensors}->{hwgste2} }) && scalar($self->{results}->{ $mapping->{branch_sensors}->{hwgste2} }) > 0) {
|
||||
if (defined($self->{results}->{ $mapping->{branch_sensors}->{hwgste2} }) &&
|
||||
scalar(keys %{$self->{results}->{ $mapping->{branch_sensors}->{hwgste2} }}) > 0) {
|
||||
$self->{branch} = 'hwgste2';
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user