diff --git a/pandora_console/include/functions_welcome_wizard.php b/pandora_console/include/functions_welcome_wizard.php index 249fa53e20..8967789999 100644 --- a/pandora_console/include/functions_welcome_wizard.php +++ b/pandora_console/include/functions_welcome_wizard.php @@ -43,7 +43,7 @@ function create_module_latency_goliat($id_agent, $module_name, $id_group, $url_search, $string_search='') { if ($string_search !== '') { - $str_search = 'check_string '.$string_search.''; + $str_search = "check_string $string_search"; } include_once 'include/functions_modules.php'; @@ -65,11 +65,7 @@ function create_module_latency_goliat($id_agent, $module_name, $id_group, $url_s 'id_export' => '0', 'plugin_user' => '', 'plugin_pass' => '0', - 'plugin_parameter' => 'task_begin -get '.$url_search.' -resource 1 -'.$str_search.' -task_end', + 'plugin_parameter' => io_safe_input("task_begin\nget $url_search\nresource 1\n$str_search\ntask_end\n"), 'id_plugin' => '0', 'post_process' => '0', 'prediction_module' => '0', @@ -137,7 +133,7 @@ task_end', function create_module_status_goliat($id_agent, $module_name, $id_group, $url_search, $string_search='') { if ($string_search !== '') { - $str_search = 'check_string '.$string_search.' '; + $str_search = "check_string $string_search"; } include_once 'include/functions_modules.php'; @@ -157,13 +153,9 @@ function create_module_status_goliat($id_agent, $module_name, $id_group, $url_se 'tcp_rcv' => '', 'tcp_send' => '', 'id_export' => '0', - 'plugin_user' => '', - 'plugin_pass' => '0', - 'plugin_parameter' => 'task_begin -get '.$url_search.' -resource 1 -'.$str_search.' -task_end', + 'plugin_user' => io_safe_input('Pandora FMS / Webcheck'), + 'plugin_pass' => '1', + 'plugin_parameter' => io_safe_input("task_begin\nget $url_search\nresource 1\n$str_search\ntask_end\n"), 'id_plugin' => '0', 'post_process' => '0', 'prediction_module' => '0',