diff --git a/pandora_server/ChangeLog b/pandora_server/ChangeLog index 909577456f..9a81fa0199 100644 --- a/pandora_server/ChangeLog +++ b/pandora_server/ChangeLog @@ -1,3 +1,9 @@ +2013-01-09 Juan Manuel Ramon + + * lib/PandoraFMS/PredictionServer.pm: Fixed prediction modules. + + Bug id: #3599200 + 2013-01-08 Miguel de Dios * util/pandora_db.pl: fixed the SQL query for the checking modules diff --git a/pandora_server/lib/PandoraFMS/PredictionServer.pm b/pandora_server/lib/PandoraFMS/PredictionServer.pm index d1807a9060..ad0124851c 100644 --- a/pandora_server/lib/PandoraFMS/PredictionServer.pm +++ b/pandora_server/lib/PandoraFMS/PredictionServer.pm @@ -188,7 +188,7 @@ sub exec_prediction_module ($$$$) { } # Get a full hash for target agent_module record reference ($target_module) - my $target_module = get_db_single_row ($dbh, 'SELECT * FROM tagente_modulo WHERE id_agente_modulo = ?', $agent_module->{'prediction_module'}); + my $target_module = get_db_single_row ($dbh, 'SELECT * FROM tagente_modulo WHERE id_agente_modulo = ?', $agent_module->{'custom_integer_1'}); return unless defined $target_module; # Prediction mode explanation