diff --git a/pandora_server/ChangeLog b/pandora_server/ChangeLog index e90fffdecb..d06764632f 100644 --- a/pandora_server/ChangeLog +++ b/pandora_server/ChangeLog @@ -1,3 +1,8 @@ +2011-09-28 Dario Rodriguez + + * util/recon_scripts/snmpdevices.pl: Fixed a bug which creates duplicated + modules when running the script. + 2011-09-27 Dario Rodriguez * util/pandora_manage.pl: Changed way to create and event now is possible diff --git a/pandora_server/util/recon_scripts/snmpdevices.pl b/pandora_server/util/recon_scripts/snmpdevices.pl index 91c925c490..d1c87cf46d 100755 --- a/pandora_server/util/recon_scripts/snmpdevices.pl +++ b/pandora_server/util/recon_scripts/snmpdevices.pl @@ -107,7 +107,7 @@ sub process_module_snmp ($$$$$$$$$){ # id_modulo = 2 for snmp modules $parameters{'id_modulo'} = 2; - my $module_id = get_agent_module_id($dbh, $module_name, $parameters{'id_agente'}); + my $module_id = get_agent_module_id($dbh, $parameters{'nombre'}, $parameters{'id_agente'}); if($module_id == -1) { pandora_create_module_from_hash ($conf, \%parameters, $dbh);