From 2ff3d785ba8efc7b986aaae8f1e897758316aec4 Mon Sep 17 00:00:00 2001 From: Daniel Maya Date: Tue, 4 Apr 2017 16:22:48 +0200 Subject: [PATCH] fixed problem with alias in export server --- pandora_server/lib/PandoraFMS/Core.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pandora_server/lib/PandoraFMS/Core.pm b/pandora_server/lib/PandoraFMS/Core.pm index 6ccaece0c0..7143be6128 100644 --- a/pandora_server/lib/PandoraFMS/Core.pm +++ b/pandora_server/lib/PandoraFMS/Core.pm @@ -4053,10 +4053,10 @@ sub export_module_data ($$$$$$$) { # Data export is disabled return if ($module->{'id_export'} < 1); - logger($pa_config, "Exporting data for module '" . $module->{'nombre'} . "' agent '" . $agent->{'nombre'} . "'.", 10); + logger($pa_config, "Exporting data for module '" . $module->{'nombre'} . "' agent '" . $agent->{'alias'} . "'.", 10); db_do($dbh, 'INSERT INTO tserver_export_data (id_export_server, agent_name , module_name, module_type, data, timestamp) VALUES - (?, ?, ?, ?, ?, ?)', $module->{'id_export'}, $agent->{'nombre'}, $module->{'nombre'}, $module_type, $data, $timestamp); + (?, ?, ?, ?, ?, ?)', $module->{'id_export'}, $agent->{'alias'}, $module->{'nombre'}, $module_type, $data, $timestamp); } ##########################################################################