mirror of
https://github.com/centreon/centreon-plugins.git
synced 2025-07-26 23:24:27 +02:00
fix socomec netvision snmp
This commit is contained in:
parent
96fe117c82
commit
6b4015f64b
@ -110,7 +110,8 @@ sub manage_selection {
|
|||||||
|
|
||||||
my $result = $options{snmp}->map_instance(mapping => $mapping, results => $snmp_result, instance => $instance);
|
my $result = $options{snmp}->map_instance(mapping => $mapping, results => $snmp_result, instance => $instance);
|
||||||
foreach (('current', 'voltage')) {
|
foreach (('current', 'voltage')) {
|
||||||
$result->{$_} = 0 if (defined($result->{$_}) && ($result->{$_} eq '' || $result->{$_} == -1 || $result->{$_} == 65535));
|
$result->{$_} = 0 if (defined($result->{$_}) && (
|
||||||
|
$result->{$_} eq '' || $result->{$_} == -1 || $result->{$_} == 65535 || $result->{$_} == 655350));
|
||||||
$result->{$_} *= 0.1;
|
$result->{$_} *= 0.1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user