From ab4870a3af664cf6676738e6fa595ffefc2462df Mon Sep 17 00:00:00 2001 From: vgilc Date: Mon, 27 Feb 2012 15:50:30 +0000 Subject: [PATCH] 2012-02-27 Vanessa Gil * godmode/agentes/agent_template.php: Fixed bug: values 'max_warning', 'min_warning', 'max_critical', 'min_critical', 'postprocess' aren't saved in the application template. git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@5652 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f --- pandora_console/ChangeLog | 6 ++++++ pandora_console/godmode/agentes/agent_template.php | 10 +++++++++- 2 files changed, 15 insertions(+), 1 deletion(-) diff --git a/pandora_console/ChangeLog b/pandora_console/ChangeLog index 70252f7df2..1e78d7ce9d 100644 --- a/pandora_console/ChangeLog +++ b/pandora_console/ChangeLog @@ -1,3 +1,9 @@ +2012-02-27 Vanessa Gil + + * godmode/agentes/agent_template.php: Fixed bug: values 'max_warning', + 'min_warning', 'max_critical', 'min_critical', 'postprocess' aren't saved in + the application template. + 2012-02-27 Vanessa Gil * godmode/modules/manage_network_components.php: Fixed bug: values max and min diff --git a/pandora_console/godmode/agentes/agent_template.php b/pandora_console/godmode/agentes/agent_template.php index ee223321b7..45abd8d7b9 100644 --- a/pandora_console/godmode/agentes/agent_template.php +++ b/pandora_console/godmode/agentes/agent_template.php @@ -76,7 +76,15 @@ if (isset ($_POST["template_id"])) { 'plugin_pass' => $row2["plugin_pass"], 'plugin_parameter' => $row2["plugin_parameter"], 'max_timeout' => $row2["max_timeout"], - 'id_plugin' => $row2['id_plugin']); + 'id_plugin' => $row2['id_plugin'], + 'post_process' => $row2['post_process'], + 'min_warning' => $row2['min_warning'], + 'max_warning' => $row2['max_warning'], + 'str_warning' => $row2['str_warning'], + 'min_critical' => $row2['min_critical'], + 'max_critical' => $row2['max_critical'], + 'str_critical' => $row2['str_critical'] + ); $id_agente_modulo = db_process_sql_insert('tagente_modulo', $values); // Create with different estado if proc type or data type