From b830f47e6095a6c649a6e19376db26b543f61f8d Mon Sep 17 00:00:00 2001 From: slerena Date: Sat, 5 Dec 2009 15:31:07 +0000 Subject: [PATCH] 2009-12-05 Sancho Lerena * lib/PandoraFMS/Core.pm: Fixed bug #2905434 git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2164 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f --- pandora_server/ChangeLog | 4 ++++ pandora_server/lib/PandoraFMS/Core.pm | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/pandora_server/ChangeLog b/pandora_server/ChangeLog index dc62990e23..2b1022708b 100644 --- a/pandora_server/ChangeLog +++ b/pandora_server/ChangeLog @@ -1,3 +1,7 @@ +2009-12-05 Sancho Lerena + + * lib/PandoraFMS/Core.pm: Fixed bug #2905434 + 2009-11-28 Raul Mateos * lib/PandoraFMS/Config.pm: Changed string from RC2 to RC3. diff --git a/pandora_server/lib/PandoraFMS/Core.pm b/pandora_server/lib/PandoraFMS/Core.pm index 6352f64a72..a9f5f7bb26 100644 --- a/pandora_server/lib/PandoraFMS/Core.pm +++ b/pandora_server/lib/PandoraFMS/Core.pm @@ -550,7 +550,7 @@ sub pandora_process_module ($$$$$$$$$) { # Process data my $processed_data = process_data ($data, $module, $module_type, $utimestamp, $dbh); - if (! defined ($data)) { + if (! defined ($processed_data)) { logger($pa_config, "Received invalid data '" . $data . "' from agent '" . $agent->{'nombre'} . "' module '" . $module->{'nombre'} . "' agent " . (defined ($agent) ? "'" . $agent->{'nombre'} . "'" : 'ID ' . $module->{'id_agente'}) . ".", 3); pandora_update_module_on_error ($pa_config, $module->{'id_agente_modulo'}, $dbh); return;