From b7b415d2822bafb6f7081cef4f78b201843856e2 Mon Sep 17 00:00:00 2001 From: garnier-quentin Date: Tue, 18 Oct 2016 15:42:12 +0200 Subject: [PATCH] + Fix cisco --- centreon/common/cisco/standard/snmp/mode/environment.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/centreon/common/cisco/standard/snmp/mode/environment.pm b/centreon/common/cisco/standard/snmp/mode/environment.pm index eeedf96ba..bbc007155 100644 --- a/centreon/common/cisco/standard/snmp/mode/environment.pm +++ b/centreon/common/cisco/standard/snmp/mode/environment.pm @@ -122,7 +122,7 @@ sub snmp_execute { $self->{snmp} = $options{snmp}; push @{$self->{request}}, { oid => $oid_entPhysicalDescr }, { oid => $oid_ciscoEnvMonPresent }; - $self->{results} = $self->{snmp}->get_multiple_table(oids => ); + $self->{results} = $self->{snmp}->get_multiple_table(oids => $self->{request}); $self->{output}->output_add(long_msg => sprintf("Environment type: %s", defined($self->{results}->{$oid_ciscoEnvMonPresent}->{$oid_ciscoEnvMonPresent . '.0'}) && defined($map_type_mon{$self->{results}->{$oid_ciscoEnvMonPresent}->{$oid_ciscoEnvMonPresent . '.0'}} ) ? $map_type_mon{$self->{results}->{$oid_ciscoEnvMonPresent}->{$oid_ciscoEnvMonPresent . '.0'}} : 'unknown'));