Merge branch '1850-no-hay-opcion-command-line-snapshot-en-meta-2' into 'develop'

[Server Pluginserver] Added alias to plugin server error

See merge request artica/pandorafms!1325
This commit is contained in:
vgilc 2018-02-28 14:19:51 +01:00
commit 5a51987ed9
1 changed files with 8 additions and 2 deletions

View File

@ -298,9 +298,15 @@ sub data_consumer ($$) {
}
}
}
if (! defined $module_data || $module_data eq '') {
logger ($pa_config,"[ERROR] Undefined value returned by plug-in module " . $module->{'nombre'} . " agent " . $agent->{'nombre'} . ". Is the server out of memory?" , 3);
logger (
$pa_config,
sprintf(
"[ERROR] Undefined value returned by plug-in module '%s' in agent whith name '%s' and alias '%s'. Is the server out of memory?",
$module->{'nombre'}, $agent->{'nombre'}, $agent->{'alias'}
),
3
);
pandora_update_module_on_error ($pa_config, $module, $dbh);
return;
}