From 9c2e9983566904ecf4e6dd4543827082382a8464 Mon Sep 17 00:00:00 2001 From: Pablo Aragon Date: Fri, 5 Apr 2024 09:43:55 +0200 Subject: [PATCH] 12941-Fix translation. Fix bulks (agents, modules and policies) --- pandora_console/godmode/massive/massive_edit_agents.php | 4 ++++ pandora_console/godmode/massive/massive_edit_modules.php | 4 ++++ pandora_console/include/help/clippy/agent_module_interval.php | 4 ++-- 3 files changed, 10 insertions(+), 2 deletions(-) diff --git a/pandora_console/godmode/massive/massive_edit_agents.php b/pandora_console/godmode/massive/massive_edit_agents.php index 7531ecf51b..8cb5da658b 100755 --- a/pandora_console/godmode/massive/massive_edit_agents.php +++ b/pandora_console/godmode/massive/massive_edit_agents.php @@ -131,6 +131,10 @@ if ($update_agents) { ) { if (get_parameter('interval') != -2) { $values['intervalo'] = get_parameter('interval'); + + if ($values['intervalo'] < 60) { + $values['intervalo'] = 60; + } } } diff --git a/pandora_console/godmode/massive/massive_edit_modules.php b/pandora_console/godmode/massive/massive_edit_modules.php index 960437b039..8e2a450a71 100755 --- a/pandora_console/godmode/massive/massive_edit_modules.php +++ b/pandora_console/godmode/massive/massive_edit_modules.php @@ -2444,6 +2444,10 @@ function process_manage_edit($module_name, $agents_select=null, $module_status=' case 'module_interval': if ($value != 0) { $values[$field] = $value; + + if ($values[$field] < 60) { + $values[$field] = 60; + } } break; diff --git a/pandora_console/include/help/clippy/agent_module_interval.php b/pandora_console/include/help/clippy/agent_module_interval.php index c7914ca4ca..d5f29ac32e 100644 --- a/pandora_console/include/help/clippy/agent_module_interval.php +++ b/pandora_console/include/help/clippy/agent_module_interval.php @@ -29,8 +29,8 @@ function clippy_agent_module_interval() $return_tours['tours']['agent_module_interval']['steps'] = []; $return_tours['tours']['agent_module_interval']['steps'][] = [ 'init_step_context' => true, - 'intro' => __('Pandora FMS is designed to monitor thousands of elements. It is possible to use very low sampling intervals using specific elements for it (Satellite Server) but doing it in a centralized way can have a severe impact in the performance, that\'s why we limit it to intervals of at least 60 seconds. Even then, you should only do 60 second sampling on very specific modules. The impact on your infrastructure can be severe, leading to event storms and delays in other monitoring. If you are going to use 60-second intervals, we recommend that you disable unknown detection to avoid unwanted events and use FlipFlop\'s protection settings.'), - 'title' => __('Data Configuration Module.'), + 'intro' => __('Pandora FMS has been designed to monitor thousands of elements. It is possible to use very low sampling intervals by using specific items for that purpose (Satellite Server), but doing so in a centralized way may negatively affect performance. That is why it is limited to 60-second intervals. Even so, 60-second interval sampling should only take place in very specific modules. The impact on your infrastructure may be severe, leading to event storms and monitoring delays. Should you use 60-second intervals, it is recommended to disable unknown detection monitoring to avoid undesired events and use the FlipFlop protection setup'), + 'title' => __('Notice'), 'img' => html_print_image( 'images/info-warning.svg', true,