From d8dccf664c9c1d0156c9322bc55ea5b7ae8f076a Mon Sep 17 00:00:00 2001 From: ramonn Date: Wed, 20 Oct 2010 16:42:06 +0000 Subject: [PATCH] 2010-10-20 Ramon Novoa * lib/PandoraFMS/ReconServer.pm: Pass the recon task group_id and create_incident parameters to the recon script. git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3437 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f --- pandora_server/ChangeLog | 5 +++++ pandora_server/lib/PandoraFMS/ReconServer.pm | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/pandora_server/ChangeLog b/pandora_server/ChangeLog index 565a5da38a..ecd757189e 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 group_id and + create_incident parameters to the recon script. + 2010-10-20 Ramon Novoa * lib/PandoraFMS/ReconServer.pm: Pass the recon task id to the recon diff --git a/pandora_server/lib/PandoraFMS/ReconServer.pm b/pandora_server/lib/PandoraFMS/ReconServer.pm index 4577d40856..e383fa8d22 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->{'id_rt'} $task->{'field1'} $task->{'field2'} $task->{'field3'} $task->{'field4'}`; + `$script->{'script'} $task->{'id_rt'} $task->{'id_group'} $task->{'create_incident'} $task->{'field1'} $task->{'field2'} $task->{'field3'} $task->{'field4'}`; return 0; }