From 2261f7a7f068153d04beeebff3869fc15f5e83d0 Mon Sep 17 00:00:00 2001 From: garnier-quentin Date: Tue, 16 May 2017 11:41:15 +0200 Subject: [PATCH] + Fix modbus reading --- centreon-plugins/apps/protocols/modbus/mode/numericvalue.pm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/centreon-plugins/apps/protocols/modbus/mode/numericvalue.pm b/centreon-plugins/apps/protocols/modbus/mode/numericvalue.pm index 7f05cc25f..625406224 100644 --- a/centreon-plugins/apps/protocols/modbus/mode/numericvalue.pm +++ b/centreon-plugins/apps/protocols/modbus/mode/numericvalue.pm @@ -247,7 +247,8 @@ sub manage_selection { foreach my $id (keys %{$config_data->{selection}}) { next if (!defined($config_data->{selection}->{$id}->{address})); my $results = $options{custom}->read_objects(address => $config_data->{selection}->{$id}->{address}, - unit => $config_data->{selection}->{$id}->{unit}, quantity => $config_data->{selection}->{$id}->{quantity}); + unit => $config_data->{selection}->{$id}->{unit}, quantity => $config_data->{selection}->{$id}->{quantity}, + type => $config_data->{selection}->{$id}->{type}); my $i = 0; my $extra_num = 0; if (scalar(@$results) > 1) {