2009-12-05 Sancho Lerena <slerena@artica.es>

* 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
This commit is contained in:
slerena 2009-12-05 15:31:07 +00:00
parent f4999f9179
commit 36203fb9d3
2 changed files with 5 additions and 1 deletions

View File

@ -1,3 +1,7 @@
2009-12-05 Sancho Lerena <slerena@artica.es>
* lib/PandoraFMS/Core.pm: Fixed bug #2905434
2009-11-28 Raul Mateos <raulofpandora@gmail.com>
* lib/PandoraFMS/Config.pm: Changed string from RC2 to RC3.

View File

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