diff --git a/pandora_server/ChangeLog b/pandora_server/ChangeLog index a9c2c0eeb8..a983168260 100644 --- a/pandora_server/ChangeLog +++ b/pandora_server/ChangeLog @@ -1,3 +1,7 @@ +2010-12-02 Dario Rodriguez + + * lib/PandoraFMS/ReconServer.pm: Fixed a bug with recon server. + 2010-12-02 Junichi Satoh * FreeBSD/pandora_server.conf: Added wmic file path for FreeBSD. diff --git a/pandora_server/lib/PandoraFMS/ReconServer.pm b/pandora_server/lib/PandoraFMS/ReconServer.pm index 59fca2ad78..8dfc1978de 100644 --- a/pandora_server/lib/PandoraFMS/ReconServer.pm +++ b/pandora_server/lib/PandoraFMS/ReconServer.pm @@ -451,8 +451,8 @@ sub exec_recon_script ($$$) { # Get recon plugin data my $script = get_db_single_row ($dbh, 'SELECT * FROM trecon_script WHERE id_recon_script = ?', $task->{'id_recon_script'}); return -1 unless defined ($script); - $name = safe_output($script->{'name'}); - logger($pa_config, 'Executing recon script ' . $name, 10); + + logger($pa_config, 'Executing recon script ' . safe_output($script->{'name'}), 10); my $command = safe_output($script->{'script'}); my $field1 = safe_output($task->{'field1'});