2011-09-28 Dario Rodriguez <dario.rodriguez@artica.es>

* util/recon_scripts/snmpdevices.pl: Fixed a bug which creates duplicated
	modules when running the script.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@5016 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
darode 2011-09-28 07:59:03 +00:00
parent 20741b2cd3
commit 6663e03dc1
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2011-09-28 Dario Rodriguez <dario.rodriguez@artica.es>
* util/recon_scripts/snmpdevices.pl: Fixed a bug which creates duplicated
modules when running the script.
2011-09-27 Dario Rodriguez <dario.rodriguez@artica.es>
* util/pandora_manage.pl: Changed way to create and event now is possible

View File

@ -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);