Merge branch 'ent-13157-no-funciona-web-server-check-basico-en-una-instalacion-limpia' into 'develop'

Ent-13157-no-funciona-web-server-check-basico-en-una-instalacion-limpia

See merge request artica/pandorafms!7227
This commit is contained in:
Daniel Rodriguez 2024-04-19 07:24:47 +00:00
commit 770d683b43
1 changed files with 6 additions and 14 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,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',