FIx str_search

This commit is contained in:
Félix Suárez 2024-04-18 12:37:37 -06:00
parent de2075c553
commit 77aa6b5bd2
1 changed files with 4 additions and 4 deletions

View File

@ -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,7 +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' => io_safe_input("task_begin\nget $url_search\nresource 1\ncheck_string $url_search\ntask_end\n"),
'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',
@ -133,7 +133,7 @@ function create_module_latency_goliat($id_agent, $module_name, $id_group, $url_s
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';
@ -155,7 +155,7 @@ function create_module_status_goliat($id_agent, $module_name, $id_group, $url_se
'id_export' => '0',
'plugin_user' => io_safe_input('Pandora FMS / Webcheck'),
'plugin_pass' => '1',
'plugin_parameter' => io_safe_input("task_begin\nget $url_search\nresource 1\ncheck_string $url_search\ntask_end\n"),
'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',