From 34da44f9fb22e5bd8f5a94bd327c2b80e2695d14 Mon Sep 17 00:00:00 2001 From: fermin831 Date: Thu, 23 Nov 2017 17:00:59 +0100 Subject: [PATCH] Added cron help --- .../agentes/module_manager_editor_common.php | 9 ++-- pandora_console/include/help/en/help_cron.php | 45 ++++++++++++++++++ pandora_console/include/help/es/help_cron.php | 46 +++++++++++++++++++ pandora_console/include/help/ja/help_cron.php | 46 +++++++++++++++++++ 4 files changed, 140 insertions(+), 6 deletions(-) create mode 100644 pandora_console/include/help/en/help_cron.php create mode 100644 pandora_console/include/help/es/help_cron.php create mode 100644 pandora_console/include/help/ja/help_cron.php diff --git a/pandora_console/godmode/agentes/module_manager_editor_common.php b/pandora_console/godmode/agentes/module_manager_editor_common.php index 9b9b96ffaf..473e36dfdc 100644 --- a/pandora_console/godmode/agentes/module_manager_editor_common.php +++ b/pandora_console/godmode/agentes/module_manager_editor_common.php @@ -590,8 +590,7 @@ $table_advanced->colspan[10][1] = 6; if (isset($id_agente) && $moduletype == MODULE_DATA) { $has_remote_conf = enterprise_hook('config_agents_has_remote_configuration',array($agent["id_agente"])); if ($has_remote_conf) { - $table_advanced->data[11][0] = __('Cron from') . - ui_print_help_tip (__('If cron is set the module interval is ignored and the module runs on the specified date and time'), true); + $table_advanced->data[11][0] = __('Cron from') . ui_print_help_icon ('cron', true); $table_advanced->data[11][1] = html_print_extended_select_for_cron ($hour_from, $minute_from, $mday_from, $month_from, $wday_from, true, $disabledBecauseInPolicy); $table_advanced->colspan[11][1] = 6; @@ -600,8 +599,7 @@ if (isset($id_agente) && $moduletype == MODULE_DATA) { $table_advanced->colspan[12][1] = 6; } else { - $table_advanced->data[11][0] = __('Cron from') . - ui_print_help_tip (__('If cron is set the module interval is ignored and the module runs on the specified date and time'), true); + $table_advanced->data[11][0] = __('Cron from') . ui_print_help_icon ('cron', true); $table_advanced->data[11][1] = html_print_extended_select_for_cron ($hour_from, $minute_from, $mday_from, $month_from, $wday_from, true, true); $table_advanced->colspan[11][1] = 6; @@ -611,8 +609,7 @@ if (isset($id_agente) && $moduletype == MODULE_DATA) { } } else { - $table_advanced->data[11][0] = __('Cron from') . - ui_print_help_tip (__('If cron is set the module interval is ignored and the module runs on the specified date and time'), true); + $table_advanced->data[11][0] = __('Cron from') . ui_print_help_icon ('cron', true); $table_advanced->data[11][1] = html_print_extended_select_for_cron ($hour_from, $minute_from, $mday_from, $month_from, $wday_from, true, $disabledBecauseInPolicy); $table_advanced->colspan[11][1] = 6; diff --git a/pandora_console/include/help/en/help_cron.php b/pandora_console/include/help/en/help_cron.php new file mode 100644 index 0000000000..a1e235d06e --- /dev/null +++ b/pandora_console/include/help/en/help_cron.php @@ -0,0 +1,45 @@ + +

Cron for server modules

+ +Using the configuration parameter sets Cron from and Cron to makes +it possible for a module to run only for certain periods of time. +The way in which it is configured is similar to the syntax of +cron. +Just as they appear in the Pandora console, each one of the parameters +has three options. + +

Cron from: any

+ +The module will not have restrictions in that parameter. Whatever the value is +will be executed, and it is equivalent to the asterisk (*) in the cron nomenclature. In this +case Cron to is ignored. + +

Cron from: different from any. Cron to: any

+ +The module will run only during the time in which the date matches that +parameter. It is equivalent to writingjust one number in cron nomenclature. + +

Cron from: different from any. Cron to: different from any

+ +The module will run only during the time specified between Cron from and Cron to. +It is equivalent to writing number dash number (n-n) in cron nomenclature. + +

Agent interval

+ +As long as cron conditions are met, the agent will run following +its execution interval. + +

Examples

+ +