From ad9fccd4992b51603250ad22477013cd08f2002d Mon Sep 17 00:00:00 2001 From: Ramon Novoa Date: Tue, 16 Sep 2014 16:11:50 +0200 Subject: [PATCH] Print module and agent information when plugin execution fails. Fixes ticket #1293 --- pandora_server/lib/PandoraFMS/PluginServer.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pandora_server/lib/PandoraFMS/PluginServer.pm b/pandora_server/lib/PandoraFMS/PluginServer.pm index 56c486da0d..0e5d4ffcc0 100644 --- a/pandora_server/lib/PandoraFMS/PluginServer.pm +++ b/pandora_server/lib/PandoraFMS/PluginServer.pm @@ -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; }