Print module and agent information when plugin execution fails. Fixes ticket #1293

This commit is contained in:
Ramon Novoa 2014-09-16 16:11:50 +02:00
parent 14fa3116f0
commit 27040239f9
1 changed files with 1 additions and 1 deletions

View File

@ -286,7 +286,7 @@ sub data_consumer ($$) {
}
if (! defined $module_data || $module_data eq '') {
logger ($pa_config,"[ERROR] Undefined value returned by Plugin query. Is the server out of memory?" , 0);
logger ($pa_config,"[ERROR] Undefined value returned by plug-in module " . $agent->{'nombre'} . " agent " . $agent->{'nombre'} . ". Is the server out of memory?" , 3);
pandora_update_module_on_error ($pa_config, $module, $dbh);
return;
}