diff --git a/pandora_server/ChangeLog b/pandora_server/ChangeLog index 499a12ed10..565a5da38a 100644 --- a/pandora_server/ChangeLog +++ b/pandora_server/ChangeLog @@ -1,3 +1,8 @@ +2010-10-20 Ramon Novoa + + * lib/PandoraFMS/ReconServer.pm: Pass the recon task id to the recon + script. + 2010-10-20 Sancho Lerena * conf/pandora_server.conf.windows: Sample conf for running pandora server diff --git a/pandora_server/lib/PandoraFMS/ReconServer.pm b/pandora_server/lib/PandoraFMS/ReconServer.pm index e90f46ce2f..4577d40856 100644 --- a/pandora_server/lib/PandoraFMS/ReconServer.pm +++ b/pandora_server/lib/PandoraFMS/ReconServer.pm @@ -453,7 +453,7 @@ sub exec_recon_script ($$$) { return -1 unless defined ($script); logger($pa_config, 'Executing recon script ' . $script->{'name'}, 10); - `$script->{'script'} $task->{'field1'} $task->{'field2'} $task->{'field3'} $task->{'field4'}`; + `$script->{'script'} $task->{'id_rt'} $task->{'field1'} $task->{'field2'} $task->{'field3'} $task->{'field4'}`; return 0; }