From 6b577bed8df5c78d0acf768ce29d7ff52057a782 Mon Sep 17 00:00:00 2001 From: mdtrooper Date: Mon, 15 Sep 2014 11:45:05 +0200 Subject: [PATCH] Added the field timeout in edition massive modules. TICKET #932 --- .../godmode/massive/massive_edit_modules.php | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/pandora_console/godmode/massive/massive_edit_modules.php b/pandora_console/godmode/massive/massive_edit_modules.php index 667378949b..7e75bc1f00 100644 --- a/pandora_console/godmode/massive/massive_edit_modules.php +++ b/pandora_console/godmode/massive/massive_edit_modules.php @@ -112,7 +112,7 @@ if ($update) { $module_name = array(); } foreach($module_name as $mod_name) { - $result = process_manage_edit ($mod_name['nombre'], $id_agent); + $result = process_manage_edit($mod_name['nombre'], $id_agent); $count ++; $success += (int)$result; } @@ -518,6 +518,11 @@ $table->data['edit11'][0] .= ui_print_help_tip(__('The module still store data b $table->data['edit11'][1] = html_print_select(array(-1 => __('No change'), 1 => __('Yes'), 0 => __('No')), "quiet_select", -1, "", '', 0, true); +$table->data['edit11'][2] = __('Timeout'); +$table->data['edit11'][3] = html_print_input_text( + 'max_timeout', '', '', 5, 10, true) . ' ' . + ui_print_help_tip ( + __('Seconds that agent will wait for the execution of the module.'), true); echo '
'; html_print_table ($table); @@ -907,7 +912,7 @@ function process_manage_edit ($module_name, $agents_select = null) { 'warning_instructions', 'unknown_instructions', 'policy_linked', 'id_category', 'disabled_types_event', 'ip_target', 'descripcion', 'min_ff_event_normal', 'min_ff_event_warning', 'min_ff_event_critical', - 'each_ff', 'module_ff_interval', 'ff_timeout'); + 'each_ff', 'module_ff_interval', 'ff_timeout', 'max_timeout'); $values = array (); // Specific snmp reused fields @@ -924,7 +929,7 @@ function process_manage_edit ($module_name, $agents_select = null) { foreach ($fields as $field) { $value = get_parameter ($field, ''); - + switch ($field) { case 'module_interval': if ($value != 0) {