diff --git a/pandora_console/godmode/reporting/graph_builder.graph_editor.php b/pandora_console/godmode/reporting/graph_builder.graph_editor.php index 0968e6b163..d41a0c778c 100644 --- a/pandora_console/godmode/reporting/graph_builder.graph_editor.php +++ b/pandora_console/godmode/reporting/graph_builder.graph_editor.php @@ -64,7 +64,6 @@ if ($editGraph) { $graphInTgraph = db_get_row_sql("SELECT * FROM tgraph WHERE id_graph = " . $id); $stacked = $graphInTgraph['stacked']; - $events = $graphInTgraph['events']; $period = $graphInTgraph['period']; $width = $graphInTgraph['width']; $height = $graphInTgraph['height']; @@ -129,41 +128,7 @@ echo "".__('Agents').""; echo ""; echo "".__('Modules').""; echo ""; -// If metaconsole is activated -/*if ($config['metaconsole'] == 1) { - enterprise_include_once('include/functions_metaconsole.php'); - - $connection_names = enterprise_hook('metaconsole_get_connection_names'); - if ($connection_names === false) - $connection_names = array(); - - $agents_tmp = array(); - $agents = array(); - - foreach ($connection_names as $connection) { - $connection_data = enterprise_hook('metaconsole_get_connection', array($connection)); - - $connection_result = enterprise_hook('metaconsole_load_external_db', array($connection_data)); - - if ($connection_result == NOERR) { - $agents_tmp = agents_get_group_agents (); - - if ($agents_tmp === false) - $agents_tmp = array(); - - foreach ($agents_tmp as $agent_key => $agent_name) { - $agents[$connection_data['server_name'] . '|' . $agent_key] = $agent_name; - } - } - - enterprise_hook('metaconsole_restore_db'); - } - - echo "".html_print_select ($agents, 'id_agents[]', 0, false, '', '', true, true, true, '', false, 'width:200px;').""; -} -else {*/ - echo "".html_print_select (agents_get_group_agents(), 'id_agents[]', 0, false, '', '', true, true, true, '', false, 'width:300px;').""; -//} +echo "".html_print_select (agents_get_group_agents(), 'id_agents[]', 0, false, '', '', true, true, true, '', false, 'width:300px;').""; echo "" . html_print_image("images/darrowright.png", true) . ""; echo "".html_print_select (array (), 'module[]', 0, false, '', 0, true, true, true, '', false, 'width:300px;').""; echo ""; diff --git a/pandora_console/godmode/reporting/graph_builder.main.php b/pandora_console/godmode/reporting/graph_builder.main.php index f7b68c13d2..8d6165eec8 100644 --- a/pandora_console/godmode/reporting/graph_builder.main.php +++ b/pandora_console/godmode/reporting/graph_builder.main.php @@ -58,7 +58,6 @@ if (! check_acl ($config['id_user'], 0, "RW")) { if ($edit_graph) { $graphInTgraph = db_get_row_sql("SELECT * FROM tgraph WHERE id_graph = " . $id_graph); $stacked = $graphInTgraph['stacked']; - $events = $graphInTgraph['events']; $period = $graphInTgraph['period']; $name = $graphInTgraph['name']; $description = $graphInTgraph['description']; @@ -74,8 +73,6 @@ else { $width = 550; $height = 210; $period = SECONDS_1DAY; - //$alerts= ""; - $events = 0; $factor = 1; $stacked = 0; } @@ -147,21 +144,6 @@ $stackeds = array( html_print_select ($stackeds, 'stacked', $stacked); echo ""; -echo ""; -echo ""; -echo "".__('View events').""; -echo ""; -html_print_checkbox('events', 1, $events); -echo ""; - -echo ""; -/*echo ""; -echo "".__('View alerts').""; -echo ""; -html_print_checkbox('alerts', 1, $alerts); -echo "";*/ - -echo ""; echo ""; if ($edit_graph) { echo ""; diff --git a/pandora_console/godmode/reporting/graph_builder.php b/pandora_console/godmode/reporting/graph_builder.php index 64d398d5e6..c253c8e335 100644 --- a/pandora_console/godmode/reporting/graph_builder.php +++ b/pandora_console/godmode/reporting/graph_builder.php @@ -71,7 +71,6 @@ if ($add_graph) { $idGroup = get_parameter_post ('graph_id_group'); $width = get_parameter_post ("width"); $height = get_parameter_post ("height"); - $events = get_parameter_post ("events"); $stacked = get_parameter ("stacked", 0); $period = get_parameter_post ("period"); @@ -79,13 +78,12 @@ if ($add_graph) { $values = array( 'id_user' => $config['id_user'], 'name' => $name, - 'description' => $description, + 'description' => $description, 'period' => $period, 'width' => $width, 'height' => $height, 'private' => 0, 'id_group' => $idGroup, - 'events' => $events, 'stacked' => $stacked); if (trim($name) != "") { @@ -112,13 +110,12 @@ if ($update_graph) { $height = get_parameter('height'); $period = get_parameter('period'); $stacked = get_parameter('stacked'); - $events = get_parameter('events'); $alerts = get_parameter('alerts'); if (trim($name) != "") { $success = db_process_sql_update('tgraph', - array('name' => $name, 'id_group' => $id_group, 'description' => $description, 'width' => $width, 'height' => $height, 'period' => $period, 'stacked' => $stacked, 'events' => $events), + array('name' => $name, 'id_group' => $id_group, 'description' => $description, 'width' => $width, 'height' => $height, 'period' => $period, 'stacked' => $stacked), array('id_graph' => $id_graph)); if ($success !== false) db_pandora_audit("Report management", "Update graph #$id_graph");