diff --git a/pandora_console/ChangeLog b/pandora_console/ChangeLog index cd42a2e0a5..91de7de73e 100644 --- a/pandora_console/ChangeLog +++ b/pandora_console/ChangeLog @@ -1,3 +1,10 @@ +2011-06-03 Javier Lanz + + * godmode/agentes/module_manager_editor_prediction.php: Edited to get + "custom_integer_2" parameter & Added period combo + * godmode/agentes/module_manager_editor.php: Edited to get + "custom_integer_2" parameter + 2011-06-01 Ramon Novoa * include/auth/mysql.php: Do not allow empty passwords when diff --git a/pandora_console/godmode/agentes/module_manager_editor.php b/pandora_console/godmode/agentes/module_manager_editor.php index 22ef2b0a8b..61a99baf98 100644 --- a/pandora_console/godmode/agentes/module_manager_editor.php +++ b/pandora_console/godmode/agentes/module_manager_editor.php @@ -165,6 +165,7 @@ if ($id_agent_module) { $id_plugin = $module['id_plugin']; $post_process = $module['post_process']; $prediction_module = $module['prediction_module']; + $custom_integer_2 = $module ['custom_integer_2']; $max_timeout = $module['max_timeout']; $custom_id = $module['custom_id']; $history_data = $module['history_data']; @@ -191,6 +192,7 @@ else { $max = ''; $interval = ''; $prediction_module = ''; + $custom_integer_2 = 0; $id_plugin = ''; $id_export = ''; $disabled = "0"; diff --git a/pandora_console/godmode/agentes/module_manager_editor_prediction.php b/pandora_console/godmode/agentes/module_manager_editor_prediction.php index 5dd14def5f..7a787a3e96 100644 --- a/pandora_console/godmode/agentes/module_manager_editor_prediction.php +++ b/pandora_console/godmode/agentes/module_manager_editor_prediction.php @@ -22,11 +22,13 @@ $page = get_parameter('page', ''); $id_agente = get_parameter('id_agente', ''); $agent_name = get_parameter('agent_name', agents_get_name($id_agente)); $id_agente_modulo= get_parameter('id_agent_module',0); +$custom_integer_2 = get_parameter ('custom_integer_2', 0); $sql = 'SELECT * FROM tagente_modulo WHERE id_agente_modulo = '.$id_agente_modulo; $row = db_get_row_sql($sql); $is_service = false; if ($row !== false && is_array($row)) { $prediction_module = $row['prediction_module']; + $custom_integer_2 = $row ['custom_integer_2']; // Services are an Enterprise feature. $service_select = $row['custom_integer_1']; if ($service_select > 0) { @@ -73,6 +75,15 @@ if($id_agente) { else { $data[1] .= ''; } + +$data[1] .= html_print_label(__("Period"), 'custom_integer_2', true)."
"; + +$periods [0] = __('Weekly'); +$periods [1] = __('Monthly'); +$periods [2] = __('Daily'); +$data[1] .= html_print_select ($periods, 'custom_integer_2', $custom_integer_2, '', '', 0, true); //html_debug_print ($custom_integer_2); + + $data[1] .= html_print_input_hidden ('id_agente', $id_agente, true); $data[1] .= '';