From 3529bfaa5a9e638ad5dfe13dd5212ac2adfd53ab Mon Sep 17 00:00:00 2001 From: fermin831 Date: Wed, 28 Feb 2018 14:11:26 +0100 Subject: [PATCH] [Server Pluginserver] Added alias to plugin server error --- pandora_server/lib/PandoraFMS/PluginServer.pm | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/pandora_server/lib/PandoraFMS/PluginServer.pm b/pandora_server/lib/PandoraFMS/PluginServer.pm index 230ac24f6a..a3d280f9b2 100644 --- a/pandora_server/lib/PandoraFMS/PluginServer.pm +++ b/pandora_server/lib/PandoraFMS/PluginServer.pm @@ -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; }