From 2b68fdc23b2d221428c07133e707340a7dcbdfff Mon Sep 17 00:00:00 2001 From: Ramon Novoa Date: Thu, 2 Oct 2014 20:14:22 +0200 Subject: [PATCH] Fixed interface names. --- pandora_server/util/recon_scripts/snmp-recon.pl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pandora_server/util/recon_scripts/snmp-recon.pl b/pandora_server/util/recon_scripts/snmp-recon.pl index 5a9def53f9..60573a2369 100755 --- a/pandora_server/util/recon_scripts/snmp-recon.pl +++ b/pandora_server/util/recon_scripts/snmp-recon.pl @@ -797,8 +797,8 @@ sub connect_pandora_agents($$$$) { return unless defined($agent_2); # Check wether the modules exists. - my $module_name_1 = safe_input($if_1 eq '' ? 'ping' : "if_$if_1"); - my $module_name_2 = safe_input($if_2 eq '' ? 'ping' : "if_$if_2"); + my $module_name_1 = safe_input($if_1 eq '' ? 'ping' : "ifOperStatus_$if_1"); + my $module_name_2 = safe_input($if_2 eq '' ? 'ping' : "ifOperStatus_$if_2"); my $module_id_1 = get_agent_module_id($DBH, $module_name_1, $agent_1->{'id_agente'}); if ($module_id_1 <= 0) { message("ERROR: Module " . safe_output($module_name_1) . " does not exist for agent $dev_1.");