From 1effa7b63fbedc38ffa893cac1f41df73f79ea5b Mon Sep 17 00:00:00 2001 From: juanmanuelr Date: Wed, 9 Jan 2013 10:37:20 +0000 Subject: [PATCH] 2013-01-09 Juan Manuel Ramon * lib/PandoraFMS/PredictionServer.pm: Fixed prediction modules. Bug id: #3599200 git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@7386 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f --- pandora_server/ChangeLog | 6 ++++++ pandora_server/lib/PandoraFMS/PredictionServer.pm | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) 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