fixed problem with alias in export server

This commit is contained in:
Daniel Maya 2017-04-04 16:22:48 +02:00
parent 3f27e0a306
commit 2ff3d785ba
1 changed files with 2 additions and 2 deletions

View File

@ -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);
}
##########################################################################